375
submitted 1 year ago* (last edited 1 year ago) by AlmightySnoo@lemmy.world to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] asceticism@lemmy.fmhy.ml 36 points 11 months ago* (last edited 11 months ago)

This is not valid syntax as of 2020. PHP 8 fixed a lot of issue like this as well as a lot of function and variable type issues.

Also this was deprecated in PHP 7 (2015).

[-] ezchili@iusearchlinux.fyi 10 points 11 months ago

They deprecated nested ternaries?

[-] asceticism@lemmy.fmhy.ml 11 points 11 months ago* (last edited 11 months ago)

Not nested but 'Unparenthesized'

Also per the error message here is it working:

this post was submitted on 14 Jul 2023
375 points (99.5% liked)

Programmer Humor

31259 readers
669 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS