Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit ce839d9

Browse files
committed
Merge branch 'hotfix/233-parameter-type-hints'
Close #233
2 parents 41c3c4e + 331ce27 commit ce839d9

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ All notable changes to this project will be documented in this file, in reverse
2727
with default values to their default values if no matching type is found in
2828
the container.
2929

30+
- [#233](https://github.com/zendframework/zend-servicemanager/pull/233) fixes a
31+
number of parameter annotations to reflect the actual types used.
32+
3033
## 3.3.1 - 2017-11-27
3134

3235
### Added

src/AbstractFactory/ReflectionBasedAbstractFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function canCreate(ContainerInterface $container, $requestedName)
150150
private function resolveParameterWithoutConfigService(ContainerInterface $container, $requestedName)
151151
{
152152
/**
153-
* @param ReflectionClass $parameter
153+
* @param ReflectionParameter $parameter
154154
* @return mixed
155155
* @throws ServiceNotFoundException If type-hinted parameter cannot be
156156
* resolved to a service in the container.
@@ -173,7 +173,7 @@ private function resolveParameterWithoutConfigService(ContainerInterface $contai
173173
private function resolveParameterWithConfigService(ContainerInterface $container, $requestedName)
174174
{
175175
/**
176-
* @param ReflectionClass $parameter
176+
* @param ReflectionParameter $parameter
177177
* @return mixed
178178
* @throws ServiceNotFoundException If type-hinted parameter cannot be
179179
* resolved to a service in the container.
@@ -189,7 +189,7 @@ private function resolveParameterWithConfigService(ContainerInterface $container
189189
/**
190190
* Logic common to all parameter resolution.
191191
*
192-
* @param ReflectionClass $parameter
192+
* @param ReflectionParameter $parameter
193193
* @param ContainerInterface $container
194194
* @param string $requestedName
195195
* @return mixed

0 commit comments

Comments
 (0)