Completed
Push — master ( 42b4ce...8ef5d4 )
by Carlos
04:00
created

AuthorizeFailedException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
/*
4
 * This file is part of the overtrue/socialite.
5
 *
6
 * (c) overtrue <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Overtrue\Socialite;
13
14
class AuthorizeFailedException extends \RuntimeException
15
{
16
    /**
17
     * Response body.
18
     *
19
     * @var array
20
     */
21
    public $body;
22
23
    /**
24
     * Constructor.
25
     *
26
     * @param string $message
27
     * @param string $body
28
     */
29
    public function __construct($message, $body)
30
    {
31
        parent::__construct($message, -1);
32
33
        $this->body = $body;
0 ignored issues
show
Documentation Bug introduced by
It seems like $body of type string is incompatible with the declared type array of property $body.

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...
34
    }
35
}
36