Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentj committed Apr 8, 2024
1 parent c42f7a6 commit d374f6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
12 changes: 6 additions & 6 deletions lizmap/modules/lizmap/lib/Form/QgisFormControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ class QgisFormControl
* Create an jForms control object based on a qgis edit widget.
* And add it to the passed form.
*
* @param string $ref name of the control
* @param QgisFormControlProperties $properties
* @param \jDbFieldProperties $prop Jelix object with field properties (datatype, required, etc.)
* @param array|object|string $aliasXml simplexml object corresponding to the QGIS alias for this field
* @param null|string $defaultValue the QGIS expression of the default value
* @param null|array $constraints the QGIS constraints
* @param string $ref name of the control
* @param null|QgisFormControlProperties $properties
* @param \jDbFieldProperties $prop Jelix object with field properties (datatype, required, etc.)
* @param array|object|string $aliasXml simplexml object corresponding to the QGIS alias for this field
* @param null|string $defaultValue the QGIS expression of the default value
* @param null|array $constraints the QGIS constraints
*/
public function __construct($ref, $properties, $prop, $defaultValue, $constraints, App\AppContextInterface $appContext)
{
Expand Down
7 changes: 1 addition & 6 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -467,14 +467,9 @@ parameters:
count: 1
path: lizmap/modules/lizmap/lib/Form/QgisFormControl.php

-
message: "#^Elseif condition is always true\\.$#"
count: 1
path: lizmap/modules/lizmap/lib/Form/QgisFormControl.php

-
message: "#^If condition is always true\\.$#"
count: 4
count: 3
path: lizmap/modules/lizmap/lib/Form/QgisFormControl.php

-
Expand Down

0 comments on commit d374f6d

Please sign in to comment.