Skip to content

Commit b752a4b

Browse files
committed
Add two more test cases
1 parent 8e93fa1 commit b752a4b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/Drupal/good/good.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2012,3 +2012,19 @@ public function &get($instance_id) {
20122012
// @phpstan-ignore-next-line missingType.return
20132013
public function ignore_phpstan_comment() {
20142014
}
2015+
2016+
/**
2017+
* Test for @phpstan-ignore with attribute before.
2018+
*/
2019+
#[ExampleAttribute('foo', 'bar')]
2020+
// @phpstan-ignore-next-line missingType.return
2021+
public function ignore_phpstan_comment_with_attribute_before() {
2022+
}
2023+
2024+
/**
2025+
* Test for @phpstan-ignore with attribute after.
2026+
*/
2027+
// @phpstan-ignore-next-line missingType.return
2028+
#[ExampleAttribute('foo', 'bar')]
2029+
public function ignore_phpstan_comment_with_attribute_after() {
2030+
}

0 commit comments

Comments
 (0)