Closed susnux closed 3 months ago
Describe the bug Intelliphense reports preg_match_all return int|false|null but this is not correct, it only return int|false. Checking for null will result in psalm issues.
preg_match_all
int|false|null
int|false
null
To Reproduce Hover a call to preg_match_all
Expected behavior Show only correct int|false
Screenshots See return annotation:
Platform and version Linux, Intelephense 1.10.2
Describe the bug Intelliphense reports
preg_match_all
returnint|false|null
but this is not correct, it only returnint|false
. Checking fornull
will result in psalm issues.To Reproduce Hover a call to
preg_match_all
Expected behavior Show only correct
int|false
Screenshots See return annotation:![Screenshot_20240304_114900](https://github.com/bmewburn/vscode-intelephense/assets/1855448/5f20ebaf-e7fd-4d82-946d-54b1ab08d31f)
Platform and version Linux, Intelephense 1.10.2