PHP摘要175号(2020年2月25日至3月10日)


带有新闻和资料链接的新鲜选择。在发行版中:Laravel 7和CodeIgniter 4发行版,来自PHP Internals的v2属性和其他RFC语句,一部分有用的工具,视频,播客等等。

享受阅读!



新闻与发布



PHP内部


  • [RFC] Attributes v2 — PHP <<...>>. . , .
    use Doctrine\ORM\Mapping as ORM;
    
    <<ORM\Entity(["repositoryClass" => UserRepository::class])>>
    <<ORM\Table("users")>>
    class User
    {
        <<ORM\Id, ORM\Column, ORM\GeneratedValue>>
        public int $id;
    
        <<ORM\Column(["unique" => true])>>
        public string $email;
    
        <<ORM\ManyToOne()>>
        public ?Address $address;
    }
    
  • [RFC] Increment/Decrement Fixes — , / . :
        <?php
    
        $a = [];
        $a = ++$a; // [] and no errors
        $a = $a + 1; // Fatal error
        
    PHP 8 TypeError .
  • [RFC] Stringable — Nicolas Grekas . PHP 8 union- string|Stringable , , __toString(). .
  • [PR] Make sorting stable — PHP . , (). . , .



Symfony



Laravel



Yii



Laminas



Async PHP





/



感谢您的关注!

如果您发现错误或不准确,请在PM中通知我
问题和建议写在邮件推特上

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

发送链接
搜索所有摘要的链接
以前的版本:PHP Digest No. 174


All Articles