/** * @inheritdoc */ public function denormalize(FixtureInterface $scope, FlagParserInterface $parser, array $unparsedConstructor) : MethodCallInterface { try { return $this->simpleConstructorDenormalizer->denormalize($scope, $parser, $unparsedConstructor); } catch (UnexpectedValueException $exception) { // Continue } /** @var string $firstKey */ $firstKey = key($unparsedConstructor); list($caller, $method) = $this->getCallerReference($scope, $firstKey); $arguments = $this->simpleConstructorDenormalizer->denormalize($scope, $parser, $unparsedConstructor[$firstKey]); return new MethodCallWithReference($caller, $method, $arguments->getArguments()); }