Skip to content

Commit

Permalink
[DDC-1952] Housekeeping: Adjust cs/psalm.
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Feb 28, 2021
1 parent 2cf1c4d commit 85ff887
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions lib/Doctrine/ORM/Query/Filter/SQLFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
namespace Doctrine\ORM\Query\Filter;

use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Types\Type;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\Query\ParameterTypeInferer;
Expand All @@ -31,7 +30,6 @@
use function array_map;
use function implode;
use function is_array;

use function ksort;
use function serialize;

Expand All @@ -54,7 +52,7 @@ abstract class SQLFilter
/**
* Parameters for the filter.
*
* @var array
* @psalm-var array<string,array{type: string, value: mixed}>
*/
private $parameters = [];

Expand Down Expand Up @@ -110,7 +108,7 @@ final public function setParameter($name, $value, $type = null): self
*/
final public function getParameter($name)
{
if (!isset($this->parameters[$name])) {
if (! isset($this->parameters[$name])) {
throw new InvalidArgumentException("Parameter '" . $name . "' does not exist.");
}

Expand Down
2 changes: 0 additions & 2 deletions tests/Doctrine/Tests/ORM/Functional/SQLFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
use function in_array;
use function serialize;

use function count;

/**
* Tests SQLFilter functionality.
*
Expand Down

0 comments on commit 85ff887

Please sign in to comment.