Enable strict typing mode in PHP with declare(strict_types=1). Understand its implications with code examples.

  • @Downcount
    link
    210 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.