Closed VladyslavSikailo closed 11 months ago
@VladyslavSikailo Not a false positive. PSR12 demands a blank line between different type of use
statements, so there should be a blank line between the last class use
statement and the first function use
statement.
P.S.: for the future, please open new issues in https://github.com/PHPCSStandards/PHP_CodeSniffer - also see #3932
Describe the bug
PSR12.Files.FileHeader.SpacingAfterBlock check is false positive when
use
is used for class and function.Code sample
To reproduce
Steps to reproduce the behavior:
Test.php
with the code sample abovephpcs -s --standard=PSR12 --no-cache Test.php
Expected behavior
Checking should be passed
Versions (please complete the following information)
Please confirm:
master
branch of PHP_CodeSniffer.