Fresh selection with links to news and materials. In the release: PHP 7.4.0 beta 1, PhpStorm 2019.2, PSR-12, an overview of RFC offers from PHP Internals, news from Laracon US, podcasts, a portion of useful tools, and much more.
Enjoy reading!
function byRef(&$ref) {...} byRef($var);
It is proposed to make it possible to explicitly indicate the transfer by reference. Thus warning the developer that the passed variable will change: function byRef(&$ref) {...} byRef(&$var);
declare();
in each file. This can be convenient, especially if strict_operators are accepted. namespace_declare('Vendor\Lib', [ 'strict_types' => 1, 'strict_operators' => 1, ... ]);
<?
. However, after it was adopted, indignation and debate rained down. This RFC offers a milder way: if the short_open_tag
option is enabled in php.ini, then the first time you use <?
Notice will be thrown. Despite the fact that PHP 7.4 is already in beta, if accepted, the implementation will be delayed with the permission of release managers.Thanks for attention!
')
If you notice a mistake or inaccuracy - please inform me in PM .
Questions and suggestions write to mail or twitter .
More news and comments on the PHP Digest Telegram Channel.
Send link
Search links for all digests
← Previous release: PHP Digest No. 160
Source: https://habr.com/ru/post/461669/
All Articles