CodeExplorer checkType example
for ($i = 0;
$i <
$checksCount; ++
$i) { $p =
$reflectionParameters[$i];
if (!
$p->
hasType() ||
$p->
isVariadic()) { continue;
} if (\
array_key_exists($p->name,
$values)) { $i =
$p->name;
} elseif (!\
array_key_exists($i,
$values)) { continue;
} $this->
checkType($checkedDefinition,
$values[$i],
$p,
$envPlaceholderUniquePrefix);
} if ($reflectionFunction->
isVariadic() && ($lastParameter =
end($reflectionParameters))->
hasType()) { $variadicParameters = \
array_slice($values,
$lastParameter->
getPosition());
foreach ($variadicParameters as $variadicParameter) { $this->
checkType($checkedDefinition,
$variadicParameter,
$lastParameter,
$envPlaceholderUniquePrefix);
} } } for ($i = 0;
$i <
$checksCount; ++
$i) { $p =
$reflectionParameters[$i];
if (!
$p->
hasType() ||
$p->
isVariadic()) { continue;
} if (\
array_key_exists($p->name,
$values)) { $i =
$p->name;
} elseif (!\
array_key_exists($i,
$values)) { continue;
} $this->
checkType($checkedDefinition,
$values[$i],
$p,
$envPlaceholderUniquePrefix);
} if ($reflectionFunction->
isVariadic() && ($lastParameter =
end($reflectionParameters))->
hasType()) { $variadicParameters = \
array_slice($values,
$lastParameter->
getPosition());
foreach ($variadicParameters as $variadicParameter) { $this->
checkType($checkedDefinition,
$variadicParameter,
$lastParameter,
$envPlaceholderUniquePrefix);
} } }