PHP Digest # 191 (19 Oktober - 2 November 2020)

Foto: Valery Gorbachev ( PHP Krasnodar )



Pilihan baru dengan tautan ke berita dan materi. Dalam rilisnya: PHP 8.0 RC 3 dan ulasan video tentang fitur baru, Composer 2, penyelesaian pengembangan Faker (sekarang dalam organisasi baru), dua RFC baru untuk PHP 8.1, sebagian dari alat yang berguna, artikel, video dari pertemuan sebelumnya.



Selamat membaca!





Berita dan rilis



  • PHP 8.0 RC 3 β€” - . RC 4 12 26 .



    PHP 8:

  • PhpStorm 2020.3 PHP 8: #[ArrayShape], #[ExpectedValues], #[NoReturn], #[Pure], #[Deprecated], #[Immutable]. #[ArrayShape] #[Immutable] PHP.
  • PHP 7.4.12
  • PHP 7.3.24
  • Composer 2 β€” :

    • ;
    • ;
    • PHP ( "platform-check": false);
    • --dry-run require remove – , , ;
    • --unused remove vendor, composer.json ( purge);
    • .


    php.watch .



    , : composer self-update --2.

  • PHP Faker β€” PR PHP 8 fzaninotto/Faker , . Francois Zaninotto , . , fakerphp/Faker, PHP 8 PHP 5.



    FranΓ§ois Zaninotto , -, 25k+ . -, ORM Propel. , . 7 Propel 2 . -.



    FranΓ§ois 9 Faker.

  • PHP Russia 2020 -> PHP Russia 2021 β€” 1 2021 .
  • phpcommunity.ru β€” PHP- , , .



    : , 4 ; , 7 ; , 14 .



PHP Internals



  • [RFC] Short Functions β€” RFC .

    class Person
    {
        public function __construct(
            private string $firstName,
        ) {}
        public function getFirstName(): string => $this->firstName;
    }"
    
  • [RFC] Explicit octal integer literal notation β€” PHP 0x, 0b. 0. , . , 016 14 "016" == 016; // false.



    0o, .
    0o16 === 14; // true
    016 === 0o16; // true
    "016" == 0o16; // false
    
  • Literal types PoC β€” PHP TypeScript.
    function foo(): "foo"|"bar" {
        return "foo";
    }
    


    PHP, RFC , . . .






Symfony





Laravel





Yii









/








Jika Anda melihat kesalahan atau ketidakakuratan, harap beri tahu kami secara pribadi .

Lebih banyak berita dan komentar di saluran Telegram PHP Digest .



Kirim tautan

Cari tautan di semua intisari

← Edisi sebelumnya: PHP-Digest β„– 190




All Articles