Remove @var for strictly typed class properties

Created on 5 May 2025, 10 days ago

Problem/Motivation

It is now allowed to remove @var from class properties if the variable is typed properly and there is no ambiguity in the type. Let's make sure core adheres to that.

I think this is going to be a big hassle if we try and do this manually, it will need updating a lot before it is merged probably as was the case with earlier issues like adding strict types, renaming arrays etc.

Steps to reproduce

n.a.

Proposed resolution

Remove all @var's from the docblocks for class properties that are types properly.

Remaining tasks

Write a script/rector/phpcs rule to remove the @var properties
Remove the properties.

User interface changes

n.a.

Introduced terminology

n.a.

API changes

n.a.

Data model changes

n.a.

Release notes snippet

n.a.

📌 Task
Status

Active

Version

11.0 🔥

Component

other

Created by

🇳🇱Netherlands bbrala Netherlands

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024