-
Notifications
You must be signed in to change notification settings - Fork 71
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
Undefined array key "factory" with Laravel 11 #386
Comments
Same here @mzur |
SAme here. Any updates on this? |
the same error |
This appears to have been caused by the changed generics in laravel/framework#52005. Applying the changes described there solved the issue for us. |
@JeftavanderHorst adding |
i added the use comment and the attribute
|
same error |
Same here with a brand new model created by artisan
Creates:
Without any changes it throws
|
Describe the bug
I installed a fresh setup of Laravel 11 (PHP 8.2) with
composer create-project laravel/laravel example-app
. Then I downgraded PHPUnit (because of #384) withcomposer require --dev -W phpunit/phpunit:^10
and installed Psalm withcomposer require --dev -W psalm/plugin-laravel
. Next I run steps 2-4 of the quickstart instructions.I get the following error:
Impacted Versions
Additional context
This seems related to the
HasFactory
trait of the defaultUser
model. Any hints where else I could look?The text was updated successfully, but these errors were encountered: