Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Pull Request — master (#536)
by
unknown
23:19
created

PropertyMetadata::getPropertyValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 1
c 2
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\Validator\Mapping;
6
7
use ReflectionException;
8
use ReflectionProperty;
9
use Symfony\Component\Validator\Mapping\MemberMetadata;
10
11
class PropertyMetadata extends MemberMetadata
12
{
13 10
    public function __construct(string $name)
14
    {
15 10
        parent::__construct('anonymous', $name, $name);
16 10
    }
17
18
    /**
19
     * @param  $object
20
     *
21
     * @return ReflectionProperty
22
     *
23
     * @throws ReflectionException
24
     */
25 10
    protected function newReflectionMember($object): ReflectionProperty
26
    {
27 10
        $member = new ReflectionProperty($object, $this->getName());
28 10
        $member->setAccessible(true);
29
30 10
        return $member;
31
    }
32
33 10
    public function getPropertyValue($object)
34
    {
35 10
        return $this->getReflectionMember($object)->getValue($object);
0 ignored issues
show
Bug introduced by
The method getValue() does not exist on ReflectionMethod. ( Ignorable by Annotation )

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

35
        return $this->getReflectionMember($object)->/** @scrutinizer ignore-call */ getValue($object);

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
36
    }
37
}
38