新しいタイプnever
はPHP8.1にあり、部分関数、およびPHPInternalsからの他の提案やニュースについて説明します。PHPは、git.php.net、Laravel Octane、PhpStorm 2021.1およびその他のリリース、ツール、ビデオ、ポッドキャスト、記事の一部のハッキングについて、Google CloudFunctionsで利用できます。
読書を楽しむ!
ニュース
- git.php.net
PHP . . .
, git.php.net HTTPS -, md5 . master.php.net — , , .
GitHub, . - PHP 7.3.28, PHP 8.0.5 — .
- PHP Google Cloud Functions
Serverless Google Cloud PHP. GoogleCloudPlatform/functions-framework-php/ PHP 7.4.
GitHub Symfony. Symfony 5.3 Runtime, php-runtime/google-cloud.
- Composer Command Injection Vulnerability
Mercurial. 2.0.13 1.10.22, . .
- :
- 15 (), + , PHP- — , , kPHP, devops Go. .
- 28 (), , , PHP Russia, 2021 — 30 .
phpcommunity.ru.
PHP Internals
- [RFC] never type
PHP 8.1 :never
.
,never
, ,die()
,exit()
. .
function redirect(string $uri): never { header('Location: ' . $uri); exit(); } function redirectToLoginPage(): never { redirect('/login'); }
, php.watch, PHP Internals News .
- [RFC] Deprecate implicit non-integer-compatible float to int conversions
PHP 8.1float
int
, ,E_DEPRECATED
. PHP 9.0TypeError
.
function acceptInt(int $i) { var_dump($i); } acceptInt(3.1415); > int(3) // Deprecation notice
PHP Internals News.
- [RFC] Phasing out Serializable
PHP 8.1Serializable
. Deprecation notice , , ,__serialize()
__unserialize()
.
- - PHP 8.1
: core- Joe Watkins ( pthreads, parallel pcov), Patrick Allaert (blackfire.io) Ben Ramsey ( ramsey/uuid).
, s_panteleev, BeerPHP . , - PHP 8.2!
PHP 8.1: - [RFC] Partial Function Application
( ) — ( ) , .
, :
function whole($one, $two) { /* ... */ }
:
$partial = whole(?, 2);
, :
function($one) { /* ... */ }
?
-, ,Callable
. , :
array_map(Something::toString(?), [1, 2, 3]); array_map(strval(?), [1, 2, 3]); // array_map([Something::class, 'toString'], [1, 2, 3]) array_map('strval', [1, 2, 3]);
-, , pipe-|>
:
$result = "Hello World" |> htmlentities(?) |> explode(?);
3v4l.org.
Larry Garfield, Joe Watkins, Levi Morrison Paul Crovella RFC .
- [RFC] Sealed Classes
RFC sealed , .
sealed- .
:
sealed class Shape permits Circle, Square, Rectangle {} final class Circle extends Shape {} // ok final class Square extends Shape {} // ok final class Rectangle extends Shape {} // ok final class Triangle extends Shape {} // Fatal error: Class Triangle cannot extend sealed class Shape.
Java.
- [RFC] Autoload Classmap — , ( => ) . , RFC.
- [PR] Add support for final constants —
final
, .
- spatie/data-transfer-object v3 — DTO PHP 8.
- spatie/fork — pcntl_fork PHP .
- squizlabs/PHP_CodeSniffer 3.6.0 — PHP 8.
Symfony
- symfony/ux-turbo — Ruby on Rails JS- hotwired/turbo. , SPA, JS-.
, AJAX- , URL pushState. , .
UX Turbo — Symfony. - Symfony Mercure - .
. - dykyi-roman/crossword — , Symfony. Roman Dykyi.
- End-to-end Symfony Panther.
- Symfony #747 (19-25 2021)
Laravel
- laravel/octane — Laravel Swoole RoadRunner, . , Mohamed Said (Laravel core), .
- thedevdojo/wave — SS Laravel: , , API, , .
- Christoph Rumpel Livewire.
- Event Sourcing in Laravel — Spatie. . .
- Laravel laravel-signal-aware-command.
- Laravel Worldwide Meetup #8
Async PHP
- reactphp/http v1.3.0 — HTTP ReactPHP keep-alive x2 .
- WordPress-PSR/swoole — WordPress Swoole.
- PHP: - .
PhpStorm
- PHP 8.0.
- Named-entity recognition PHP — ML- RubixML.
- PHP.
- PHP .
- Escape- PHP.
- , … — , .
- .
/
- « » №14 — open source.
- PHP-
- « - PHP»
- Modern PHP with Rasmus Lerdorf — PHP Etsy PHP 8.
- Xdebug 3 Docker PhpStorm 5 — Xdebug.
- PHP Internals News podcast #82 — (RFC) Larry Garfield Nuno Maduro.
- PHPの内部のニュースは、#79ポッドキャストプロ-
new
初期化子内でニキータポポフ。 - PHPリリースレーダー#8 -NunoMaduroからPestまで。
- PHPリリースレーダー#9 -でアンドレアス・ブラウン教義キャッシュ2.0に。
健康上の問題により、ストリームはまだ一時停止しています。
エラーや不正確さに気付いた場合は、個人のハブまたは 電報でお知らせください 。
PHPダイジェスト テレグラムチャネルを購読します 。
リンクの送信
すべてのダイジェストでリンクを検索
←前号:PHP-ダイジェスト#201