If ->getClass() is not available, ignore it
MODIFY
src/Behat/Testwork/Argument/MixedArgumentOrganiser.php
src/Behat/Testwork/Argument/MixedArgumentOrganiser.php
@@ -13,6 +13,7 @@ namespace Behat\Testwork\Argument;
use ReflectionFunctionAbstract;
use ReflectionClass;
use ReflectionParameter;
+use ReflectionException;
/**
* Organises function arguments using its reflection.
@@ -225,7 +226,11 @@ final class MixedArgumentOrganiser implements ArgumentOrganiser
continue;
}
+ try {
$reflectionClass = $parameter->getClass();
+ } catch (ReflectionException $e) {
+ continue;
+ }
if (!$reflectionClass) {
continue;

If ->getClass() is not available, ignore it