Skip to content

Commit 53e349e

Browse files
author
Robin Cawser
committed
More code quality fixes
1 parent 2bb72ac commit 53e349e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Vivait/StringGeneratorBundle/EventListener/GeneratorListener.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class GeneratorListener
3636
* via a setter, and the registry is fetched from there instead.
3737
*
3838
* @param Reader $reader
39-
* @param Registry $registry
39+
* @param null|Registry $registry
4040
*/
4141
public function __construct(Reader $reader, Registry $registry = null)
4242
{
@@ -91,7 +91,6 @@ private function generateString($property, GeneratorAnnotation $annotation, $obj
9191
/** @var GeneratorInterface $generator */
9292
$generator = $this->getRegistry()->get($annotation->generator);
9393

94-
/** @noinspection PhpDeprecationInspection */
9594
$generator->setLength($annotation->length);
9695

9796
if(!empty($annotation->callbacks)){

0 commit comments

Comments
 (0)