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.

Issues (23)

tests/Parse/TestCase.php (2 issues)

Labels
Severity
1
<?php
2
3
namespace Graze\Morphism\Test\Parse;
4
5
use \Graze\Morphism\Parse\Token;
0 ignored issues
show
The type \Graze\Morphism\Parse\Token was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use \Graze\Morphism\Parse\TokenStream;
0 ignored issues
show
The type \Graze\Morphism\Parse\TokenStream was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
8
9
class TestCase extends PHPUnitTestCase
10
{
11
    /** @var bool */
12
    protected $oldQuoteNames;
13
14
    public function setUp()
15
    {
16
        $this->oldQuoteNames = Token::getQuoteNames();
17
        Token::setQuoteNames(true);
18
    }
19
20
    public function tearDown()
21
    {
22
        Token::setQuoteNames($this->oldQuoteNames);
23
    }
24
25
    /**
26
     * @param string $text
27
     * @return TokenStream
28
     */
29
    public function makeStream($text)
30
    {
31
        return TokenStream::newFromFile("data://text/plain;base64," . base64_encode($text));
32
    }
33
}
34