/
proc
/
3430793
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
Zend
/
tests
/
traits
/
File Upload :
llllll
Current File: //proc/3430793/root/usr/local/lsws/phpbuild/php-8.0.7/Zend/tests/traits/bug76539.phpt
--TEST-- Bug #76539 (Trait attribute is set incorrectly when using self::class with another string) --FILE-- <?php trait MyTrait { protected $attr = self::class . 'Test'; public function test() { echo $this->attr, PHP_EOL; } } class A { use MyTrait; } class B { use MyTrait; } (new A())->test(); (new B())->test(); ?> --EXPECT-- ATest BTest
Copyright ©2k19 -
Hexid
|
Tex7ure