PHP Annotated – July 2019

php_annotated

Greetings everyone,

In our July’s edition of PHP Annotated, you can read about the latest on the PHP 7.4.0 alpha 3 release, ReactPHP 1.0 LTS, new proposals from PHP Internals, such as the Strict operators directive, as well as links for Laravel and Symfony, useful tools, videos, and a whole lot more!

⚡️ News & Releases

🐘 PHP Internals

  • [RFC] Normalize arrays’ “auto-increment” value on copy on write – This RFC proposes to reset the “autoincrement” value when an array is being copied-on-write. As if a new empty array was created and then filled up entry-by-entry from the old one.
            $array = [0, 1, 2, 3];
            unset($array[3], $array[2]);
            $arrayCopy = $array;
            $arrayCopy[] = 2;
    
            // If the proposal is accepted, the following statement will be true.
            // Currently, the arrays below are not equivalent.
            assert($arrayCopy === [0, 1, 2]);
    
  • [RFC] Strict operators directive – PHP performs implicit type casting for most operators. The rules of conversion are complex and may lead to surprising results. This RFC proposes to introduce a new directive strict_operators, which will limit type conversions and make them throw TypeError for incompatible operands. The document describes in detail the current and proposed behaviors and has many examples. So far, it has been postponed until PHP 8.0, as the change is too big for 7.4. .
  • 🔈 PHP Internals News #17: – With Theodore Brown and Bishop Bettini about Numeric Literal Separator.
  • 🔈 PHP Internals News #18: – With Arnold Daniels about the Strict Operator Directive.

🛠 Tools

Symfony

Laravel

🌀 Async PHP

🚨 Security

💡 Misc

📺 Audio/Video

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

image description