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
Not sure which cases these include exactly but some cases result in pretter stopping with an error:
Error: Comment "// abc" was not printed. Please report this error!
I know that i was also able to produce that error with other positions, but various other work fine so it is a bit weird.
Playground also shows it: Link to playground
Prettier 2.88.0 (but also tried latest)
PHP Plugin 0.19.6 (but also tried latest)
# Options (if any): --no-options
Input:
<?php declare(strict_types=1); namespace App\Controller\General; use App\Dto\BarDto; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Attribute\MapRequestPayload; use Symfony\Component\Serializer\Normalizer\AbstractNormalizer; class EnrollmentController extends AbstractController { public function save( #[ MapRequestPayload( serializationContext: [ // abc AbstractNormalizer::CALLBACKS => [ 'abc' => 'trim', ], ], ), ] BarDto $data, ): Response { return $this->json(['foo']); } }
Output:
None. Errror as mentioned above.
Expected behavior: No error and correctly formatted.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Not sure which cases these include exactly but some cases result in pretter stopping with an error:
I know that i was also able to produce that error with other positions, but various other work fine so it is a bit weird.
Playground also shows it: Link to playground
Prettier 2.88.0 (but also tried latest)
PHP Plugin 0.19.6 (but also tried latest)
# Options (if any): --no-options
Input:
Output:
None. Errror as mentioned above.
Expected behavior:
No error and correctly formatted.
The text was updated successfully, but these errors were encountered: