From d87422db33faa08d443a245004a29da8fb0aaf78 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 28 Jun 2021 00:17:48 +0200 Subject: Bugfix: Remove explicit parameter type int --- core/namespace/ORM/Repository.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/namespace') diff --git a/core/namespace/ORM/Repository.php b/core/namespace/ORM/Repository.php index 58ccf97..1eb687d 100644 --- a/core/namespace/ORM/Repository.php +++ b/core/namespace/ORM/Repository.php @@ -34,14 +34,14 @@ abstract class Repository { #=============================================================================== # Gets an entity from the runtime cache #=============================================================================== - protected function fetchInstance(int $identifier) { + protected function fetchInstance($identifier) { return $this->entities[$identifier] ?? FALSE; } #=============================================================================== # Removes an entity from the runtime cache #=============================================================================== - protected function removeInstance(int $identifier) { + protected function removeInstance($identifier) { if(isset($this->entities[$identifier])) { unset($this->entities[$identifier]); } @@ -101,7 +101,7 @@ abstract class Repository { #=========================================================================== # Find entity based on primary key #=========================================================================== - public function find(int $id): ?EntityInterface { + public function find($id): ?EntityInterface { if($Entity = $this->fetchInstance($id)) { return $Entity; } -- cgit v1.2.3