6
xalys
11d

FFS PHP. If I have a failing json_encode() because one of the items isn’t a string, WHY DON’T YOU RAISE AN EXCEPTION

Comments
  • 6
    sorry to say, but it is because PHP! 😁
  • 4
    Well, they do state that they return false when it failed in the docs. Is it then really php's fault for you not reading the docs?
  • 2
    RTFM, seriously.
  • 1
    The docs says what it returns. That’s not the point and not what I’m complaining about. Stuff like this should throw an exception.
  • 2
    @PrivateGER "My house is on fire why isn't the fire department putting it out?"

    "RTFM"

    Ah well yes of course thank you for this helpful insight
  • 2
    @arcsector The docs literally tell you what it returns when it fails. Failing to encode JSON should not be an exception.
Your Job Suck?
Get a Better Job
Add Comment