-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Psalm integration #36
Conversation
Signed-off-by: Sebastian Hopfe <[email protected]>
Signed-off-by: Sebastian Hopfe <[email protected]>
@Ocramius - Should travis run here? i implemented a .travis file |
Unfortunately, no travis is currently active in the repo, so I cannot test the pipeline. Especially since you may want to switch to the GitHub Actions. So I leave the .travis file in the merge as a template for a possible use of Travis or as a template for the GitHub actions. |
We have to switch. See: https://github.com/laminas/technical-steering-committee/blob/eabf308b50272785d5d04c72fc3c64e0a7d7a2c9/meetings/minutes/2020-11-02-TSC-Minutes.md#github-actions
Can be removed. |
Signed-off-by: Sebastian Hopfe <[email protected]>
on the one hand the skeleton is delivered without qa tooling, on the other hand these should be supported. if psalm is used as a tooling and should be preinstalled (as required in the issue) laminas-test is also required. or should all dependencies be removed (including laminas test) and then these errors ignored based on the baseline? |
Signed-off-by: Sebastian Hopfe <[email protected]>
documentation adjusted and require dev's removed |
@@ -14,6 +14,6 @@ class Module | |||
{ | |||
public function getConfig() : array | |||
{ | |||
return include __DIR__ . '/../config/module.config.php'; | |||
return (array) include __DIR__ . '/../config/module.config.php'; |
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.
I think we can do with :
/** @var array $config */
$config = include __DIR__ . '/../config/module.config.php';
return $config;
instead of (array)
cast as the config/module.config.php
is an array already.
@nusphere Thank you, I've handled infer return type at |
Summary
As decided during the Technical-Steering-Committee Meeting on August 3rd, 2020, Laminas wants to implement vimeo/psalm in all packages.
Required
Affected Issue: