aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-28 00:17:48 +0200
committerThomas Lange <code@nerdmind.de>2021-06-28 00:17:48 +0200
commitd87422db33faa08d443a245004a29da8fb0aaf78 (patch)
tree31592016ec91dcf427ee05e702cabea0107f6e3a
parent6f1c594962e053a7eb404eeb7ca6b8616a2cfa90 (diff)
downloadblog-d87422db33faa08d443a245004a29da8fb0aaf78.tar.gz
blog-d87422db33faa08d443a245004a29da8fb0aaf78.tar.xz
blog-d87422db33faa08d443a245004a29da8fb0aaf78.zip
Bugfix: Remove explicit parameter type int
-rw-r--r--core/namespace/ORM/Repository.php6
1 files changed, 3 insertions, 3 deletions
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;
}