Skip to content

Commit 10027cd

Browse files
committed
Allow more version numbers in @deprecated tag
1 parent b7bf3fb commit 10027cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Magento2/Helpers/Commenting/PHPDocFormattingValidator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function hasDeprecatedWellFormatted($commentStartPtr, $tokens)
124124
$seePtr = $this->getTagPosition('@see', $commentStartPtr, $tokens);
125125
if ($seePtr === -1) {
126126
if (preg_match(
127-
"/This [a-zA-Z]* will be removed in version \d.\d.\d without replacement/",
127+
"/This [a-zA-Z]+ will be removed in version \d+\.\d+\.\d+ without replacement/",
128128
$tokens[$deprecatedPtr + 2]['content']
129129
)) {
130130
return true;

0 commit comments

Comments
 (0)