-
Notifications
You must be signed in to change notification settings - Fork 131
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
Improve getNamespacedName()
return type
#1428
Conversation
ReflectionConstant->getNamespacedName()
return typegetNamespacedName()
return type
@@ -49,6 +49,10 @@ | |||
"conflict": { | |||
"thecodingmachine/safe": "<1.1.3" | |||
}, | |||
"scripts": { |
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 am not used to the psalm commands.. have to google them all the time.. added them here to ease contributing for non-psalm experienced people like me
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.
Not very happy to have composer
as a wrapper to run scripts, but it's a non-blocker for this patch
@@ -49,6 +49,10 @@ | |||
"conflict": { | |||
"thecodingmachine/safe": "<1.1.3" | |||
}, | |||
"scripts": { |
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.
Not very happy to have composer
as a wrapper to run scripts, but it's a non-blocker for this patch
if ($namespaceName === '') { | ||
throw new LogicException('Namespace name should never be empty'); | ||
} |
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.
Is this something we can test at all? Or is it an upstream type refinement required?
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.
the upstream type is already refined, but the change itself is not yet released
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's then roll with this as-is: a lock file update will expose the type contradiction later on 👍
Thanks @staabm! |
triggered by https://github.com/phpstan/phpstan-src/pull/3013/files#r1564724535
refs phpstan/phpstan-src#3013