Make StageEvent::$stage a public readonly property, and remove getStage()

Created on 16 February 2023, almost 2 years ago
Updated 17 February 2023, almost 2 years ago

Problem/Motivation

We can remove the getStage() method of StageEvent by making the $stage property public readonly. PHP 8.1, how I adore thee.

Proposed resolution

Make that change, then convert every call to getStage() into ->stage.

Feature request
Status

Fixed

Version

3.0

Component

Package Manager

Created by

🇺🇸United States phenaproxima Massachusetts

Live updates comments and jobs are added and updated live.
  • API change

    Changes an existing API or subsystem. Not backportable to earlier major versions, unless absolutely required to fix a critical bug.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024