Skip to content

Commit b9f3cb3

Browse files
committed
Change to warning
1 parent a9ad135 commit b9f3cb3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

HM/Sniffs/PHP/IssetSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function process( File $phpcsFile, $stackPtr ) {
2323

2424
$comma_token = $phpcsFile->findNext( T_COMMA, $open_parenthesis_token + 1 );
2525
if ( $comma_token !== false && $comma_token < $tokens[ $open_parenthesis_token ]['parenthesis_closer'] ) {
26-
$phpcsFile->addError( 'Only one argument is allowed per ISSET call', $stackPtr, 'MultipleArguments' );
26+
$phpcsFile->addWarning( 'Only one argument should be used per ISSET call', $stackPtr, 'MultipleArguments' );
2727
}
2828
}
2929
}

tests/fixtures/fail/isset.php.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"3": [
33
{
44
"source": "HM.PHP.Isset.MultipleArguments",
5-
"type": "error"
5+
"type": "warning"
66
}
77
],
88
"4": [
99
{
1010
"source": "HM.PHP.Isset.MultipleArguments",
11-
"type": "error"
11+
"type": "warning"
1212
}
1313
]
1414
}

0 commit comments

Comments
 (0)