Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.x] Turn Enumerable unless() $callback parameter optional #51701

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

faissaloux
Copy link
Contributor

@faissaloux faissaloux commented Jun 3, 2024

Helloo 👋🏻

This screenshot is an example among others from laravel/framework codebase where unless() is used with only one argument. implementing Enumerable this makes the intelephense complains about it expecting two arguments.

->unless($filter == null)

->unless($filter == null)

Screenshot from 2024-06-04 00-05-16

@faissaloux faissaloux changed the title Turn Enumerable unless() $callback parameter optional [10.x] Turn Enumerable unless() $callback parameter optional Jun 3, 2024
@taylorotwell taylorotwell merged commit 6de257e into laravel:10.x Jun 4, 2024
24 checks passed
taylorotwell added a commit that referenced this pull request Jun 4, 2024
taylorotwell added a commit that referenced this pull request Jun 4, 2024
@faissaloux faissaloux deleted the fix-enumerable-unless branch June 4, 2024 16:04
@faissaloux
Copy link
Contributor Author

Hey @taylorotwell, can I know why this was reverted!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants