Add @bind
directive as a GraphQL analogue for Laravel's Route Model Binding
#2802
Annotations
4 errors and 1 warning
Run vendor/bin/phpstan:
src/Bind/Validation/BindingExists.php#L13
Class Nuwave\Lighthouse\Bind\Validation\BindingExists implements unknown interface Illuminate\Contracts\Validation\ValidationRule.
|
Run vendor/bin/phpstan:
src/Bind/Validation/BindingExists.php#L21
Parameter #1 $validator (Illuminate\Validation\Validator) of method Nuwave\Lighthouse\Bind\Validation\BindingExists::setValidator() is not contravariant with parameter #1 $validator (mixed) of method Illuminate\Contracts\Validation\ValidatorAwareRule::setValidator().
|
Run vendor/bin/phpstan:
tests/Integration/Bind/BindDirectiveTest.php#L1352
Parameter #2 $expectedClass of method Orchestra\Testbench\TestCase::assertThrows() expects class-string<Throwable>, Closure given.
|
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