PHP文摘第140号(2018年9月17日至30日)


带有新闻和资料链接的新鲜选择。 在发行版中:PHP 7.3 RC2,Codeception 2.5和其他发行版,PHP 7.4中的键入属性,Dmitry Stogov的代码预加载概念,有用的工具的一部分等等。
祝您阅读愉快!



新闻与发布



PHP内部


  • [RFC]类型化属性2.0-类型化属性的提案几乎获得一致通过:70对1! 类型化的属性将在PHP 7.4中添加。
    隐藏文字
     class Example { // All types with the exception of "void" and "callable" are supported public int $scalarType; protected Type $type; private ?Type $nullableType; // Types are also legal on static properties public static iterable $staticProp; // Types can also be used with the "var" notation var bool $flag; // Typed properties may have default values (more below) public string $str = "foo"; public ?string $nullableStr = null; // The type applies to all properties in one declaration public float $x, $y; // equivalent to: public float $x; public float $y; } 
  • [PR]尝试实现“预加载”功能 -Dmitry Stogov是PHPNG项目的主要作者,该项目成为PHP 7的基础。这次,Dmitry引入了一种概念,该概念允许应用程序在PHP处理HTTP请求之前预加载代码。
    Dmitry也在努力在PHP中实现JIT ,这在PHP 8中有望 实现


工具




学习资料




音视频




娱乐性



感谢您的关注!

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

发送链接
搜索所有摘要的链接
先前版本:PHP文摘139

Source: https://habr.com/ru/post/zh-CN424949/


All Articles