Skip to content

Commit 30bed95

Browse files
committed
Update condition for stripos
1 parent 922e108 commit 30bed95

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) &&
130-
stripos($tokens[$deprecatedPtr + 2]['content'], self::WITHOUT_REPLACEMENT, 0)) {
129+
if (stripos($tokens[$deprecatedPtr + 2]['content'], self::REMOVED_IN_VERSION, 0) >= 0 &&
130+
stripos($tokens[$deprecatedPtr + 2]['content'], self::WITHOUT_REPLACEMENT, 0) >= 0) {
131131
return true;
132132
}
133133
return false;

0 commit comments

Comments
 (0)