@HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish • edit-215 hours agoWhy make it complicated?lemmy.mlimagemessage-square74fedilinkarrow-up1257arrow-down10file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up1257arrow-down1imageWhy make it complicated?lemmy.ml@HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish • edit-215 hours agomessage-square74fedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-square@HiddenLayer555@lemmy.mlOPlinkfedilinkEnglish6•14 hours agoTIL PHP has statics. Also, does PHP actually enforce the type declarations? I’d assume it would but knowing PHP…
minus-square@dan@upvote.aulinkfedilink4•14 hours agoIt enforces scalar types (string, int, etc) at runtime if you enable strict mode. There’s also static analysis tools like PHPStan and Psalm that will flag issues at build time.
TIL PHP has statics.
Also, does PHP actually enforce the type declarations? I’d assume it would but knowing PHP…
It enforces scalar types (string, int, etc) at runtime if you enable strict mode. There’s also static analysis tools like PHPStan and Psalm that will flag issues at build time.
so, no. good catch OP!