GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#153)
by joseph
15:17
created

TemplateEntityIsValidConstraintValidatorTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A invalidValuesAreRaised() 0 14 1
A createValidator() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace TemplateNamespace\Validation\Constraints;
4
5
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
6
7
class TemplateEntityIsValidConstraintValidatorTest extends ConstraintValidatorTestCase
8
{
9
10
    public function invalidValuesAreRaised($value, string $invalidPropertyPath, string $valueAsString): void
11
    {
12
        $constraint = new TemplateEntityIsValidConstraint(
13
            [
14
                'message' => 'myMessage',
15
            ]
16
        );
17
18
        $this->validator->validate($value, $constraint);
19
20
        $this->buildViolation($constraint->message)
21
             ->atPath($invalidPropertyPath)
22
             ->setParameter('{{ string }}', $valueAsString)
23
             ->addViolation();
0 ignored issues
show
Bug introduced by
The method addViolation() does not exist on Symfony\Component\Valida...raintViolationAssertion. ( Ignorable by Annotation )

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

23
             ->/** @scrutinizer ignore-call */ addViolation();

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...
24
    }
25
26
    protected function createValidator()
27
    {
28
        return new TemplateEntityIsValidConstraintValidator();
29
    }
30
}