bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.57k stars 93 forks source link

Wrong return types for `preg_match_all` #2807

Closed susnux closed 3 months ago

susnux commented 4 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.

To Reproduce Hover a call to preg_match_all

Expected behavior Show only correct int|false

Screenshots See return annotation: Screenshot_20240304_114900

Platform and version Linux, Intelephense 1.10.2