Skip to content

Commit afb606f

Browse files
committed
Apply static analysis
1 parent 5d5627e commit afb606f

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

phpstan.neon.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ parameters:
1010
- src/Config/Routes.php
1111
- src/Views/*
1212
ignoreErrors:
13-
- '#Unsafe usage of new static\(\)#'
1413
universalObjectCratesClasses:
1514
- CodeIgniter\Entity
1615
- CodeIgniter\Entity\Entity

src/Handlers/BaseHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ abstract public function get(string $class, string $key);
2020
* Not all Handlers will support writing values.
2121
*
2222
* @param string $key
23-
* @param null $value
23+
* @param mixed $value
2424
*
2525
* @return mixed
2626
*/
@@ -33,7 +33,7 @@ public function set(string $class, string $key, $value = null)
3333
* Takes care of converting some item types so they can be safely
3434
* stored and re-hydrated into the config files.
3535
*
36-
* @param $value
36+
* @param mixed $value
3737
*
3838
* @return string|mixed
3939
*/
@@ -57,7 +57,7 @@ protected function prepareValue($value)
5757
* data might have been saved as, such as booleans
5858
* and serialized data.
5959
*
60-
* @param $value
60+
* @param mixed $value
6161
*
6262
* @return boolean|mixed
6363
*/
@@ -79,7 +79,7 @@ protected function parseValue($value, string $type)
7979
*
8080
* Taken from Wordpress core functions.
8181
*
82-
* @param $data
82+
* @param mixed $data
8383
* @param boolean $strict Whether to be strict about the end of the string.
8484
*
8585
* @return boolean

src/Handlers/DatabaseHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function get(string $class, string $key)
6262
*
6363
* @param string $class
6464
* @param string $key
65-
* @param null $value
65+
* @param mixed $value
6666
*
6767
* @return mixed|void
6868
*/

src/Helpers/setting_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Provides a convenience interface to the Settings service.
77
*
88
* @param string|null $field
9-
* @param null $value
9+
* @param mixed|null $value
1010
*
1111
* @return mixed
1212
*/

src/Settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function get(string $class, string $key)
7878
*
7979
* @param string $class
8080
* @param string $key
81-
* @param null $value
81+
* @param mixed $value
8282
*
8383
* @return void|null
8484
*/

0 commit comments

Comments
 (0)