ok

Mini Shell

Direktori : /home2/selectio/www/a1tex.in/vendor/spatie/crawler/src/Exceptions/
Upload File :
Current File : /home2/selectio/www/a1tex.in/vendor/spatie/crawler/src/Exceptions/InvalidUrl.php

<?php

namespace Spatie\Crawler\Exceptions;

use Exception;
use Psr\Http\Message\UriInterface;
use Spatie\Crawler\CrawlUrl;

class InvalidUrl extends Exception
{
    public static function unexpectedType($url)
    {
        $crawlUrlClass = CrawlUrl::class;
        $uriInterfaceClass = UriInterface::class;
        $givenUrlClass = is_object($url) ? get_class($url) : gettype($url);

        return new static("You passed an invalid url of type `{$givenUrlClass}`. This should be either a {$crawlUrlClass} or `{$uriInterfaceClass}`");
    }
}

Zerion Mini Shell 1.0