Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / phpspec / prophecy / src / Prophecy / Argument / Token / StringContainsToken.php
index 24ff8c2ecf54e38fab010d4b3aae84343bf1e40e..bd8d423f9164216165be17a6fe1cf743a0045c7d 100644 (file)
@@ -32,7 +32,7 @@ class StringContainsToken implements TokenInterface
 
     public function scoreArgument($argument)
     {
-        return strpos($argument, $this->value) !== false ? 6 : false;
+        return is_string($argument) && strpos($argument, $this->value) !== false ? 6 : false;
     }
 
     /**