PHP摘要#189(2020年9月21日至10月5日)



带有新闻和资料链接的新鲜选择。即将发布:PHP 8.0 RC 1和内部函数参数,PhpStorm 2020.3 EAP,多行短lambda,属性组的属性和其他PHP Internals新闻的重命名,有用的工具,文章,流,播客的一部分。



享受阅读!





新闻和发布



  • PHP 8.0.0 RC 1 — - 8. 4 - 15 .



    core- . PDO. .
  • PhpStorm 2020.3 EAP — . PHP 8 — . Xdebug 3, PHPStan/Psalm ( ), Guzzle HTTP- .
  • PHP 7.2.34
  • PHP 7.3.23
  • PHP 7.4.11
  • RU phpcommunity.ru — PHP-, -.
  • Hacktoberfest 4 - .



    - , - readme. PR. DigitalOcean - , ‘hacktoberfest’.



    , - issues #hacktoberfest PHP-.


PHP Internals



  • 检查 [PR] Attributes on property groups — , , .
    class FooBar {
        #[NonNegative]
        public int $x, $y, $z;
    }
    
  • 检查 [PR] Attributes and strict typesstrict_types=1.
  • [PR] OPCache: Direct execution opcode file without php source code file — PR, . , - Java .pyc / .pyo.



    , PHP- . .phar, .



    . PHP . -, PHP 7.4.22 segfault PHP 7.4.23. — .
  • [PR] Multiline arrow functions — , PHP 7.4, . - :
    $guests = array_filter($users, fn ($user) => {
    
      $guest = $repository->findByUserId($user->id);
    
    
      return $guest !== null && in_array($guest->id, $guestsIds);
    
    });
    


    , use.



    , =>:
    fn() => {}
    fn() {}






Symfony





Laravel





Yii





Async PHP









/










感谢您的关注!



如果您发现错误或不准确,请亲自告诉我们

问题和建议写在邮件推特上



有关PHP Digest Telegram频道的更多新闻和评论



发送

链接在所有摘要中搜索链接

上一期:PHP-摘要#188




All Articles