mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

Additionally fixes wrong behaviour in ReflectionParameter when you first have a construction that uses an object and the subsequent doesn't. Closes GH-16672.
24 lines
433 B
PHP
24 lines
433 B
PHP
--TEST--
|
|
ReflectionProperty double construct call
|
|
--FILE--
|
|
<?php
|
|
|
|
$r = new ReflectionProperty(Exception::class, 'message');
|
|
var_dump($r);
|
|
$r->__construct(Exception::class, 'message');
|
|
var_dump($r);
|
|
|
|
?>
|
|
--EXPECT--
|
|
object(ReflectionProperty)#1 (2) {
|
|
["name"]=>
|
|
string(7) "message"
|
|
["class"]=>
|
|
string(9) "Exception"
|
|
}
|
|
object(ReflectionProperty)#1 (2) {
|
|
["name"]=>
|
|
string(7) "message"
|
|
["class"]=>
|
|
string(9) "Exception"
|
|
}
|