-
Notifications
You must be signed in to change notification settings - Fork 117
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
change somes things for SA #212
Conversation
https://github.com/phpDocumentor/ReflectionDocBlock/pull/212/checks?check_run_id=461109833#step:5:30 Should I revert this? |
Stricly the change from php 7.4 would even allow this native, so I think it is ok to leave it. But I'm wondering if we can make the build green again after we are merging this :-) |
I'm narrowing the declared type, but it will return the same content. Anyway, as for last time, the class is final and can't be inherited so the declared type doesn't even matter :) I'm afraid you won't be able to have green build after this too. The obvious solution would be a new major but it's kinda overkill just for a return type. Very big projects would maintain more than one version and work on next major while still maintaining the current versions but this is not really feasible here. I guess we're left with a "TODO list" issue with every breaking change that could be made on next major? |
Except that this is not a bc break. So it might end up in a todo list and a bug report on the tool that does the checks. Again 😊 |
|
Thanks :) This Psalm version is kinda old, I'll change the ignore rule, this one doesn't recognize ignored classes |
psalm.xml
Outdated
@@ -30,7 +30,7 @@ | |||
<DeprecatedInterface> | |||
<errorLevel type="info"> | |||
<!-- Will be removed in 6.0.0 issues/211 --> | |||
<referencedClass name="phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod"/> | |||
<referencedClass name="phpDocumentor/Reflection/DocBlock/Tags/Factory/StaticMethod"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think you need \\
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I think this was a wrong fix. I make the "windows directory separator" a lot in psalm, but this is a class name, not a path. I believe Psalm was screaming because referencedClass was introduced in a newer version. (IIRC, the version used in CI is 3.0.X)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me check, I found a way to install a newer psalm version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me check, I found a way to install a newer psalm version
Nice!
please rebase against master, this will update psalm, the build is currently failing but I think that's ok for now since you are working on this :-) |
This should be good to merge. I reverted the detected BC break for now |
Change some things:
and some other little fixes