Skip to content

Commit

Permalink
phpstan lvl 5
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Nov 13, 2023
1 parent 38bd81f commit e1b32a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inc/config.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class PluginTreeviewConfig extends CommonDBTM
/**
* Display name of itemtype
*
* @return value name of this itemtype
* @return string
**/
public static function getTypeName($nb = 0)
{
Expand Down
2 changes: 1 addition & 1 deletion inc/profile.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{

if ($item->getType() == 'Profile') {
if ($item instanceof Profile) {
$prof = new self();
$ID = $item->getField('id');
if (!$prof->GetfromDB($ID)) {
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parameters:
parallel:
maximumNumberOfProcesses: 2
level: 1
level: 5
bootstrapFiles:
- ../../inc/based_config.php
paths:
Expand Down

0 comments on commit e1b32a7

Please sign in to comment.