Skip to content
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

Merged
merged 27 commits into from
Mar 12, 2024
Merged

clean code and phpdoc #28773

merged 27 commits into from
Mar 12, 2024

Conversation

frederic34
Copy link
Member

No description provided.

@@ -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)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mdeweerd phan warning here

dev/tools/phan/config.php Outdated Show resolved Hide resolved
@mdeweerd
Copy link
Contributor

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

@eldy eldy merged commit 0b936be into Dolibarr:develop Mar 12, 2024
6 checks passed
@frederic34 frederic34 deleted the clean_mod_code branch March 12, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants