Issues (38)

src/exception/TinymengException.php (1 issue)

1
<?php
2
namespace tinymeng\uploads\exception;
3
4
use tinymeng\tools\exception\TinymengException as Exception;
5
6
/**
7
 * Class TinymengException
8
 * @package tinymeng\tools\exception
9
 * @Author: TinyMeng <[email protected]>
10
 * @Created: 2020/8/17
11
 */
12
class TinymengException extends Exception
13
{
14
    /**
15
     * @var int
16
     */
17
    private $headers;
18
19
    public function __construct($message = '', \Exception $previous = null, array $headers = [], $code = 0)
20
    {
21
        $this->headers    = $headers;
0 ignored issues
show
Documentation Bug introduced by
It seems like $headers of type array is incompatible with the declared type integer of property $headers.

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...
22
23
        parent::__construct(400,$message,$previous,$headers,$code);
24
    }
25
26
    public function getHeaders()
27
    {
28
        return $this->headers;
29
    }
30
}
31