Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2 from pawel-lewtak/patch-1
Browse files Browse the repository at this point in the history
Update misleading exception message
  • Loading branch information
mwillbanks committed Jul 17, 2015
2 parents 4aa023a + 686ab3d commit 98c053e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Reflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static function reflectFunction($function, $argv = false, $namespace = ''
}

if ($argv && !is_array($argv)) {
throw new Reflection\Exception\InvalidArgumentException('Invalid argv argument passed to reflectClass');
throw new Reflection\Exception\InvalidArgumentException('Invalid argv argument passed to reflectFunction');
}

return new ReflectionFunction(new \ReflectionFunction($function), $namespace, $argv);
Expand Down

0 comments on commit 98c053e

Please sign in to comment.