Nova seleção com links para notícias e materiais. Na edição: 2 aceitos, 2 rejeitados e 6 novas ofertas de RFC da PHP Internals, uma revisão do PHP 8, uma parte de ferramentas úteis, eventos online, vídeos, podcasts e muito mais.
Gostar de ler!
Notícias e Lançamentos
PHP Internals
- - PHP 8 — Sara Golemon (ex-HHVM/Hack, - PHP 7.2) Gabriel Caruso.
[RFC] Locale-independent float to string cast — . 3,14
3.14
, .
[RFC] Add str_starts_with() and str_ends_with() functions — str_contains() : str_starts_with()
str_ends_with()
.
[RFC] Match expression — . , , RFC .
[RFC] Guard statement — guard
, , if
. Swift, - . .- [RFC] Conditional Return, Break, and Continue Statements —
return if ($condition);
function divide($dividend, $divisor = null) {
return if ($divisor === null || $divisor === 0);
return 0 if ($divisor === null || $divisor === 0);
return $dividend / $divisor;
}
Ruby, if (condition) return;
? - [RFC] Named Arguments — PHP 8 , , .
htmlspecialchars($string, double_encode: false);
htmlspecialchars($string, ENT_COMPAT | ENT_HTML401 , ini_get("default_charset"), false);
. - [RFC] <<Deprecated>> Attribute — /, , , .
trigger_error()
.
<?php
<<Deprecated("use test2() instead")>>
function test() {}
class Foo {
<<Deprecated>>
public function test() {}
public function test2(<<Deprecated>> $value) {}
<<Deprecated>>
public $value;
<<Deprecated>>
const FOO = 1;
}
- [RFC] Add CMS Support —
WordPress PHP RFC-5652. - [RFC] Make sorting stable — PHP . , ().
sort, rsort, usort, asort, arsort, uasort, ksort, krsort, uksort, array_multisort
. , (). - [RFC] Opcache optimization without any caching — (
opcache.optimization_level=0
) — CLI-, , .
, . , .

Symfony
Laravel
Async PHP

/
Obrigado pela atenção!
Se você perceber um erro ou imprecisão - informe-me no PM .
Perguntas e sugestões escreva para o correio ou twitter .
Mais notícias e comentários no canal PHP Digest Telegram .
Enviar link
Pesquisar links para todos os resumos
← Release anterior: PHP Digest No. 179