Skip to content

Commit 29970d6

Browse files
committed
Add test cases for attributes fix
1 parent eca701c commit 29970d6

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Magento2/Tests/Annotation/MethodArgumentsUnitTest.inc

+18
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,21 @@ public function invalidDocBlockShouldNotCauseFatalErrorInSniff(int $number): int
3333
{
3434
return $number;
3535
}
36+
37+
/**
38+
* Short description.
39+
*
40+
* @param string $text
41+
* @return string
42+
*/
43+
#[\ReturnTypeWillChange]
44+
public function methodWithAttributeAndValidDocblock(string $text): string
45+
{
46+
return $text;
47+
}
48+
49+
#[\ReturnTypeWillChange]
50+
public function methodWithAttributeAndWithoutDocblock(string $text): string
51+
{
52+
return $text;
53+
}

Magento2/Tests/Annotation/MethodArgumentsUnitTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function getErrorList()
1818
12 => 1,
1919
21 => 1,
2020
32 => 1,
21+
50 => 1
2122
];
2223
}
2324

0 commit comments

Comments
 (0)