Skip to content

Commit c158811

Browse files
committed
chore(deprecation): php8 updates and various fixes
1 parent cd46a9c commit c158811

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+166
-337
lines changed

src/Api/FilterLocatorTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
namespace ApiPlatform\Api;
1515

16+
use ApiPlatform\Exception\InvalidArgumentException;
1617
use Psr\Container\ContainerInterface;
1718

1819
/**

src/Doctrine/Common/Filter/BooleanFilterTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ abstract protected function getProperties(): ?array;
6565

6666
abstract protected function getLogger(): LoggerInterface;
6767

68-
abstract protected function normalizePropertyName($property): string;
68+
abstract protected function normalizePropertyName($property);
6969

7070
/**
7171
* Determines whether the given property refers to a boolean field.

src/Doctrine/Common/Filter/DateFilterTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function getDescription(string $resourceClass): array
5555

5656
abstract protected function getProperties(): ?array;
5757

58-
abstract protected function normalizePropertyName($property): string;
58+
abstract protected function normalizePropertyName($property);
5959

6060
/**
6161
* Determines whether the given property refers to a date field.

src/Doctrine/Common/Filter/ExistsFilterTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ abstract protected function getProperties(): ?array;
6868

6969
abstract protected function getLogger(): LoggerInterface;
7070

71-
abstract protected function normalizePropertyName($property): string;
71+
abstract protected function normalizePropertyName($property);
7272

7373
private function normalizeValue($value, string $property): ?bool
7474
{

src/Doctrine/Common/Filter/NumericFilterTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ abstract protected function getProperties(): ?array;
6969

7070
abstract protected function getLogger(): LoggerInterface;
7171

72-
abstract protected function normalizePropertyName($property): string;
72+
abstract protected function normalizePropertyName($property);
7373

7474
/**
7575
* Determines whether the given property refers to a numeric field.

src/Doctrine/Common/Filter/OrderFilterTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function getDescription(string $resourceClass): array
6767

6868
abstract protected function getProperties(): ?array;
6969

70-
abstract protected function normalizePropertyName($property): string;
70+
abstract protected function normalizePropertyName($property);
7171

7272
private function normalizeValue($value, string $property): ?string
7373
{

src/Doctrine/Common/Filter/RangeFilterTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ abstract protected function getProperties(): ?array;
5858

5959
abstract protected function getLogger(): LoggerInterface;
6060

61-
abstract protected function normalizePropertyName($property): string;
61+
abstract protected function normalizePropertyName($property);
6262

6363
/**
6464
* Gets filter description.

src/Doctrine/Common/Filter/SearchFilterTrait.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ trait SearchFilterTrait
3030
{
3131
use PropertyHelperTrait;
3232

33-
protected $iriConverter;
34-
protected $propertyAccessor;
33+
protected IriConverterInterface $iriConverter;
34+
protected PropertyAccessorInterface $propertyAccessor;
35+
protected ?IdentifiersExtractorInterface $identifiersExtractor;
3536

3637
/**
3738
* {@inheritdoc}
@@ -112,7 +113,7 @@ abstract protected function getIriConverter(): IriConverterInterface;
112113

113114
abstract protected function getPropertyAccessor(): PropertyAccessorInterface;
114115

115-
abstract protected function normalizePropertyName($property): string;
116+
abstract protected function normalizePropertyName($property);
116117

117118
/**
118119
* Gets the ID from an IRI or a raw ID.

src/Doctrine/Common/State/PersistProcessor.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ final class PersistProcessor implements ProcessorInterface
2525
{
2626
use ClassInfoTrait;
2727

28-
/** @var ManagerRegistry */
29-
private $managerRegistry;
28+
private ManagerRegistry $managerRegistry;
3029

3130
public function __construct(ManagerRegistry $managerRegistry)
3231
{

src/Doctrine/Common/State/RemoveProcessor.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ final class RemoveProcessor implements ProcessorInterface
2323
{
2424
use ClassInfoTrait;
2525

26-
/** @var ManagerRegistry */
27-
private $managerRegistry;
26+
private ManagerRegistry $managerRegistry;
2827

2928
public function __construct(ManagerRegistry $managerRegistry)
3029
{

0 commit comments

Comments
 (0)