PHP Annotated – September 2019

php_annotated

Greetings everyone,

It’s time for our September edition of PHP Annotated! Get the latest on PHP 7.4.0 RC 1, Laravel 6, Monolog 2, and other releases. There are loads of insights from PHP Internals, including Union Types RFC, plus we’ll share links for Laravel and Symfony, useful tools, videos, podcasts, and a whole lot more!

⚡️ News & Releases

  • PHP 7.4.0 RC1 – The release-candidates cycle for the 7.4 branch has started now. At least 6 RCs are expected before the GA release.
  • PHP 7.1.32, PHP 7.2.22, PHP 7.3.9 – Security releases with fixes for critical vulnerabilities. All users are encouraged to update.
  • Monolog 2.0.0 – It’s been 4 years since it was first announced and now, finally, Monolog 2.0 is released. It requires PHP 7.2, uses type hints where possible and strict_types mode, and has new handlers (e.g. SqsHandler, TelegramBotHandler) and more. Support for Monolog 1.x will continue.

🐘 PHP Internals

  • Straw poll for P++ feasibility – Just in case you missed it, the P++ idea was rejected unanimously by the PHP community as completely unfeasible.
  • [PoC] throw_legacy_failure declare statement – An interesting pull request to PHP proof of concept for letting internal/old functions be able to throw an Exception in case of failure, instead of using the legacy behavior of returning null or false. This behavior is controlled using the declare statement: declare(throw_legacy_failure=1).
  • [RFC] Reclassifying engine warnings – Nikita Popov proposes taking a look at the existing warnings and notices in the engine, and thinking about whether their current classification is still appropriate: “Undefined variable” should be at least a Warning.
  • [RFC] Union Types v2 – Another epic proposal from Nikita continues on the work of Bob&Levi. It suggests adding union types in PHP 8. It would mean that any variable can be one of the specified types. You have been able to use union types in PHPDoc for a long time, but now they are will be checked.
    The proposed syntax T1|T2|... could be used anywhere you can use type declarations now:
    Noteworthy, the RFC is published as a pull request to php/php-rfcs repo and anyone can comment or react with emojis. The final vote will still take place at wiki.php.net as before. According to Nikita’s message, this first experiment went well despite some noise in top-level comments, and the proposal received a lot of valuable feedback from the community.
  • In PHP 8 error_reporting will be E_ALL by default instead of the current:
    E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED.

🛠 Tools

Symfony

Laravel

  • Laravel 6 – A major framework update was announced at the Laracon EU conference. This is an LTS release and will get security updates for 3 years. Also, the framework follows Semver for release versions. It means that we will be seeing more first number increases, and version 7 will be released this coming winter. See what’s new in Laravel 6 at Laracasts.
  • facade/ignition – Among other things, Laravel 6 has a brand new error page. It is based on Whoops, but it provides more information and even allows you to fix some issues without ever leaving your browser.
  • Videos from Laracon US 2019
  • PHP Townhall #68: Behind the Facade – Matt Trask and Ben Edmunds are joined by Taylor Otwell to discuss what’s new with Laravel, the business side of things, and what it’s like organizing a huge conference.

🌀 Async PHP

💡 Misc

🔈 Podcasts

💬 Community

Thanks for reading!

If you have any interesting or useful links to share via PHP Annotated, leave a comment or drop me a message on Twitter.

Subscribe to PHP Annotated

Your JetBrains PhpStorm Team
The Drive to Develop

This entry was posted in PHP Annotated Monthly and tagged , , , , . Bookmark the permalink.