You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->assertSame('Parameter #1 $i of method DeclarationWarning\Bar::doFoo() is not optional.', $errors[0]->getMessage());
179
+
$this->assertSame(22, $errors[0]->getLine());
178
180
return;
179
181
}
180
-
$this->assertCount(1, $errors);
182
+
$this->assertCount(2, $errors);
181
183
$this->assertSame('Declaration of DeclarationWarning\Bar::doFoo(int $i): void should be compatible with DeclarationWarning\Foo::doFoo(): void', $errors[0]->getMessage());
'Method OverridingFinalMethod\Bar::doFoo() overrides final method OverridingFinalMethod\Foo::doFoo().',
@@ -54,15 +72,15 @@ public function testOverridingFinalMethod(): void
54
72
68,
55
73
],
56
74
[
57
-
'Parameter #1 $s (string) of method OverridingFinalMethod\Dolor::__construct() is not contravariant with parameter #1 $i (int) of method OverridingFinalMethod\Ipsum::__construct().',
75
+
'Parameter #1 $s (string) of method OverridingFinalMethod\Dolor::__construct() is not ' . $message . ' with parameter #1 $i (int) of method OverridingFinalMethod\Ipsum::__construct().',
58
76
110,
59
77
],
60
78
[
61
79
'Method OverridingFinalMethod\Dolor::doFoo() overrides method OverridingFinalMethod\Ipsum::doFoo() but misses parameter #1 $i.',
62
80
115,
63
81
],
64
82
[
65
-
'Parameter #1 $size (string) of method OverridingFinalMethod\FixedArray::setSize() is not contravariant with parameter #1 $size (int) of method SplFixedArray::setSize().',
83
+
'Parameter #1 $size (string) of method OverridingFinalMethod\FixedArray::setSize() is not ' . $message . ' with parameter #1 $size (int) of method SplFixedArray::setSize().',
0 commit comments