symfonystation to [email protected] • 10 months agoWhy use declare(strict_types=1) in PHP - Fast tipsinspector.devexternal-linkmessage-square3fedilinkarrow-up14arrow-down10file-text
arrow-up14arrow-down1external-linkWhy use declare(strict_types=1) in PHP - Fast tipsinspector.devsymfonystation to [email protected] • 10 months agomessage-square3fedilinkfile-text
Enable strict typing mode in PHP with declare(strict_types=1). Understand its implications with code examples.
minus-square@Downcountlink2•10 months ago Furthermore working with HTTP requests can be frustrating with strict typing enabled, since in HTTP requests everything is a string. Sending the payload as JSON and you can be (quite) strict again.
Sending the payload as JSON and you can be (quite) strict again.