Fix DateTimeImmutable::sub() to not return false #8484
Labels
bug
easy problems
Issues that can be fixed without background knowledge of Psalm
internal stubs/callmap
@Ocramius The
->sub()
issue is separate from this, this issue is only for->modify()
, but I do believe->sub()
was incorrect in your PR, here's an example for that special case you found: https://3v4l.org/TIWRBIt indeed gives a warning and returns a clone, so there's no
false
return.Also, go get some sleep 😛
Originally posted by @AndrolGenhald in #8454 (comment)
The text was updated successfully, but these errors were encountered: