-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Add return types on public classes and interfaces #459
Conversation
I'll check why |
Psalm baseline updated. I was confused by the fact that both psalm and phpstan are used. |
Rebase needed. |
16e6238
to
ba3d6ab
Compare
@@ -14,5 +14,5 @@ interface FixtureInterface | |||
/** | |||
* Load data fixtures with the passed EntityManager | |||
*/ | |||
public function load(ObjectManager $manager); | |||
public function load(ObjectManager $manager): void; |
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 change can impact every project using data-fixtures. Adding the @return
type annotation in the previous version will ease migration: #472
Can we enable this rule now? Lines 59 to 62 in 36d2078
|
@@ -56,11 +56,6 @@ | |||
<exclude-pattern>src/*</exclude-pattern> | |||
</rule> | |||
|
|||
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint"> |
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.
Response to #459 (comment): This rule is applied by default. This config was to exclude src
dir.
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.
Right. I missed that you've changed the config already. 🙈
Add return types to methods from the public API.
Follow-up #455 (review)