Skip to content

Commit

Permalink
PHPStan level 1
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher authored Nov 6, 2023
1 parent 8e82861 commit 028dba1
Show file tree
Hide file tree
Showing 17 changed files with 250 additions and 86 deletions.
3 changes: 3 additions & 0 deletions ajax/reorder.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
$old_order = (int)$_POST['old_order'];
$new_order = (int)$_POST['new_order'];

/** @var DBmysql $DB */
global $DB;

// Retrieve id of field to update
$field_iterator = $DB->request(
[
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"symfony/yaml": "^5.4"
},
"require-dev": {
"glpi-project/tools": "^0.6",
"glpi-project/tools": "^0.7.1",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpstan/phpstan": "^1.10",
"squizlabs/php_codesniffer": "^3.6"
},
"config": {
Expand Down
Loading

0 comments on commit 028dba1

Please sign in to comment.