-
-
Notifications
You must be signed in to change notification settings - Fork 8
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 PHP Stan #61
Add PHP Stan #61
Conversation
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.
Minor comments
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.
Is-it sill a draft or or there something you need to fix/improve ?
I'm not sure why this PR has been closed by "me", while I was merging #60... |
c6982b8
to
bf49d31
Compare
@@ -29,8 +28,8 @@ public function onmainviewGetMaps($event) | |||
// Reproject extent in ini file from EPSG:4326 to EPSG:3857. | |||
if (class_exists('Proj4php')) { // lizmap 3.6 | |||
$proj4 = new Proj4php(); | |||
$sourceProj = new Proj4phpProj('EPSG:4326', $proj4); | |||
$destProj = new Proj4phpProj('EPSG:3857', $proj4); | |||
$sourceProj = new Proj4phpProj('EPSG:4326', $proj4); /* @phpstan-ignore class.notFound */ // Used for older version of lizmap |
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.
According to https://github.com/3liz/lizmap-mapbuilder-module/blob/master/mapBuilder/module.xml#L13
and as this PR is targeting only the master
branch, so minimum LWC 3.8, this code can be removed now.
We can do it after.
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 can do a little new PR ?
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.
Yes, it's welcome ;-)
Adding PHP Stan to the project
PHP Stan is using a configuration file called
phpstan.neon
.A command is added through composer :
phpstan
: Check the PHP code quality.This PR will be rebased on #60. I created it in order to see the addition of PHPStan above changes from PHP CS Fixer