PHP 8.1 RFC: Static variables in inherited methods

Static variables in inherited methods
PHP 8.1
Implemented

RFC Vote: Static variables in inherited methods

Implemented
-
> 50%
Yes: 38No: 0

Static variables in inherited methods

TypeImprovement
Version PHP 8.1

When a method containing static variables is inherited, the inherited method currently uses an independent set of static variables. This RFC proposes to only have one set of static variables per method.

Subscribe to PHP.Watch newsletter for monthly updates

You will receive an email on last Wednesday of every month and on major PHP releases with new articles related to PHP, upcoming changes, new features and what's changing in the language. No marketing emails, no selling of your contacts, no click-tracking, and one-click instant unsubscribe from any email you receive.