Skip to content

Commit

Permalink
Fixing Reflection usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaposa committed Jun 11, 2017
1 parent 9fa71c2 commit 7679a8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Cascader.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function marshalArguments(ReflectionClass $reflectionClass, Options $o
protected function resolveArgument(ReflectionParameter $parameter, Options $options)
{
try {
$argument = $options->get($parameter->getName());
$argument = $options->get($parameter->name);

if (null !== ($parameterType = $parameter->getType())) {
if (is_array($argument) && ! $parameterType->isBuiltin()) {
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidOptionsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static function forInvalidKeys()

public static function forMissingMandatoryParameter(ReflectionParameter $parameter)
{
$className = $parameter->getDeclaringClass()->getName();
$className = $parameter->getDeclaringClass()->name;
$parameterName = $parameter->getName();

return new self(sprintf('Mandatory parameter: \'%2$s\' of class: %1$s is missing from options', $className, $parameterName));
Expand Down

0 comments on commit 7679a8c

Please sign in to comment.