Skip to content

Commit

Permalink
Refractor phpstan level 5 (#408)
Browse files Browse the repository at this point in the history
* Refractor phpstan level 5

* Update inc/profile.class.php

Co-authored-by: Romain B. <[email protected]>

* Update composer & apply suggestions

* Fix code

* Fix phpstan

---------

Co-authored-by: Romain B. <[email protected]>
  • Loading branch information
RomainLvr and Rom1-B authored Jan 20, 2025
1 parent d64f92c commit b204915
Show file tree
Hide file tree
Showing 21 changed files with 287 additions and 266 deletions.
2 changes: 1 addition & 1 deletion ajax/dropdownReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

// Make a select box for references
if (isset($_POST["itemtype"])) {
$entity_restrict = getEntitiesRestrictRequest("AND", 'r', '', $_POST['entities_id'], 1);
$entity_restrict = getEntitiesRestrictRequest("AND", 'r', '', $_POST['entities_id'], true);
$query = "SELECT s.`plugin_order_references_id` as id, s.`price_taxfree`, s.`reference_code`, r.`name`
FROM `glpi_plugin_order_references_suppliers` s
LEFT JOIN `glpi_plugin_order_references` r
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"glpi-project/tools": "^0.7",
"php-parallel-lint/php-parallel-lint": "^1.4",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-deprecation-rules": "^1.2",
"phpstan/phpstan": "^2.1",
"phpstan/phpstan-deprecation-rules": "^2.0",
"squizlabs/php_codesniffer": "^3.11"
},
"config": {
Expand Down
Loading

0 comments on commit b204915

Please sign in to comment.