aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-04-07 21:27:18 +0200
committerThomas Lange <code@nerdmind.de>2017-04-07 21:27:18 +0200
commitbc981ca7eb2b8fc7fb65223c99b5b59390040bad (patch)
tree343ab7778601c4738b348962540eab01be5ba443 /core/namespace
parenta7457a80770467004230ee4049de688b9a8d8ece (diff)
downloadblog-bc981ca7eb2b8fc7fb65223c99b5b59390040bad.tar.gz
blog-bc981ca7eb2b8fc7fb65223c99b5b59390040bad.tar.xz
blog-bc981ca7eb2b8fc7fb65223c99b5b59390040bad.zip
Fixed inconsistency for return type declaration.
Diffstat (limited to 'core/namespace')
-rw-r--r--core/namespace/ItemFactory.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/namespace/ItemFactory.php b/core/namespace/ItemFactory.php
index 35182f1..94b85ad 100644
--- a/core/namespace/ItemFactory.php
+++ b/core/namespace/ItemFactory.php
@@ -16,7 +16,7 @@ abstract class ItemFactory extends Factory implements FactoryInterface {
#===========================================================================
# Build instance by slug
#===========================================================================
- public static function buildBySlug($slug): \Item {
+ public static function buildBySlug($slug): Item {
$Item = (new ReflectionClass(get_called_class()))->getNamespaceName().'\\Item';
return self::build($Item::getIDByField('slug', $slug, \Application::getDatabase()));
}