▲ 333 ▼ Why make it complicated? (lemmy.ml) submitted 1 year ago* by HiddenLayer555@lemmy.ml to c/programmer_humor@programming.dev 123 comments fedilink hide all child comments Made with KolourPaint and screenshots from Kate (with the GitHub theme).
[–] HiddenLayer555@lemmy.ml [S] 6 points 1 year ago (2 children) TIL PHP has statics. Also, does PHP actually enforce the type declarations? I'd assume it would but knowing PHP... permalink fedilink source parent hideshow 2 child comments replies: [–] dan@upvote.au 4 points 1 year ago (1 child) 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. permalink fedilink source parent hideshow 1 child comment replies: [–] WhyJiffie@sh.itjust.works 1 point 1 year ago so, no. good catch OP! permalink fedilink source parent
[–] dan@upvote.au 4 points 1 year ago (1 child) 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. permalink fedilink source parent hideshow 1 child comment replies: [–] WhyJiffie@sh.itjust.works 1 point 1 year ago so, no. good catch OP! permalink fedilink source parent
[–] WhyJiffie@sh.itjust.works 1 point 1 year ago so, no. good catch OP! permalink fedilink source parent