PHP Annotated – October 2019


Greetings everyone,

It’s time for our October edition of PHP Annotated! Get the latest on PHP 7.4.0 RC 3, GitHub dependency graph support for PHP, upgrading PSR standards, RFCs from PHP Internals, and the Coordinating PHP project. We’ll share links for Laravel and Symfony, useful tools, videos, podcasts, and a whole lot more!

⚡️ News & Releases

🐘 PHP Internals

  • [RFC] Object Initializer – In this thorough document, the new syntax for quick object initialization has been proposed:
    class Car
      public int $yearOfProduction;
      public string $vin;
    $car = new Car {
      yearOfProduction = 2019,
      vin = "1FTFW1CVXAFD54385",
    $car = new Car {
      yearOfProduction = 2019,
    }; // throws RuntimeException: Initialization of Car class object failed due to missing required properties

    Read about the proposal briefly in the author’s blogpost or listen to the podcast and take in all details in 🔈 PHP Internals News #30.

  • [RFC] Reclassifying engine warnings – Existing warnings and notices in the engine have been revisited, and according to the voting results we’ll have the following in PHP 8.0:
    • Undefined variables: now will throw a Warning.
    • Undefined array index: Warning.
    • Division by zero: will throw an Exception, and a new fdiv() function will be added which allows division by zero.
    • Invalid argument supplied for foreach(): Warning.
    All other changes passed the vote and were accepted.
    Find out more in the podcast 🔈 PHP Internals News #29 with Nikita Popov.
  • PHP project coordination – While Internals again stirred up quite a bit of drama, some good things also happened. Dan Ackroyd created a document, where he described all the current discussions and tasks. If you’d like to contribute to the PHP project, this can be a great starting point.

🛠 Tools



🌀 Async PHP

💡 Misc

🔈 Podcasts

💬 Community

Thanks for reading!

If you have any interesting or useful links to share via PHP Annotated, leave a comment on this post or tweet me.

Subscribe to PHP Annotated

Your JetBrains PhpStorm Team
The Drive to Develop

image description