From 7342f00a0624ec0e89732ad476f44dc95d0129de Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 4 Feb 2017 18:45:06 -0500 Subject: Fix to object class function signature The getOwner() function should have had a nullable return type. --- app/class/object.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/class') diff --git a/app/class/object.class.php b/app/class/object.class.php index a000a10..8ad17f5 100644 --- a/app/class/object.class.php +++ b/app/class/object.class.php @@ -57,7 +57,7 @@ class object extends table * object will be returned. If this object does not have an owner, * NULL will be returned. */ - public function getOwner() : agent + public function getOwner() : ?agent { if (!isset($this->owner) || $this->owner == "") return NULL; -- cgit v1.2.3