
带有新闻和资料链接的新鲜选择。在发行版中:PHP 8 Alpha 3,PhpStorm 2020.2,一个新的运算符?->,关于属性语法和其他PHP Internals新闻的另一讨论,PHP中类型系统的概述,一部分有用的工具,视频,流以及更多内容。
享受阅读!
新闻和发布
- PHP 8.0.0 Alpha 3-最新计划的Alpha版本。预计将于8月6日发布第一个Beta。
- PhpStorm 2020.2 — PHP 8, , - GitHub, OpenAPI. .
PHP Internals
[RFC] Shorter Attribute Syntax Change — PHP 8 . .
:<< >>,@@, .
@@, RFC . ,#[ ]Rust, .
, PHP 8.1, - 8.0 4 . PHP 8.0,<< >>,#[],@@, PHP 8.1 .
:@[Attribute], PHPDoc/** @@MyAttribute */, —@@@,@.
,@@, - ,T_PAAMAYIM_NEKUDOTAYIM, - — PHP 8 Alpha 3 .
[RFC] Treat namespaced names as single token — PHP 8 . , , namespace app\function { class Foo {} }.
, , :use /** Try comments */ \FullyQualified \ /* in this ugly way */ SometTotallyDifferentTrait /** also after */;
[RFC] Saner string to number comparisons — .
PHP 8,==, .
0 == 'foobar'false.
<=>,==,!=,>,>=,<<=,switch,in_array(),sort().
[RFC] Nullsafe operator — PHP 8 nullsafe: ?->.
Cnull.
, ::private function getUserCountry(): ?string { $session = $this->sessionStorage->getSession(); if (null === $session) { return null; } $user = $session->getUser(); if (null === $user) { return null; } if (null === $user->address) { return null; } return $user->address->country; }$country = $this->sessionStorage->getSession()?->getUser()?->address?->country;
(@).
[RFC] Allow trailing comma in closure use lists — use PHP 8 , . $f = function ( $longArgument, $longerArgument, $muchLongerArgument, ) use ( $longVar1, $longerVar2, $muchLongerVar3, // ) { ... };
[RFC] Named Arguments — PHP 8 !
, .
:htmlspecialchars($string, ENT_COMPAT | ENT_HTML401 , ini_get("default_charset"), false);
htmlspecialchars($string, double_encode: false);
stitcher.io/blog/php-8-named-arguments.
[RFC] Renamed Parameters — . RFC.
:function callBar(Foo $internalName:externalName) { $internalName->bar(); } $x = new Foo(); callBar(externalName: $x);
- Swift. ,@@NameAlias.
[RFC] Make constructors and destructors return void — .
- ramsey/conventional-commits — Conventional Commits. , .
- jubianchi/ppc — . phplrt/phplrt.
- thephpleague/mime-type-detection — - mime- .
- zakirullin/typed-accessor — .
- nette/php-generator — PHP- fluent-.
Symfony
Laravel
- Laravel 6 7 — Laravel 6 7. Laravel 5.5 'cookie'.
- butschster/LaravelCycleORM — cycle/orm Laravel.
- - Laravel.
«».
Laravel- (27 – 2 2020)
Nuno Maduro Freek Murze PHPUnit Pest.
Laracon EU Online 2020
- PHP — PHP .
- PHP 8: .
- — , , .
- PHP: Preloading — Manual — - , PHP 7.4.
- PhpStorm, But Better! #2 — .
- LearnXdebug.com — Xdebug.
- ( , , ) .
MySQL Postgres.
.
PHP Internals News #38: WeakMaps.
PHP.
PHP-.
, - ?
/
PHP Internals News #63 — André Rømcke .
PHP Internals News #64 — Benjamin Eberlei .
Xdebug — Laravel Valet PhpStorm, , , .
— 3 17.00, .
MoreView #12 | — elisdn.ru deworker.pro. PHP, , .
MoreView #13 | — «» Happy Job.
PHP — .
五分钟PHP#81,带有rectorphp / rector审核-现在,五分钟的短片也出现在Instagram和TikTok上。
感谢您的关注!
如果您发现错误或不准确,请亲自告诉我们。
问题和建议写在邮件,推特或电报上 Pronskiy...
有关PHP Digest Telegram频道的更多新闻和评论。
发送
链接在所有摘要中搜索链接
←上一个版本:PHP-摘要№184