Fatal error when casting variadic ReflectionParameter to string
Open
php5 incompatibility
php7 incompatibility
probably easy
- Dominant language
- C++
- Stars
- 18.7k
- Forks
- 3.1k
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 2
Description
``` php
function foo(...$a) {}
$f = new ReflectionFunction('foo');
$p = $f->getParameters()[0];
echo $p;
```
Gives:
> Fatal error: Uncaught exception 'ReflectionException' with message 'Parameter is not optional'
See https://3v4l.org/YsCPJ
Contributor guide
Assessment
This issue has not been assessed yet.