facebook / facebook/hhvm

ReflectionFunction returning the wrong value

Open
#7,201 2 comments 0 reactions 0 assignees View on GitHub
php5 incompatibility php7 incompatibility probably easy
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

### HHVM Version

hhvm-3.9.1 - 3.12.0
### Standalone code, or other way to reproduce the problem

`print (new \ReflectionFunction('array_map'))->getNumberOfRequiredParameters();`
https://3v4l.org/TJuYG#vhhvm-391
### Expected result

2
### Actual result

3

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.