Skip to content

Commit

Permalink
Fix rector
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Feb 6, 2024
1 parent 2d37e21 commit 3574e3b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 27 deletions.
4 changes: 1 addition & 3 deletions src/Admin/AdminInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,9 @@ public function getBatchActions(): array;
public function getPersistentParameters(): array;

/**
* @param mixed $default
*
* @return mixed
*/
public function getPersistentParameter(string $name, $default = null);
public function getPersistentParameter(string $name, mixed $default = null);

/**
* Set the current child status.
Expand Down
3 changes: 1 addition & 2 deletions src/Exception/BadRequestParamHttpException.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ final class BadRequestParamHttpException extends BadRequestHttpException
{
/**
* @param string|string[] $expectedTypes
* @param mixed $value
*/
public function __construct(
string $name,
$expectedTypes,
$value
mixed $value
) {
if (!\is_array($expectedTypes)) {
$expectedTypes = [$expectedTypes];
Expand Down
18 changes: 4 additions & 14 deletions src/Filter/FilterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,11 @@ public function getDefaultOptions(): array;
public function getOptions(): array;

/**
* @param mixed $default
*
* @return mixed
*/
public function getOption(string $name, $default = null);
public function getOption(string $name, mixed $default = null);

/**
* @param mixed $value
*/
public function setOption(string $name, $value): void;
public function setOption(string $name, mixed $value): void;

/**
* @param array<string, mixed> $options
Expand Down Expand Up @@ -112,16 +107,11 @@ public function getAssociationMapping(): array;
public function getFieldOptions(): array;

/**
* @param mixed $default
*
* @return mixed
*/
public function getFieldOption(string $name, $default = null);
public function getFieldOption(string $name, mixed $default = null);

/**
* @param mixed $value
*/
public function setFieldOption(string $name, $value): void;
public function setFieldOption(string $name, mixed $value): void;

public function getFieldType(): string;

Expand Down
10 changes: 2 additions & 8 deletions src/Route/AdminPoolLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,12 @@ public function __construct(
parent::__construct();
}

/**
* @param mixed $resource
*/
public function supports($resource, ?string $type = null): bool
public function supports(mixed $resource, ?string $type = null): bool
{
return self::ROUTE_TYPE_NAME === $type;
}

/**
* @param mixed $resource
*/
public function load($resource, ?string $type = null): SymfonyRouteCollection
public function load(mixed $resource, ?string $type = null): SymfonyRouteCollection
{
$collection = new SymfonyRouteCollection();
foreach ($this->pool->getAdminServiceCodes() as $code) {
Expand Down

0 comments on commit 3574e3b

Please sign in to comment.