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.

BrowserKitTestCase::createApplication()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace ProtoneMedia\LaravelBrowserKitMacro;
4
5
use Illuminate\Foundation\Application;
6
use Illuminate\Http\Response;
7
use Laravel\BrowserKitTesting\TestCase;
8
9
class BrowserKitTestCase extends TestCase
10
{
11
    public function createApplication()
12
    {
13
        return;
14
    }
15
16
    /**
17
     * Set the Application.
18
     *
19
     * @var \Illuminate\Foundation\Application
20
     */
21
    public function setApp(Application $app)
22
    {
23
        $this->app = $app;
24
25
        return $this;
26
    }
27
28
    /**
29
     * Set the response returned by the request.
30
     *
31
     * @var \Illuminate\Http\Response
32
     */
33
    public function setResponse(Response $response)
34
    {
35
        $this->response = $response;
0 ignored issues
show
Documentation Bug introduced by
It seems like $response of type Illuminate\Http\Response is incompatible with the declared type Laravel\BrowserKitTesting\TestResponse of property $response.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
36
37
        return $this;
38
    }
39
}
40