summaryrefslogtreecommitdiff
path: root/Zend/tests/class_name_as_scalar_error_003.phpt
blob: 92990416930fd2da472b1073d5c2dfaefa230596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
class name as scalar from ::class keyword error using static in method signature
--FILE--
<?php

namespace Foo\Bar {
    class One {
        public function baz($x = static::class) {}
    }
}
?>
--EXPECTF--
Fatal error: static::class cannot be used for compile-time class name resolution in %s on line %d