Use before script to remove attributes in phpstan (previous major)

Created on 7 September 2025, 15 days ago

Problem/Motivation

Currently @phpstan-ignore-next-line statements are used to prevent Hook attributes from causing errors for phpstan (previous minor).

However, this seems suboptimal. It requires "ignore" statements, which are only needed for the previous version checks, and these could be causing actual problems to be overlooked for current versions.

Steps to reproduce

N/A

Proposed resolution

Add a before script to .gitlab-ci.yml to use sed to delete the attribute lines, only for phpstan (previous major).

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.4

Component

Code

Created by

🇮🇪Ireland lostcarpark

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024