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
Draft:Add interface and add typehinting #4130
Draft:Add interface and add typehinting #4130
Conversation
app/Models/DatabaseDAO.php
Outdated
@@ -3,7 +3,7 @@ | |||
/** | |||
* This class is used to test database is well-constructed. | |||
*/ | |||
class FreshRSS_DatabaseDAO extends Minz_ModelPdo { | |||
class FreshRSS_DatabaseDAO extends Minz_ModelPdo implements DatabaseDAOInterface { |
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.
Why an interface when there is already a base class FreshRSS_DatabaseDAO
?
app/Models/DatabaseDAOInterface.php
Outdated
/** | ||
* @param array $dao | ||
* @return array | ||
*/ |
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.
Comments can be removed when there is no additional information than the native type hints
Is it a draft or an open PR? |
A draft |
I have simplified and finalised this PR. |
Add the DatabaseDAOInterface