Skip to content

Commit

Permalink
Roll back some select types
Browse files Browse the repository at this point in the history
  • Loading branch information
Firehed committed Aug 30, 2024
1 parent 3ed8282 commit 5e022cb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/InMemoryEntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,15 @@ public function addOnFlushCallback(callable $callback): void
*
* @template Entity of object
* @param class-string<Entity> $className
* @param mixed $id The identity of the object to find.
* @param mixed $id The identity of the object to find.
* @param LockMode|int|null $lockMode
*
* @return ?Entity The found object.
*/
public function find(
string $className,
mixed $id,
LockMode|int|null $lockMode = null,
$className,
$id,
$lockMode = null,
?int $lockVersion = null,
): ?object {
return $this->getRepository($className)->find($id);
Expand Down Expand Up @@ -296,8 +297,10 @@ public function initializeObject($obj)

/**
* Checks if the object is part of the current UnitOfWork and therefore managed.
*
* @param object $object
*/
public function contains(object $object): bool
public function contains($object): bool

Check warning on line 303 in src/InMemoryEntityManager.php

View check run for this annotation

Codecov / codecov/patch

src/InMemoryEntityManager.php#L303

Added line #L303 was not covered by tests
{
throw new RuntimeException(__METHOD__ . ' not yet implemented');
}
Expand Down

0 comments on commit 5e022cb

Please sign in to comment.