Skip to content

Commit

Permalink
If ->getClass() is not available, ignore it
Browse files Browse the repository at this point in the history
  • Loading branch information
Taluu committed May 9, 2018
1 parent 17ae62e commit 784583e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Behat/Testwork/Argument/MixedArgumentOrganiser.php
Expand Up @@ -13,6 +13,7 @@
use ReflectionFunctionAbstract;
use ReflectionClass;
use ReflectionParameter;
use ReflectionException;

/**
* Organises function arguments using its reflection.
Expand Down Expand Up @@ -225,7 +226,11 @@ private function filterApplicableTypehintedParameters(array $parameters)
continue;
}

$reflectionClass = $parameter->getClass();
try {
$reflectionClass = $parameter->getClass();
} catch (ReflectionException $e) {
continue;
}

if (!$reflectionClass) {
continue;
Expand Down

0 comments on commit 784583e

Please sign in to comment.