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.
Completed
Push — master ( 1978d2...e2f699 )
by William
03:55
created

src/Hateoas/UrlGenerator/SymfonyUrlGenerator.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Hateoas\UrlGenerator;
4
5
use Symfony\Component\Routing\Generator\UrlGeneratorInterface as SymfonyUrlGeneratorInterface;
6
7
/**
8
 * @author Adrien Brault <[email protected]>
9
 */
10
class SymfonyUrlGenerator implements UrlGeneratorInterface
11
{
12
    /**
13
     * @var SymfonyUrlGeneratorInterface
14
     */
15
    private $urlGenerator;
16
17
    public function __construct(SymfonyUrlGeneratorInterface $urlGenerator)
18
    {
19
        $this->urlGenerator = $urlGenerator;
20
    }
21
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function generate($name, array $parameters, $absolute = false)
26
    {
27
        return $this->urlGenerator->generate($name, $parameters, $absolute);
0 ignored issues
show
$absolute is of type boolean, but the function expects a integer.

It seems like the type of the argument is not accepted by the function/method which you are calling.

In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.

We suggest to add an explicit type cast like in the following example:

function acceptsInteger($int) { }

$x = '123'; // string "123"

// Instead of
acceptsInteger($x);

// we recommend to use
acceptsInteger((integer) $x);
Loading history...
28
    }
29
}
30