yii\web\ErrorHandler::isCoreFile PHP Method

isCoreFile() public method

Determines whether given name of the file belongs to the framework.
public isCoreFile ( string $file ) : boolean
$file string name to be checked.
return boolean whether given name of the file belongs to the framework.
    public function isCoreFile($file)
    {
        return $file === null || strpos(realpath($file), YII2_PATH . DIRECTORY_SEPARATOR) === 0;
    }