Skip to content

Commit

Permalink
DevKit updates for 2.x branch (#502)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Langlet <vincentlanglet@hotmail.fr>
  • Loading branch information
SonataCI and VincentLanglet committed Feb 6, 2024
1 parent 4afc03e commit 1edb2ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions rector.php
Expand Up @@ -21,7 +21,6 @@
use Rector\Php70\Rector\FunctionLike\ExceptionHandlerTypehintRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\AddSeeTestAnnotationRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;

Expand All @@ -33,7 +32,7 @@

$rectorConfig->sets([
LevelSetList::UP_TO_PHP_80,
PHPUnitLevelSetList::UP_TO_PHPUNIT_90,
PHPUnitSetList::PHPUNIT_90,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
]);

Expand Down
2 changes: 1 addition & 1 deletion src/Model/BaseManager.php
Expand Up @@ -54,7 +54,7 @@ public function findOneBy(array $criteria): ?object
return $this->getRepository()->findOneBy($criteria);
}

public function find($id): ?object
public function find(mixed $id): ?object
{
return $this->getRepository()->find($id);
}
Expand Down
4 changes: 1 addition & 3 deletions src/Model/ManagerInterface.php
Expand Up @@ -60,11 +60,9 @@ public function findOneBy(array $criteria): ?object;
/**
* Finds an entity by its primary key / identifier.
*
* @param mixed $id The identifier
*
* @phpstan-return T|null
*/
public function find($id): ?object;
public function find(mixed $id): ?object;

/**
* Create an empty Entity instance.
Expand Down

0 comments on commit 1edb2ef

Please sign in to comment.