Passed
Push — master ( 6046d2...3d03c1 )
by Arjan
39s
created

FileNotFoundException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 3
1
<?php
2
3
namespace  ArjanSchouten\HtmlMinifier\Exception;
4
5
class FileNotFoundException extends \InvalidArgumentException implements ExceptionInterface
6
{
7
    /**
8
     * @param string    $message      Exception message to throw
9
     * @param int       $code         Exception code
10
     * @param Exception $previous     previous exception used for the exception chaining
0 ignored issues
show
Documentation introduced by
Should the type for parameter $previous not be null|\Exception?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
11
     */
12
    public function __construct($message = 'The file does not exists.', $code = 0, \Exception $previous = null)
13
    {
14
        parent::__construct($message, $code, $previous);
15
    }
16
}
17