diff --git a/Magento2/Helpers/Commenting/PHPDocFormattingValidator.php b/Magento2/Helpers/Commenting/PHPDocFormattingValidator.php index a87312d5..3ba9e7c7 100644 --- a/Magento2/Helpers/Commenting/PHPDocFormattingValidator.php +++ b/Magento2/Helpers/Commenting/PHPDocFormattingValidator.php @@ -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;