From 8776b2aa1f33b8cccefe7e23d53b689f9f8e0152 Mon Sep 17 00:00:00 2001 From: Dan Wallis Date: Tue, 7 Mar 2023 16:46:42 +0000 Subject: [PATCH] Allow more version numbers in @deprecated tag --- Magento2/Helpers/Commenting/PHPDocFormattingValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;