Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/reflection/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/reflection/tests/ReflectionMethod_defaultArg.phpt |
--TEST-- ReflectionMethod and RECV_INIT (bug #70957 and #70958) --FILE-- <?php Abstract class F { private function bar($a = self::class) {} } Trait T { private function bar($a = self::class) {} } class B { use T; } echo new \ReflectionMethod('F', 'bar'); echo new \ReflectionMethod('T', 'bar'); echo new \ReflectionMethod('B', 'bar'); ?> --EXPECTF-- Method [ <user> private method bar ] { @@ %s - Parameters [1] { Parameter #0 [ <optional> $a = 'F' ] } } Method [ <user> private method bar ] { @@ %s - Parameters [1] { Parameter #0 [ <optional> $a = 'T' ] } } Method [ <user> private method bar ] { @@ %s - Parameters [1] { Parameter #0 [ <optional> $a = 'B' ] } }
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare