Skip to content

Commit f72fbc5

Browse files
authored
Merge pull request #5910 from rldhont/phpstan-lizmap-class
Lint PHP: Class Lizmap
2 parents f738ccf + b6b5138 commit f72fbc5

File tree

2 files changed

+5
-25
lines changed

2 files changed

+5
-25
lines changed

lizmap/modules/lizmap/classes/lizmap.class.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ class lizmap
4040
protected static $repositoryInstances = array();
4141

4242
/**
43-
* @var lizmapServices The lizmapServices instance for the singleton
43+
* @var null|lizmapServices The lizmapServices instance for the singleton
4444
*/
4545
protected static $lizmapServicesInstance;
4646

4747
/**
48-
* @var LogConfig The Lizmap Logger Config instance for the singleton
48+
* @var null|LogConfig The Lizmap Logger Config instance for the singleton
4949
*/
5050
protected static $lizmapLogConfigInstance;
5151

5252
/**
53-
* @var JelixContext The jelixContext instance for the singleton
53+
* @var null|JelixContext The jelixContext instance for the singleton
5454
*/
5555
protected static $appContext;
5656

@@ -161,8 +161,8 @@ public static function getRepositoryPropertiesOptions()
161161
/**
162162
* Get the jForm for a repository.
163163
*
164-
* @param lizmapRepository $rep
165-
* @param jFormsBase $form
164+
* @param null|lizmapRepository $rep
165+
* @param jFormsBase $form
166166
*
167167
* @return jFormsBase
168168
*/

phpstan-baseline.neon

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -95,26 +95,6 @@ parameters:
9595
count: 4
9696
path: lizmap/modules/filter/controllers/service.classic.php
9797

98-
-
99-
message: "#^If condition is always true\\.$#"
100-
count: 1
101-
path: lizmap/modules/lizmap/classes/lizmap.class.php
102-
103-
-
104-
message: "#^Left side of && is always true\\.$#"
105-
count: 1
106-
path: lizmap/modules/lizmap/classes/lizmap.class.php
107-
108-
-
109-
message: "#^Negated boolean expression is always false\\.$#"
110-
count: 2
111-
path: lizmap/modules/lizmap/classes/lizmap.class.php
112-
113-
-
114-
message: "#^Static property lizmap\\:\\:\\$lizmapServicesInstance \\(lizmapServices\\) in isset\\(\\) is not nullable\\.$#"
115-
count: 1
116-
path: lizmap/modules/lizmap/classes/lizmap.class.php
117-
11898
-
11999
message: "#^If condition is always true\\.$#"
120100
count: 1

0 commit comments

Comments
 (0)