Issues (24)

src/Parsers/PropertiesParser.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace BultonFr\Annotation\Parsers;
4
5
/**
6
 * Do action for annotation declared on a method
7
 *
8
 * @package BultonFr\Annotation
9
 */
10
class PropertiesParser extends AbstractManyParser
11
{
12
    /**
13
     * {@inheritDoc}
14
     *
15
     * Instanciate the parser object for all properties into the class, and
16
     * add it to the list on AbstractManyParser.
17
     */
18
    public function run()
19
    {
20 1
        $propertyList = $this->reflection->getProperties();
0 ignored issues
show
The method getProperties() does not exist on Reflector. It seems like you code against a sub-type of Reflector such as ReflectionObject or ReflectionClass. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

20
        /** @scrutinizer ignore-call */ 
21
        $propertyList = $this->reflection->getProperties();
Loading history...
21
22 1
        foreach ($propertyList as $propertyInfo) {
23 1
            $parser = new PropertyParser($this->parserManager, $propertyInfo);
24 1
            $parser->run();
25
26 1
            $this->addItem($propertyInfo->getName(), $parser);
27
        }
28 1
    }
29
}
30