floor() and ceil() never return false in PHP 8#954
floor() and ceil() never return false in PHP 8#954jlherren wants to merge 1 commit intoJetBrains:masterfrom
Conversation
|
Seems like they could before PHP8: |
|
Oh well... Can this be considered an unlikely edge case, which is reported by any decent IDE and static analyzer? Otherwise discard this PR. |
|
I guess it's up to the maintainers to decide but it's a delicate subject. By removing this in the stubs, it's like saying that it can never happen. Which means every code that handle this false value, even for edge cases, will be flagged as an error in IDE. However, Jetbrains are experimenting with attributes lately in the stubs. Maybe they could have a use to differentiate returns between php versions |
|
@jlherren Please use phpstorm-stubs/enchant/enchant.php Line 7 in 20d2546 |
|
We've addressed this situation using |
No description provided.