Skip to content
New issue

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

How to format attributes #3656

Open
momala454 opened this issue Sep 5, 2022 · 3 comments
Open

How to format attributes #3656

momala454 opened this issue Sep 5, 2022 · 3 comments

Comments

@momala454
Copy link

Describe the bug
Let's say I have this

#[OA\Post(path: '/users/register', description: 'Create an user account')]

How do I make it like this

#[OA\Post(
    path: '/users/register',
    description: 'Create an user account'
)]

PSR2.Methods.FunctionCallSignature or PEAR.Functions.FunctionCallSignature with allowMultipleArguments to false doesn't seem to work

Versions (please complete the following information):

  • OS: windows 10
  • PHP: 8.1
  • PHPCS: 3.7.1
  • Standard: psr12
@remy-theroux
Copy link

I have searched a rule to allow multi attributes but have not found yet.
FunctionCallSignature should avoid analyse attributes.

@mmoll
Copy link
Contributor

mmoll commented Oct 17, 2022

https://github.com/slevomat/coding-standard/releases/tag/8.6.0 seems to have some sniffs available in the latest release.

@remy-theroux
Copy link

I will have a look thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants