Replies: 3 comments
-
Thanks for reporting this problem, @ahtux. I could reproduce it and confirm that the behavior of the #826 caused this change in the I would also note that PHPCBF "fixes" this error by adding two spaces between the PHP open tag and the file docblock: <?php
/**
* Description of file
*
* @package foo
*/
/**
* Description of function
*/
function foo($x)
{
} I suggest creating a bug report for this: https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/new?template=bug_report.md Tip: use |
Beta Was this translation helpful? Give feedback.
-
Bug report was opened: #945 |
Beta Was this translation helpful? Give feedback.
-
Closing as solved via PR #946 |
Beta Was this translation helpful? Give feedback.
-
Hi all!
I'm not sure, if this is an issue or a code problem, so I'd like to discuss it first...
The code looks as follows:
The rule looks as follows:
With version 3.11.3 this was fine, but since 3.12.0 I get the following:
foo.php:12:1: error - Expected 2 blank lines before function; 0 found
From my point of view there are two blank lines...
Am I wrong?
Please help.
Tank you in advance!
Andre
Beta Was this translation helpful? Give feedback.
All reactions