Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Silence Psalm errors about Enum classes #43050

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

Merged
merged 1 commit into from
Sep 16, 2021

Conversation

derrabus
Copy link
Member

Q A
Branch? 4.4
Bug fix? no
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

Psalm does not know about BackedEnum and UnitEnum yet. This PR should remove some distracting noise from PRs that work with PHP's native enum classes.

Signed-off-by: Alexander M. Turek <me@derrabus.de>
@derrabus derrabus merged commit bdb0df9 into symfony:4.4 Sep 16, 2021
@derrabus derrabus deleted the psalm/backed-enum branch September 16, 2021 10:47
nicolas-grekas added a commit that referenced this pull request Dec 29, 2021
…8.1 classes (ogizanagi)

This PR was merged into the 4.4 branch.

Discussion
----------

Suppress psalm error for UndefinedDocblockClass for PHP 8.1 classes

| Q             | A
| ------------- | ---
| Branch?       | 4.4 <!-- see below -->
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | #44831 (comment) <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | N/A

Same as #43050 for inlined docblock comments (mainly `class-string<FQCN>`)

Commits
-------

dbc3eea Suppress psalm error for UndefinedDocblockClass for PHP 8.1 classes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.