Skip to content

Commit

Permalink
Solve rector
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Feb 6, 2024
1 parent 209ef9d commit bc8d9c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Model/BaseManager.php
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 bc8d9c9

Please sign in to comment.