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
https://phpstan.org/r/057a248b-07fc-4317-954e-5986b19c4760
How to include stub file:
parameters: stubFiles: - ./vendor/riverwaysoft/php-converter/JsonResponse.stub
/** @return JsonResponse<MyCollection<string>> */ #[DtoEndpoint] #[Route('/api/test', methods: ['GET'])] public function customGenericEndpoint() { $result = new JsonResponse(new MyCollection('test', 100)); return $result; }
<?php namespace App\Domain\Food\Controller; /** * @template T */ class MyCollection { /** * @param T $data */ public function __construct( public $data, public int $total, ) { } }
$ecsConfig->rules([ RequireAttributeAfterDocCommentSniff::class, ]);
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
https://phpstan.org/r/057a248b-07fc-4317-954e-5986b19c4760
How to include stub file:
The text was updated successfully, but these errors were encountered: