-
Notifications
You must be signed in to change notification settings - Fork 50
Support string arguments #16
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
Conversation
cfcd5c9 to
938e4ea
Compare
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 need to compare against === true, it's boolean itself.
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.
Please update this with the latest advancements in PHPStan's typesystem. See phpstan/phpstan@a46cbc0 for an example.
Please also move the fixes of changes in PHPStan's dev-master to a separate commit.
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.
done
6186e99 to
039c23e
Compare
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.
More changes :)
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.
You didn't add any tests for this.
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.
There were no tests for this before, that's why. I'll write some asap.
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.
This doesn't look right to me - Foo::class does not result in TypeWithClassName but in ConstantStringType. Also, this does not break on dev-master so I don't see a reason to change it.
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.
And you are right of course. Will fix that.
e2fd5c4 to
5bc9a47
Compare
5bc9a47 to
5c52578
Compare
Ok, how about now?
Can you please open a PR with ExtensionTestCase in phpstan/phpstan first? Thank you.
Sure, no problem. Should NodeScopeResolverTest extend it? And if yes, maybe it shouldn't be named ExtensionTestCase.. Can you suggest a better name?
I believe this is already irrelevant? Feel free to close this.
Yep, right, thanks :)
Uh oh!
There was an error while loading. Please reload this page.
No description provided.