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 9cab847cc29646b3f8a2469d44dd7d17fc01728f..46d9e08e3924922b4b9da6499f24d79c529e47d2 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));