Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forbid declaring enums as attributes #6843

Merged
merged 1 commit into from
Nov 7, 2021

Conversation

weirdan
Copy link
Collaborator

@weirdan weirdan commented Nov 6, 2021

This is in line with current Psalm behavior. We forbid non-instantiable classlikes as attributes, including abstract classes and classes with non-public constructors.

Refs #6841

This is in line with current Psalm behavior. We forbid non-instantiable
classlikes as attributes, including abstract classes and classes with
non-public constructors.

Refs vimeo#6841
@weirdan weirdan added the release:fix The PR will be included in 'Fixes' section of the release notes label Nov 6, 2021
@weirdan weirdan added this to the PHP 8.1 milestone Nov 6, 2021
@weirdan weirdan requested a review from orklah November 6, 2021 23:54
@weirdan weirdan self-assigned this Nov 6, 2021
@weirdan weirdan merged commit 756be3b into vimeo:master Nov 7, 2021
@weirdan weirdan deleted the enums-as-attributes branch November 7, 2021 15:53
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.

None yet

2 participants