-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Container::getByType fixed phpdoc return typehint #167
Conversation
9b06abe
to
8ff952d
Compare
src/DI/Container.php
Outdated
@@ -251,7 +253,7 @@ public function createInstance(string $class, array $args = []) | |||
|
|||
/** | |||
* Calls all methods starting with with "inject" using autowiring. | |||
* @param object $service | |||
* @param object $service |
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 was ok, or not?
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.
yes, I can revert it if you want... or split to 2nd 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.
Ok
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.
splitted to 2nd commit and removed some other unnecessary spaces in phpdocs
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.
These spaces are used intentionally and across all libraries.
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.
Ok, I don't know why to add unnecessary spaces, but it is your opinion. Commit reverted.
8224b32
to
d51ca9e
Compare
3779d89
to
9b5c815
Compare
Oh great, now PHPStan will fail on every single usage of |
@enumag I think there is return type extension already... Do you have phpstan/phpstan-nette included? If it is not there already I can create it, pls create issue. |
Container::getByType really returns null (previously "returned" void).