mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed phpstan bug
This commit is contained in:
parent
0c53f5e186
commit
925f5c0ce0
1 changed files with 3 additions and 1 deletions
|
@ -319,7 +319,9 @@ class MouserProvider implements InfoProviderInterface
|
|||
|
||||
//If the part would be assumed to be announced, check if it is in stock, then it is active
|
||||
if ($tmp === ManufacturingStatus::ANNOUNCED && $availableInStock > 0) {
|
||||
return ManufacturingStatus::ACTIVE;
|
||||
}
|
||||
$tmp = ManufacturingStatus::ACTIVE;
|
||||
}
|
||||
|
||||
return $tmp;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue