xref: /PHP-7.4/Zend/tests/bug78776.phpt (revision 4a61d842)
1--TEST--
2Bug #78776: Abstract method implementation from trait does not check "static"
3--FILE--
4<?php
5
6abstract class A
7{
8    abstract public function createApp();
9}
10
11class B extends A
12{
13    use C;
14}
15
16trait C
17{
18    public static function createApp()
19    {
20        echo "You should not be here\n";
21    }
22}
23
24B::createApp();
25
26?>
27--EXPECTF--
28Fatal error: Cannot make non static method A::createApp() static in class C in %s on line %d
29