We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In case we want to add a default value using an enum typed argument on a model query scope like so:
<?php class MyModel extends Model { public function scopeHasAbility(Builder $query, Authenticatable $user, ?CrudAction $ability = CrudAction::Read) { // code here... } }
This will run fine in PHP 8+ but IDE helper models docblock generator command will complain with the following error:
Error comes from this line:
laravel-ide-helper/src/Console/ModelsCommand.php
Line 1103 in 0801d00
php artisan ide-helper:models -w
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Versions:
Description:
In case we want to add a default value using an enum typed argument on a model query scope like so:
This will run fine in PHP 8+ but IDE helper models docblock generator command will complain with the following error:
Error comes from this line:
laravel-ide-helper/src/Console/ModelsCommand.php
Line 1103 in 0801d00
Steps To Reproduce:
php artisan ide-helper:models -w
The text was updated successfully, but these errors were encountered: