mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-05 18:55:26 +02:00
Fixed phpstan issues
This commit is contained in:
parent
afcbbe0f43
commit
3a8c5a788f
11 changed files with 25 additions and 124 deletions
|
@ -243,9 +243,9 @@ class Element14Provider implements InfoProviderInterface
|
|||
|
||||
/**
|
||||
* @param array|null $attributes
|
||||
* @return ParameterDTO[]|null
|
||||
* @return ParameterDTO[]
|
||||
*/
|
||||
private function attributesToParameters(?array $attributes): ?array
|
||||
private function attributesToParameters(?array $attributes): array
|
||||
{
|
||||
$result = [];
|
||||
|
||||
|
@ -258,7 +258,7 @@ class Element14Provider implements InfoProviderInterface
|
|||
}
|
||||
|
||||
//tariffCode is a special case, we prepend a # to prevent conversion to float
|
||||
if (in_array($attribute['attributeLabel'], ['tariffCode', 'hazardCode'])) {
|
||||
if (in_array($attribute['attributeLabel'], ['tariffCode', 'hazardCode'], true)) {
|
||||
$attribute['attributeValue'] = '#' . $attribute['attributeValue'];
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ class TMEProvider implements InfoProviderInterface
|
|||
public function __construct(private readonly TMEClient $tmeClient, private readonly string $country,
|
||||
private readonly string $language, private readonly string $currency,
|
||||
/** @var bool If true, the prices are gross prices. If false, the prices are net prices. */
|
||||
private readonly string $get_gross_prices)
|
||||
private readonly bool $get_gross_prices)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue