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

Update misleading exception message #2

Merged
merged 1 commit into from
Jul 17, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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