Skip to content

Commit

Permalink
Generic/FunctionCallArgumentSpacing: improve code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoprimo authored and jrfnl committed May 23, 2024
1 parent 7e550f4 commit e9b9777
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,8 @@ $foo = new MyClass(
$obj,
'getMethod',
);

#[AttributeName(1, 2)]
#[AttributeName(1,2)]

$callable = myCallable(...);
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,8 @@ $foo = new MyClass(
$obj,
'getMethod',
);

#[AttributeName(1, 2)]
#[AttributeName(1, 2)]

$callable = myCallable(...);
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

// Intentional parse error (missing closing parenthesis).
// This should be the only test in this file.
// Testing that the sniff is *not* triggered.

myFunction(
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function getErrorList($testFile='')
155 => 1,
162 => 2,
170 => 1,
177 => 1,
];

default:
Expand Down

0 comments on commit e9b9777

Please sign in to comment.