You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
317 B

--TEST--
Bug #43332.2 (self and parent as type hint in namespace)
--FILE--
<?php
namespace foobar;
class foo {
public function bar(::self $a) { }
}
$foo = new foo;
$foo->bar($foo); // Ok!
$foo->bar(new stdclass); // Error, ok!
--EXPECTF--
Fatal error: '::self' is a wrong class name in %sbug43332_2.php on line 5