Verified on latest main
PHPantom version / commit
0.10.0
Installation method
Pre-built binary from GitHub Releases
Operating system
Linux x86_64
Editor
Zed
Bug description
Return type of version_compare() is always boolean when the $operator argument is provided.
Steps to reproduce
<?php
function foo(): bool
{
return version_compare('a', 'b', '>=');
}
### Error output or panic trace
```text
Return type int|bool is incompatible with declared return type bool
.phpantom.toml
Additional context
No response
Verified on latest main
mainbranch.PHPantom version / commit
0.10.0
Installation method
Pre-built binary from GitHub Releases
Operating system
Linux x86_64
Editor
Zed
Bug description
Return type of
version_compare()is always boolean when the$operatorargument is provided.Steps to reproduce
.phpantom.toml
Additional context
No response