Skip to content

New PHP syntax worth considering #3

Closed
@KorvinSzanto

Description

@KorvinSzanto

I've gone through the PHP versions since 7.3 which was the most recently released when PSR-12 was accepted and gathered a list of syntax that we may want to cover in this PER. This list is likely incomplete so please add a comment if there's more I should add.

PHP 7.3: https://www.php.net/manual/en/migration73.php

PHP 7.4: https://www.php.net/manual/en/migration74.php

PHP 8.0: https://www.php.net/manual/en/migration80.php

PHP 8.1: https://www.php.net/manual/en/migration81.php

PHP 8.2: https://github.com/php/php-src/milestone/4

Extra potential things to cover:

  • Visibility keyword is not required when specifying readonly: public function __construct(readonly $foo)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions