version_compare() params and return type
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 942
Closed
Labels
Milestone
Description
opened
on Jan 31, 2021Bug report
I get unexpected errors for version_compare().
Code snippet that reproduces the problem
https://phpstan.org/r/e09f4ab5-16fa-4be9-a613-1e604986e2bf
Expected output
No errors expected.
- Param 3 can be
null - result can be
nullfor php < 8 when the operator does not exist: https://3v4l.org/3TXPC
Metadata
Metadata
Assignees
No one assigned
Labels
Type
No type
Projects
No projects
Milestone
Relationships
None yet
Development
No branches or pull requests
Issue actions