Skip to content

[11.x] fix times() calls - #54141

Merged
taylorotwell merged 1 commit into
laravel:11.xfrom
browner12:AB-fix-times-calls
Jan 9, 2025
Merged

[11.x] fix times() calls#54141
taylorotwell merged 1 commit into
laravel:11.xfrom
browner12:AB-fix-times-calls

Conversation

@browner12

Copy link
Copy Markdown
Contributor

times() is a static method on the factory, and should be called as such, not as an instance method.

times() also already calls new() so no reason to do it twice.

`times()` is a static method on the factory, and should be called as such, not as an instance method.

`times()` also already calls `new()` so no reason to do it twice.
@taylorotwell
taylorotwell merged commit d66b6c0 into laravel:11.x Jan 9, 2025
@browner12
browner12 deleted the AB-fix-times-calls branch January 9, 2025 20:35
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.

2 participants