From bc981ca7eb2b8fc7fb65223c99b5b59390040bad Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 7 Apr 2017 21:27:18 +0200 Subject: Fixed inconsistency for return type declaration. --- core/namespace/ItemFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); } -- cgit v1.2.3