<?php
class MockReflectionMethod extends ReflectionFunctionAbstract
{
public static function export() {}
public function __toString() {}
}
try {
(new MockReflectionMethod)->isStatic();
} catch(Throwable $e) {
echo $e->getMessage();
}
try {
(new MockReflectionMethod)->getReturnType();
// same issue with returnsReference
} catch(Throwable $e) {
echo $e->getMessage();
}
Call to undefined method MockReflectionMethod::isStatic()Internal error: Failed to retrieve the reflection object
Output for 7.0.0 - 7.0.20
Call to undefined method MockReflectionMethod::isStatic()
Fatal error: ReflectionFunctionAbstract::getReturnType(): Internal error: Failed to retrieve the reflection object in /in/7LjRK on line 17
Process exited with code 255.
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/7LjRK on line 11
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/7LjRK on line 11
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/7LjRK on line 5
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/7LjRK on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/7LjRK on line 5
Process exited with code 255.