Skip to content

Commit

Permalink
- corrected composer.json
Browse files Browse the repository at this point in the history
- adapted to PHP 7.2
  • Loading branch information
metaclass-nl committed Oct 12, 2022
1 parent 2cd5524 commit 4c0fbd0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"require": {
"php": ">=7.2.5",
"symfony/http-kernel": "^4.4 || ^5.1 || ^6.0",
"api-platform/core": "^2.5",
"api-platform/core": "^2.7 || ^3.0",
"doctrine/orm": "^2.7"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Filter/DateFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class DateFilter extends AbstractFilter implements DateFilterInterface
{
public const DOCTRINE_DATE_TYPES = ApipDateFilter::DOCTRINE_DATE_TYPES;

private ApipDateFilter $inner;
private $inner;

public function __construct(ManagerRegistry $managerRegistry, LoggerInterface $logger = null, array $properties = null, NameConverterInterface $nameConverter = null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Filter/FilterLogic.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class FilterLogic implements FilterInterface
* but also changes the behavior of ExistsFilter =false.
* {@inheritdoc}
*/
public function __construct(ContainerInterface $filterLocator, protected ManagerRegistry $managerRegistry, protected ?LoggerInterface $logger = null, protected ?array $properties = null, protected ?NameConverterInterface $nameConverter = null, string $classExp='//', $innerJoinsLeft=false)
public function __construct(ContainerInterface $filterLocator, ManagerRegistry $managerRegistry, ?LoggerInterface $logger = null, ?array $properties = null, ?NameConverterInterface $nameConverter = null, string $classExp='//', $innerJoinsLeft=false)
{
$this->filterLocator = $filterLocator;
$this->classExp = $classExp;
Expand Down
4 changes: 2 additions & 2 deletions tests/Filter/FilterLogicWithAnnotationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class FilterLogicWithAnnotationTest extends KernelTestCase
private $filters;
/** @var FilterLogic */
private $filterLogic;

private Operation $operation;
/** @var Operation */
private $operation;

public function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Filter/FilterToTestAssumptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class FilterToTestAssumptions implements FilterInterface
{
public function getDescription(string $resourceClass): array
{

return [];
}

public function apply(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, Operation $operation = null, array $context = []): void
Expand Down

0 comments on commit 4c0fbd0

Please sign in to comment.