mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-18 16:19:34 +00:00
Adapted PartNormalizer to PHP 8.4.
Was missing ? to allow null value. PHP 8.4: Implicitly nullable parameter declarations deprecated
This commit is contained in:
parent
8b417d6441
commit
ddbe32ff16
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ class PartNormalizer implements NormalizerInterface, DenormalizerInterface, Norm
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function supportsDenormalization($data, string $type, string $format = null, array $context = []): bool
|
public function supportsDenormalization($data, string $type, ?string $format = null, array $context = []): bool
|
||||||
{
|
{
|
||||||
//Only denormalize if we are doing a file import operation
|
//Only denormalize if we are doing a file import operation
|
||||||
if (!($context['partdb_import'] ?? false)) {
|
if (!($context['partdb_import'] ?? false)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue