Skip to content

Commit b204915

Browse files
RomainLvrRom1-B
andauthored
Refractor phpstan level 5 (#408)
* 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]>
1 parent d64f92c commit b204915

21 files changed

+287
-266
lines changed

ajax/dropdownReference.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
// Make a select box for references
3939
if (isset($_POST["itemtype"])) {
40-
$entity_restrict = getEntitiesRestrictRequest("AND", 'r', '', $_POST['entities_id'], 1);
40+
$entity_restrict = getEntitiesRestrictRequest("AND", 'r', '', $_POST['entities_id'], true);
4141
$query = "SELECT s.`plugin_order_references_id` as id, s.`price_taxfree`, s.`reference_code`, r.`name`
4242
FROM `glpi_plugin_order_references_suppliers` s
4343
LEFT JOIN `glpi_plugin_order_references` r

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"glpi-project/tools": "^0.7",
88
"php-parallel-lint/php-parallel-lint": "^1.4",
99
"phpstan/extension-installer": "^1.4",
10-
"phpstan/phpstan": "^1.12",
11-
"phpstan/phpstan-deprecation-rules": "^1.2",
10+
"phpstan/phpstan": "^2.1",
11+
"phpstan/phpstan-deprecation-rules": "^2.0",
1212
"squizlabs/php_codesniffer": "^3.11"
1313
},
1414
"config": {

0 commit comments

Comments
 (0)