-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[StandaloneLineConstructorParamFixer] Ignore constructor without argu…
…ments (#32) * Add failing test for StandaloneLineConstructorParamFixer When you have a constructor without arguments, the fixer changes it to: ```diff -protected function __construct() { +protected function __construct( +) { ``` Not sure how to solve this. * Ignore when function has no arguments
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tests/Fixer/Spacing/StandaloneLineConstructorParamFixer/Fixture/empty_constructor.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Symplify\CodingStandard\Tests\Fixer\Spacing\StandaloneLineConstructorParamFixer\Fixture; | ||
|
||
final class EmptyConstructor | ||
{ | ||
public function __construct() | ||
{ | ||
echo "Hello, World!"; | ||
} | ||
} | ||
|
||
?> |