summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/abstract_method_5.phpt
blob: fa6482aa4286068e1ea1adb7116c17bec930f47b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Staticness enforcement on abstract trait methods
--FILE--
<?php

trait T {
    abstract static public function method(int $a, string $b);
}

class C {
    use T;

    public function method(int $a, string $b) {}
}

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