@@ -98,7 +98,7 @@ |
||
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | - * @param object $identity |
|
| 101 | + * @param \DoctrineModuleTest\Authentication\Adapter\TestAsset\IdentityObject $identity |
|
| 102 | 102 | * @return void |
| 103 | 103 | */ |
| 104 | 104 | public function write($identity) |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | - * @return mixed |
|
| 64 | + * @return string |
|
| 65 | 65 | */ |
| 66 | 66 | public function getMessage() |
| 67 | 67 | { |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | use Zend\ModuleManager\ModuleManagerInterface; |
| 27 | 27 | use Zend\EventManager\EventInterface; |
| 28 | 28 | use Zend\Console\Adapter\AdapterInterface as Console; |
| 29 | - |
|
| 30 | 29 | use Symfony\Component\Console\Input\StringInput; |
| 31 | 30 | use DoctrineModule\Component\Console\Output\PropertyOutput; |
| 32 | 31 | |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | /** |
| 142 | - * @return ObjectManager |
|
| 142 | + * @return string |
|
| 143 | 143 | */ |
| 144 | 144 | public function getObjectManager() |
| 145 | 145 | { |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | /** |
| 292 | - * @return \Zend\Authentication\Storage\StorageInterface|string |
|
| 292 | + * @return string |
|
| 293 | 293 | */ |
| 294 | 294 | public function getStorage() |
| 295 | 295 | { |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | use Doctrine\Common\Persistence\ObjectManager; |
| 24 | 24 | use Doctrine\Common\Persistence\ObjectRepository; |
| 25 | 25 | use Zend\Authentication\Adapter\Exception; |
| 26 | -use Zend\Authentication\Storage\Session as SessionStorage; |
|
| 27 | 26 | use Zend\Authentication\Storage\StorageInterface; |
| 28 | 27 | use Zend\Stdlib\AbstractOptions; |
| 29 | 28 | |
@@ -399,9 +399,9 @@ |
||
| 399 | 399 | * changing the collection of the object |
| 400 | 400 | * |
| 401 | 401 | * @param object $object |
| 402 | - * @param mixed $collectionName |
|
| 402 | + * @param string $collectionName |
|
| 403 | 403 | * @param string $target |
| 404 | - * @param mixed $values |
|
| 404 | + * @param DateTime $values |
|
| 405 | 405 | * |
| 406 | 406 | * @throws \InvalidArgumentException |
| 407 | 407 | * |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | } |
| 287 | 287 | |
| 288 | 288 | /** |
| 289 | - * @return mixed |
|
| 289 | + * @return string |
|
| 290 | 290 | */ |
| 291 | 291 | public function getProperty() |
| 292 | 292 | { |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | } |
| 369 | 369 | |
| 370 | 370 | /** |
| 371 | - * @return mixed |
|
| 371 | + * @return boolean|null |
|
| 372 | 372 | */ |
| 373 | 373 | public function getIsMethod() |
| 374 | 374 | { |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | * @param string $requestedName |
| 44 | 44 | * @param null|array $options |
| 45 | 45 | * |
| 46 | - * @return object |
|
| 46 | + * @return CliController |
|
| 47 | 47 | * @throws ServiceNotFoundException if unable to resolve the service. |
| 48 | 48 | * @throws ServiceNotCreatedException if an exception is raised when creating a service. |
| 49 | 49 | * @throws ContainerException if any other error occurs |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace DoctrineModuleTest\Stdlib\Hydrator; |
| 4 | 4 | |
| 5 | -use Datetime; |
|
| 6 | 5 | use DoctrineModuleTest\Stdlib\Hydrator\Asset\ContextStrategy; |
| 7 | 6 | use PHPUnit\Framework\TestCase as BaseTestCase; |
| 8 | 7 | use ReflectionClass; |
@@ -50,6 +50,9 @@ discard block |
||
| 50 | 50 | ->will($this->returnValue($this->metadata)); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @param string $genericFieldType |
|
| 55 | + */ |
|
| 53 | 56 | public function configureObjectManagerForSimpleEntityWithGenericField($genericFieldType) |
| 54 | 57 | { |
| 55 | 58 | $refl = new ReflectionClass('DoctrineModuleTest\Stdlib\Hydrator\Asset\SimpleEntityWithGenericField'); |
@@ -78,6 +81,10 @@ discard block |
||
| 78 | 81 | ->with($this->logicalOr($this->equalTo('id'), $this->equalTo('genericField'))) |
| 79 | 82 | ->will( |
| 80 | 83 | $this->returnCallback( |
| 84 | + |
|
| 85 | + /** |
|
| 86 | + * @param string $arg |
|
| 87 | + */ |
|
| 81 | 88 | function ($arg) use ($genericFieldType) { |
| 82 | 89 | if ('id' === $arg) { |
| 83 | 90 | return 'integer'; |
@@ -2,16 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace DoctrineModuleTest\Stdlib\Hydrator; |
| 4 | 4 | |
| 5 | -use Datetime; |
|
| 6 | -use DoctrineModuleTest\Stdlib\Hydrator\Asset\ContextStrategy; |
|
| 7 | 5 | use PHPUnit\Framework\TestCase as BaseTestCase; |
| 8 | 6 | use ReflectionClass; |
| 9 | -use Doctrine\Common\Collections\ArrayCollection; |
|
| 10 | 7 | use DoctrineModule\Stdlib\Hydrator\DoctrineObject as DoctrineObjectHydrator; |
| 11 | -use DoctrineModule\Stdlib\Hydrator\Strategy; |
|
| 12 | -use DoctrineModule\Stdlib\Hydrator\Filter; |
|
| 13 | -use DoctrineModuleTest\Stdlib\Hydrator\Asset\NamingStrategyEntity; |
|
| 14 | -use Zend\Hydrator\NamingStrategy\UnderscoreNamingStrategy; |
|
| 15 | 8 | |
| 16 | 9 | class DoctrineObjectTypeConversionsTest extends BaseTestCase |
| 17 | 10 | { |