You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coding standard does not recognize docblock as belonging to a closure when closure is immediately returned.
Bug is likely in PSR12.Files.FileHeader.IncorrectOrder
Current behavior
While applying Laminas CS to newly installed mezzio skeleton application I discovered that pipeline.php and routes.php trigger
errors PSR12.Files.FileHeader.IncorrectOrder: Header blocks must be separated by a single blank line and PSR12.Files.FileHeader.IncorrectOrder: The file-level docblock must follow the opening PHP tag in the file header
Xerkus
changed the title
comment block is not recognized as belonging to closure when closure is immediately returned
docblock is not recognized as belonging to closure when closure is immediately returned
Nov 30, 2020
Bug Report
Summary
Coding standard does not recognize docblock as belonging to a closure when closure is immediately returned.
Bug is likely in
PSR12.Files.FileHeader.IncorrectOrder
Current behavior
While applying Laminas CS to newly installed mezzio skeleton application I discovered that
pipeline.php
androutes.php
triggererrors
PSR12.Files.FileHeader.IncorrectOrder: Header blocks must be separated by a single blank line
andPSR12.Files.FileHeader.IncorrectOrder: The file-level docblock must follow the opening PHP tag in the file header
How to reproduce
Run CS check against mezzio skeleton config file https://github.com/mezzio/mezzio-skeleton/blob/c268aac1a272ee20b9bceaa5715aac4174d388ae/src/MezzioInstaller/Resources/config/routes-fastroute-minimal.php#L9-L26
Expected behavior
This docblock should be accepted as closure level rather than file level
The text was updated successfully, but these errors were encountered: