Force int
cast on ModelsLoader count
#2816
Annotations
9 errors and 1 warning
Run vendor/bin/phpstan:
src/Execution/ModelsLoader/CountModelsLoader.php#L38
Syntax error, unexpected T_ENCAPSED_AND_WHITESPACE on line 38
|
Run vendor/bin/phpstan:
src/Execution/ModelsLoader/PaginatedModelsLoader.php#L188
Call to static method extractCount() on an unknown class Nuwave\Lighthouse\Execution\ModelsLoader\CountModelsLoader.
|
Run vendor/bin/phpstan:
src/Schema/Directives/CountDirective.php#L92
Instantiated class Nuwave\Lighthouse\Execution\ModelsLoader\CountModelsLoader not found.
|
Run vendor/bin/phpstan:
src/Schema/Directives/CountDirective.php#L92
Parameter #1 $modelsLoader of class Nuwave\Lighthouse\Execution\BatchLoader\RelationBatchLoader constructor expects Nuwave\Lighthouse\Execution\ModelsLoader\ModelsLoader, Nuwave\Lighthouse\Execution\ModelsLoader\CountModelsLoader given.
|
Run vendor/bin/phpstan:
src/Schema/Directives/WithCountDirective.php#L60
Method Nuwave\Lighthouse\Schema\Directives\WithCountDirective::modelsLoader() has invalid return type Nuwave\Lighthouse\Execution\ModelsLoader\CountModelsLoader.
|
Run vendor/bin/phpstan:
src/Schema/Directives/WithCountDirective.php#L60
PHPDoc tag @return with type Nuwave\Lighthouse\Execution\ModelsLoader\CountModelsLoader is not subtype of native type Nuwave\Lighthouse\Execution\ModelsLoader\ModelsLoader.
|
Run vendor/bin/phpstan:
src/Schema/Directives/WithCountDirective.php#L62
Instantiated class Nuwave\Lighthouse\Execution\ModelsLoader\CountModelsLoader not found.
|
Run vendor/bin/phpstan:
src/Schema/Directives/WithCountDirective.php#L62
Method Nuwave\Lighthouse\Schema\Directives\WithCountDirective::modelsLoader() should return Nuwave\Lighthouse\Execution\ModelsLoader\ModelsLoader but returns Nuwave\Lighthouse\Execution\ModelsLoader\CountModelsLoader.
|
Run vendor/bin/phpstan
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading