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
Bug #69084: Unclear error message when not implementing a renamed abstract trait function
3
+
--FILE--
4
+
<?php
5
+
6
+
trait Foo {
7
+
abstractpublicfunctiondoStuff();
8
+
9
+
publicfunctionmain() {
10
+
$this->doStuff();
11
+
}
12
+
}
13
+
14
+
class Bar {
15
+
use Foo {
16
+
Foo::doStuff as doOtherStuff;
17
+
}
18
+
19
+
publicfunctiondoStuff() {
20
+
var_dump(__FUNCTION__);
21
+
}
22
+
}
23
+
24
+
$b = newBar();
25
+
$b->main();
26
+
27
+
?>
28
+
--EXPECTF--
29
+
Fatal error: Class Bar contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Bar::doOtherStuff) in %s on line %d
0 commit comments