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 Sep 26, 2023
1 parent d1711ba commit ad4d668
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 ad4d668

Please sign in to comment.