minus-squaregluestick@lemmy.ziptoProgrammer Humor@programming.dev•Made this after someone noticed her face looked like PirateSoftwarelinkfedilinkarrow-up6·2 months agoPHP enums can be backed by integers or strings but are distinctly typed and any signature that types them will be fatal even if the value matches that of a backed enum. linkfedilink
minus-squaregluestick@lemmy.ziptoMildly Interesting@lemmy.world•The unlikely appeal of barefoot hiking: ‘It makes you feel quite primal’linkfedilinkarrow-up29arrow-down5·7 months agodeleted by creator linkfedilink
PHP enums can be backed by integers or strings but are distinctly typed and any signature that types them will be fatal even if the value matches that of a backed enum.