Skip to content

Remove redefinition of Attribute constants.#11625

Merged
danog merged 1 commit intovimeo:6.xfrom
hschletz:6.x
Dec 23, 2025
Merged

Remove redefinition of Attribute constants.#11625
danog merged 1 commit intovimeo:6.xfrom
hschletz:6.x

Conversation

@hschletz
Copy link
Contributor

The Attribute::* class constants were redefined "since that class might not exist at runtime". That applies only to PHP < 8.0. Now that Psalm requires PHP 8.1 or later, the redefinition is no longer necessary. Remove the redefinition and use Attribute::* instead.

This fixes #11610, caused by PHP 8.5 having changed the internal value for Attribute::IS_REPEATABLE from 64 to 128.

The Attribute::* class constants were redefined "since that class might not exist at runtime". That applies only to PHP < 8.0. Now that Psalm requires PHP 8.1 or later, the redefinition is no longer necessary. Remove the redefinition and use Attribute::* instead.

This fixes vimeo#11610, caused by PHP 8.5 having changed the internal value for Attribute::IS_REPEATABLE from 64 to 128.
@danog danog added the release:fix The PR will be included in 'Fixes' section of the release notes label Dec 23, 2025
@danog
Copy link
Collaborator

danog commented Dec 23, 2025

Thank you!

@danog danog merged commit aa83cc0 into vimeo:6.x Dec 23, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:fix The PR will be included in 'Fixes' section of the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attribute is not repeatable error in PHP 8.5

2 participants