Skip to content

Commit

Permalink
Allow more version numbers in @deprecated tag
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden committed Dec 8, 2023
1 parent 372d4c6 commit 8dcb904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Magento2/Helpers/Commenting/PHPDocFormattingValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function hasDeprecatedWellFormatted($commentStartPtr, $tokens)
$seePtr = $this->getTagPosition('@see', $commentStartPtr, $tokens);
if ($seePtr === -1) {
if (preg_match(
"/This [a-zA-Z]* will be removed in version \d.\d.\d without replacement/",
"/This [a-zA-Z]+ will be removed in version \d+\.\d+\.\d+ without replacement/",
$tokens[$deprecatedPtr + 2]['content']
)) {
return true;
Expand Down

0 comments on commit 8dcb904

Please sign in to comment.