diff --git a/tests/AnnotationTest.php b/tests/AnnotationTest.php index f31e4e284..0ec80b9c4 100644 --- a/tests/AnnotationTest.php +++ b/tests/AnnotationTest.php @@ -450,7 +450,7 @@ class AnnotationTest extends TestCase $a = new A(); $a->foo = 5;', - 'error_message' => 'InvalidPropertyAssignment', + 'error_message' => 'InvalidPropertyAssignmentValue', ], 'propertyWriteDocblockInvalidAssignment' => [ 'foo = 5;', - 'error_message' => 'InvalidPropertyAssignment', + 'error_message' => 'InvalidPropertyAssignmentValue', ], 'propertySealedDocblockUndefinedPropertyAssignment' => [ 'foo = 5;', - 'error_message' => 'InvalidPropertyAssignment', + 'error_message' => 'InvalidPropertyAssignmentValue', ], 'propertyReadInvalidFetch' => [ 'foo["boof"] = "hello"; } }', - 'error_message' => 'InvalidPropertyAssignment', + 'error_message' => 'InvalidPropertyAssignmentValue', ], 'incorrectDocblockOrder' => [ 'strs = [new stdClass()]; // no issue emitted } }', - 'error_message' => 'InvalidPropertyAssignment', + 'error_message' => 'InvalidPropertyAssignmentValue', ], 'incrementalArrayPropertyAssignment' => [ 'strs[] = new stdClass(); // no issue emitted } }', - 'error_message' => 'InvalidPropertyAssignment', + 'error_message' => 'InvalidPropertyAssignmentValue', ], ]; } diff --git a/tests/MethodSignatureTest.php b/tests/MethodSignatureTest.php index 14db549cd..ba66ecc2c 100644 --- a/tests/MethodSignatureTest.php +++ b/tests/MethodSignatureTest.php @@ -221,7 +221,7 @@ class MethodSignatureTest extends TestCase } }', 'error_message' => 'Argument 1 of B::fooFoo has wrong type \'bool\', expecting \'int\' as defined ' . - 'by A::foo', + 'by A::fooFoo', ], 'nonNullableSubclassParam' => [ ' 'Argument 1 of B::foo has wrong type \'string\', expecting \'string|null\'', + 'error_message' => 'Argument 1 of B::foo has wrong type \'string\', expecting \'string|null\' as', ], 'mismatchingCovariantReturn' => [ '