summaryrefslogtreecommitdiffstats
path: root/app/class/object.class.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-02-04 18:45:06 -0500
committerMalf Furious <m@lfurio.us>2017-02-04 18:45:06 -0500
commit7342f00a0624ec0e89732ad476f44dc95d0129de (patch)
tree29adafe311435a50c2547288de3df9be76a71066 /app/class/object.class.php
parent66cf5c4d36ed6020c6ee6b7ca99aecd5a8f3bcf4 (diff)
downloadscrott-7342f00a0624ec0e89732ad476f44dc95d0129de.tar.gz
scrott-7342f00a0624ec0e89732ad476f44dc95d0129de.zip
Fix to object class function signature
The getOwner() function should have had a nullable return type.
Diffstat (limited to '')
-rw-r--r--app/class/object.class.php2
1 files changed, 1 insertions, 1 deletions
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;