Skip to content

Commit 9dbf38d

Browse files
LainowstonebuzzRom1-B
authored
Implement phpstan 5 (#399)
* Implement phpstan 5 * Update hook.php Co-authored-by: Stanislas <skita@teclib.com> * Implement suggestion * Set params types and remove useless phpstan ignore * Add review suggestions * Fix discovery fail * Fix phstan5 fail * Update inc/model.class.php Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com> * Fix lint * Fix phpstan level 5 error * Update composer * check remove a lot of phpstan ignore * Update inc/model.class.php Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com> * Update inc/model.class.php Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com> * Remove a lot of mixed type * Update inc/profile.class.php Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com> * Comment useless code * Update inc/profile.class.php Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com> --------- Co-authored-by: Stanislas <skita@teclib.com> Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com>
1 parent 7f1e71e commit 9dbf38d

File tree

60 files changed

+523
-561
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+523
-561
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"php": ">=7.4"
44
},
55
"require-dev": {
6-
"glpi-project/tools": "^0.7",
6+
"glpi-project/tools": "^0.7.4",
77
"php-parallel-lint/php-parallel-lint": "^1.4",
88
"phpstan/extension-installer": "^1.4",
9-
"phpstan/phpstan": "^1.12",
10-
"phpstan/phpstan-deprecation-rules": "^1.2",
11-
"squizlabs/php_codesniffer": "^3.11"
9+
"phpstan/phpstan": "^2.1",
10+
"phpstan/phpstan-deprecation-rules": "^2.0",
11+
"squizlabs/php_codesniffer": "^3.10"
1212
},
1313
"config": {
1414
"optimize-autoloader": true,

composer.lock

Lines changed: 69 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)