Skip to content

Commit a150c02

Browse files
committed
Add first case to good.php
1 parent e912b6f commit a150c02

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

tests/Drupal/good/good.php

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ public function test8() {}
11241124

11251125
}
11261126

1127-
t('Some long mulit-line
1127+
t('Some long mulit-line
11281128
text is weird, but allowed.');
11291129

11301130
// Anonymous functions should not throw indentation errors here.
@@ -1986,3 +1986,19 @@ protected function getFallbackPluginId($plugin_id, array $configuration = []) {
19861986
}
19871987

19881988
}
1989+
1990+
/**
1991+
* Test for @phpstan-ignore-next-line.
1992+
*
1993+
* Coder issue https://www.drupal.org/project/coder/issues/3516489
1994+
*/
1995+
class TestPhpstanIgnore1 extends BaseMySqlSchema {
1996+
1997+
/**
1998+
* This is the function docblock comment.
1999+
*/
2000+
// @phpstan-ignore-next-line missingType.return
2001+
public function addField($table, $field, $spec, $keys_new = []) {
2002+
}
2003+
2004+
}

0 commit comments

Comments
 (0)