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

Commit

Permalink
Merge branch 'hotfix/2'
Browse files Browse the repository at this point in the history
Close #2
  • Loading branch information
mwillbanks committed Jul 17, 2015
2 parents 4aa023a + 46f3375 commit 8d885b0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Changelog

All notable changes to this project will be documented in this file, in reverse chronological order by release.

## 2.5.2 - TBD

### Added

- Nothing.

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed

- [#2](https://github.com/zendframework/zend-server/pull/2) fixes misleading exception in reflectFunction that referenced reflectClass.
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 8d885b0

Please sign in to comment.