Issues (915)

framework/base/InvalidArgumentException.php (1 issue)

1
<?php
2
3
/**
4
 * @link https://www.yiiframework.com/
5
 * @copyright Copyright (c) 2008 Yii Software LLC
6
 * @license https://www.yiiframework.com/license/
7
 */
8
9
namespace yii\base;
10
11
/**
12
 * InvalidArgumentException represents an exception caused by invalid arguments passed to a method.
13
 *
14
 * @author Qiang Xue <[email protected]>
15
 * @since 2.0.14
16
 */
17
class InvalidArgumentException extends InvalidParamException
0 ignored issues
show
Deprecated Code introduced by
The class yii\base\InvalidParamException has been deprecated: since 2.0.14. Use [[InvalidArgumentException]] instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

17
class InvalidArgumentException extends /** @scrutinizer ignore-deprecated */ InvalidParamException
Loading history...
18
{
19
    /**
20
     * @return string the user-friendly name of this exception
21
     */
22
    public function getName()
23
    {
24
        return 'Invalid Argument';
25
    }
26
}
27