@@ -15,12 +15,12 @@ public function testInvalidPropertyTypeAttribute(): void
15
15
$ errors = $ this ->analyse (__DIR__ . '/data/InvalidPropertyTypeAttribute.php ' );
16
16
17
17
$ expectedErrors = [
18
- 'PHPDoc tag @var has invalid value (): Unexpected token "\n ", expected type at offset 11 ' => 9 ,
19
- 'Parameter #1 $type of attribute class PhpStaticAnalysis\Attributes\Type constructor expects string, int given. ' => 9 ,
20
- 'Attribute class PhpStaticAnalysis\Attributes\Type is not repeatable but is already present above the property . ' => 13 ,
21
- 'Attribute class PhpStaticAnalysis\Attributes\Type constructor invoked with 2 parameters, 1 required . ' => 16 ,
22
- 'PHPDoc tag @var has invalid value ($a + $b): Unexpected token "$a", expected type at offset 12 ' => 19 ,
23
- 'Attribute class PhpStaticAnalysis\Attributes\Type does not have the method target. ' => 22 ,
18
+ 'Attribute class PhpStaticAnalysis\Attributes\Type does not have the class target. ' => 7 ,
19
+ 'PHPDoc tag @var has invalid value (): Unexpected token "\n ", expected type at offset 11 ' => 10 ,
20
+ 'Parameter #1 $type of attribute class PhpStaticAnalysis\Attributes\Type constructor expects string, int given . ' => 10 ,
21
+ 'Attribute class PhpStaticAnalysis\Attributes\Type is not repeatable but is already present above the property . ' => 14 ,
22
+ 'Attribute class PhpStaticAnalysis\Attributes\Type constructor invoked with 2 parameters, 1 required. ' => 17 ,
23
+ 'PHPDoc tag @var has invalid value ($a + $b): Unexpected token "$a", expected type at offset 12 ' => 20 ,
24
24
];
25
25
26
26
$ this ->checkExpectedErrors ($ errors , $ expectedErrors );
0 commit comments