Skip to content

Commit

Permalink
Merge pull request #596 from PHPCSStandards/feature/passedparameters-…
Browse files Browse the repository at this point in the history
…test-minor-simplification

GetParametersSkipShortArrayCheckTest: remove redundant condition
  • Loading branch information
jrfnl authored May 13, 2024
2 parents 94e8aba + 40438d0 commit 60a360c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

namespace PHPCSUtils\Tests\Utils\PassedParameters;

use PHPCSUtils\BackCompat\Helper;
use PHPCSUtils\Tests\PolyfilledTestCase;
use PHPCSUtils\Utils\PassedParameters;

Expand Down Expand Up @@ -93,7 +92,7 @@ public function testGetParametersSkipShortArrayCheck($testMarker, $targetType, $
* Note: this also means that the "$expected" value will not be tested as the exception
* will be received before the code reaches that point.
*/
if ($targetType === \T_OPEN_SQUARE_BRACKET && \version_compare(Helper::getVersion(), '3.7.1', '>')) {
if ($targetType === \T_OPEN_SQUARE_BRACKET) {
$this->expectPhpcsException(
'The hasParameters() method expects a function call, array, isset or unset token to be passed.'
);
Expand Down

0 comments on commit 60a360c

Please sign in to comment.