-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
clean code and phpdoc #28773
clean code and phpdoc #28773
Conversation
@@ -78,7 +78,7 @@ public function getExample() | |||
* Checks if the numbers already in the database do not | |||
* cause conflicts that would prevent this numbering working. | |||
* | |||
* @param Object $object Object we need next value for | |||
* @param Asset $object Object we need next value for | |||
* @return boolean false if conflict, true if ok | |||
*/ | |||
public function canBeActivated($object) |
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.
@mdeweerd phan warning here
Maybe the use of templates is the way to go. I did not dive deep into it, but I've seen it in phpstan documentation as well so I guess there is a common support for it and it looks like it could help with the changing signatures. https://github.com/phan/phan/wiki/Generic-Types#declare-template-types |
No description provided.