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

Regression in psalm 5.10.0 on enum types #9824

Closed
lstrojny opened this issue May 26, 2023 · 3 comments
Closed

Regression in psalm 5.10.0 on enum types #9824

lstrojny opened this issue May 26, 2023 · 3 comments

Comments

@lstrojny
Copy link
Contributor

This example worked with 5.9.0 but does not starting with 5.10.0: https://psalm.dev/r/5fe87722dd

@psalm-github-bot
Copy link

I found these snippets:

https://psalm.dev/r/5fe87722dd
<?php

enum Bar: string {
    case A = "a";
    case B = "b";
   	public const STR = self::A->value . self::B->value;
}

class Foo {
	public const CONCAT_STR = "a" . Bar::STR . "e";   
}
Psalm output (using commit b99857c):

INFO: MixedOperand - 10:34 - Right operand cannot be mixed

@lstrojny
Copy link
Contributor Author

lstrojny commented May 26, 2023

Bisected the issue, ad5bf62 (#9373) introduced the regression

lstrojny added a commit to lstrojny/uffff that referenced this issue May 26, 2023
@ygottschalk
Copy link
Contributor

Will check on that sunday / monday

ygottschalk added a commit to ygottschalk/psalm that referenced this issue May 28, 2023

Verified

This commit was signed with the committer’s verified signature.
haoqunjiang Haoqun Jiang
@orklah orklah closed this as completed in a41eb35 May 28, 2023
orklah added a commit that referenced this issue May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants