Replace @dataProvider annotations with #[DataProvider()] attributes

Created on 3 May 2024, about 2 months ago
Updated 9 May 2024, about 2 months ago

Problem/Motivation

Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12.

Proposed resolution

In this issue, replace @dataProvider annotations with #[DataProvider()] attributes.

Use the Rector\PHPUnit\AnnotationsToAttributes\Rector\ClassMethod\DataProviderAnnotationToAttributeRector Rector Rule as a starting point.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Closed: won't fix

Version

11.0 🔥

Component
PHPUnit  →

Last updated about 1 hour ago

Created by

🇮🇹Italy mondrake 🇮🇹

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

Comments & Activities

Production build 0.69.0 2024