Skip to content

Commit 180c510

Browse files
committed
Update boolean comparison on condition
1 parent 30bed95 commit 180c510

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Magento2/Helpers/Commenting/PHPDocFormattingValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ public function hasDeprecatedWellFormatted($commentStartPtr, $tokens)
126126
}
127127
$seePtr = $this->getTagPosition('@see', $commentStartPtr, $tokens);
128128
if ($seePtr === -1) {
129-
if (stripos($tokens[$deprecatedPtr + 2]['content'], self::REMOVED_IN_VERSION, 0) >= 0 &&
130-
stripos($tokens[$deprecatedPtr + 2]['content'], self::WITHOUT_REPLACEMENT, 0) >= 0) {
129+
if (stripos($tokens[$deprecatedPtr + 2]['content'], self::REMOVED_IN_VERSION, 0) !== false &&
130+
stripos($tokens[$deprecatedPtr + 2]['content'], self::WITHOUT_REPLACEMENT, 0) !== false) {
131131
return true;
132132
}
133133
return false;

0 commit comments

Comments
 (0)