Skip to content

Replace missing COVARIANT_RETURN constant with PhpVersion::PHP_74 - #419

Merged
TomasVotruba merged 1 commit into
mainfrom
fix-covariant-return-php-version
Oct 24, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
fix-covariant-return-php-version

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

The PhpVersionFeature::COVARIANT_RETURN constant no longer exists in rector-src, causing a PHPStan classConstant.notFound error in the test config.

Replace it with PhpVersion::PHP_74 (same 70400 value), which is the exact PHP version the covariant return type downgrade targets.

@TomasVotruba
TomasVotruba merged commit 6c26043 into main Oct 24, 2026
9 checks passed
@TomasVotruba
TomasVotruba deleted the fix-covariant-return-php-version branch October 24, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant