Don't accept non-objects before testing with "instanceof".
authorRoland Haeder <roland@mxchange.org>
Sat, 6 Feb 2016 18:57:37 +0000 (19:57 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 6 Feb 2016 18:57:37 +0000 (19:57 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
plugins/OStatus/lib/huboutqueuehandler.php

index 9cab847..46d9e08 100644 (file)
@@ -39,6 +39,7 @@ class HubOutQueueHandler extends QueueHandler
         $atom = $data['atom'];
         $retries = $data['retries'];
 
+        assert(is_object($sub));
         assert($sub instanceof HubSub);
         assert(is_string($atom));