O novo tipo never
estarĂĄ no PHP 8.1, discutindo funçÔes parciais e outras sugestĂ”es e novidades do PHP Internals. PHP estĂĄ disponĂvel no Google Cloud Functions, sobre como hackear git.php.net, Laravel Octane, PhpStorm 2021.1 e outras versĂ”es, uma porção de ferramentas, vĂdeos, podcasts, artigos.
Gostar de ler!
notĂcias
- 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 Internals News podcast nÂș 79 - Profissional new
em inicializadores com Nikita Popov .
PHP Release Radar # 8 - De Nuno Maduro a Pest .
PHP Release Radar # 9 - Com Andreas Braun no Doctrine Cache 2.0.
Se vocĂȘ notar um erro ou imprecisĂŁo, informe-nos por meio de um habr ou telegrama pessoal .
Inscreva-se no canal PHP Digest Telegram .
Enviar link
Links de busca em todos os resumos
â NĂșmero anterior: PHP-Digest # 201