Skip to content

Drop PHP 7 support #343

@thekid

Description

@thekid

Scope of Change

This RFC suggests dropping PHP 7 support

Rationale

PHP 7.4 is EOL since November 28, 2022: https://twitter.com/official_php/status/1597203297537957888

Functionality

  • Need to simulate PHP 8 Annotations goes away
  • We can use named arguments where it makes code more readable
  • We can use constructor property promotion to simplify code
  • Union types can now be expressed in syntax
  • We can refactor several switch statements to match
  • We can use the ?-> nullsafe operator

Security considerations

n/a

Speed impact

Better

Dependencies

Major version

Related documents

https://www.php.net/releases/8.0/en.php

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions