Skip to content

Commit

Permalink
Merge branch 'release/1.1.10'
Browse files Browse the repository at this point in the history
  • Loading branch information
romaninsh committed Feb 13, 2017
2 parents c7d16dd + 98d27e6 commit 34a7252
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.1.10

- prevent looping by calling normalizeClass in the API that may also
implement factory trait and cause a loop

## 1.1.8

- Added Exception::getHTML(), similar to getColofulException but for
Expand Down
4 changes: 2 additions & 2 deletions src/FactoryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ public function normalizeClassName($name, $prefix = null)
if (
is_string($name)
&& isset($this->_appScopeTrait, $this->app)
&& method_exists($this->app, 'normalizeClassName')
&& method_exists($this->app, 'normalizeClassNameApp')
) {
$name = $this->app->normalizeClassName($name, $prefix);
$name = $this->app->normalizeClassNameApp($name, $prefix);
}

if (!is_string($name)) {
Expand Down

0 comments on commit 34a7252

Please sign in to comment.