summaryrefslogtreecommitdiff
path: root/Zend/tests/bug78776.phpt
blob: 3696d955a3a3ec5936343af60c228f307f0a5fe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
Bug #78776: Abstract method implementation from trait does not check "static"
--FILE--
<?php

abstract class A
{
    abstract public function createApp();
}

class B extends A
{
    use C;
}

trait C
{
    public static function createApp()
    {
        echo "You should not be here\n";
    }
}

B::createApp();

?>
--EXPECTF--
Fatal error: Cannot make non static method A::createApp() static in class C in %s on line %d