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

Commit

Permalink
Merge branch 'feature/37' into develop
Browse files Browse the repository at this point in the history
Close #37
  • Loading branch information
tux-rampage committed Aug 29, 2018
2 parents 45ac620 + dac51b2 commit 753457e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ All notable changes to this project will be documented in this file, in reverse
- [#31](https://github.com/zendframework/zend-di/pull/31) adds the method
`getNamespace()` to `Zend\Di\CodeGenerator\InjectorGenerator`.

- [#37](https://github.com/zendframework/zend-di/pull/37) removes the use of `count()`
in `Zend\Di\CodeGenerator\FactoryGenerator::buildParametersCode()` to improve performance

### Deprecated

- Nothing.
Expand Down
2 changes: 1 addition & 1 deletion src/CodeGenerator/FactoryGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private function buildParametersCode(string $type)
$tab = str_repeat(' ', $intention);
$code = '';

if (count($withOptions)) {
if ($withOptions) {
// Build conditional initializer code:
// If no $params were provided ignore it completely
// otherwise check if there is a value for each dependency in $params.
Expand Down

0 comments on commit 753457e

Please sign in to comment.