Nouvelle sélection avec des liens vers des nouvelles et des documents. Dans le numéro: 4 propositions RFC acceptées pour PHP 8, y compris des attributs (annotations / décorateurs), une partie d'outils utiles, des conférences et réunions en ligne, des vidéos, des podcasts et bien plus encore.
Bonne lecture!
 Nouvelles et communiqués
 Nouvelles et communiqués
 PHP Internals
 PHP Internals
 [RFC] Attributes v2 â PHP 8 ( / ) [RFC] Attributes v2 â PHP 8 ( / )- << >>.
 
 - <<ExampleAttribute>>
class Foo
{
    <<ExampleAttribute>>
    public const FOO = 'foo';
    <<ExampleAttribute>>
    public $x;
    <<ExampleAttribute>>
    public function foo(<<ExampleAttribute>> $bar) { }
}
$object = new <<ExampleAttribute>> class () { };
<<ExampleAttribute>>
function f1() { }
$f2 = <<ExampleAttribute>> function () { };
$f3 = <<ExampleAttribute>> fn () => 1;
 
 . Benjamin Eberlei- <<Deprecated>>,- trigger_error:
 
 - <<Deprecated>>
function test() {}
<<Deprecated("use test3() instead")>>
function test2() {}
 
 [RFC] Allow trailing comma in parameter list â PHP 8 . [RFC] Allow trailing comma in parameter list â PHP 8 .
 
 - class Uri {
    private function __construct(
        ?string $scheme,
        ?string $user,
        ?string $pass,
        ?string $host,
        ?int $port,
        string $path,
        ?string $query,
        ?string $fragment, // <-- !
    ) {
        ...
    }
}
 
 [RFC] Change Default PDO Error Mode â PDO [RFC] Change Default PDO Error Mode â PDO- PDO::ERRMODE_EXCEPTIONSQL .
 [RFC] Stricter type checks for arithmetic/bitwise operators â , PHP 8 [RFC] Stricter type checks for arithmetic/bitwise operators â , PHP 8- TypeError, , .
 [RFC] Type casting in array destructuring expressions â . [RFC] Type casting in array destructuring expressions â .
- [RFC] Always available JSON extension â JSON .
- [RFC] Match expression â match, :
 
 match ($x) {
    0 => {
        foo();
        bar();
        baz();
    },
}
 
 , feature-freeze PHP 8 , RFC .

 Symfony
 Symfony
 Laravel
 Laravel
 Yii
 Yii
Async PHP

 /
 /
!
â , , .
.
Telegram- PHP Digest.
â : PHP- â 178