<?php
class Test
{
function __construct(GUASS\WHAT\I\DONT\EXIST $class = null)
{
echo 'yay';
}
}
new Test;
$r = new \ReflectionClass('Test');
foreach ($r->getMethod('__construct')->getParameters() as $param) {
var_dump($param->getName());
}
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/ZgJF6 on line 6
Parse error: syntax error, unexpected T_STRING, expecting '&' or T_VARIABLE in /in/ZgJF6 on line 6
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/ZgJF6 on line 6
Parse error: parse error, unexpected T_STRING, expecting '&' or T_VARIABLE in /in/ZgJF6 on line 6
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting ')' in /in/ZgJF6 on line 6
Process exited with code 255.