PHP 8.2.30
Preview: InvalidUrl.php Size: 558 B
/proc/thread-self/root/home/byroehnu/easetack.com/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(mixed $url): static
    {
        $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}`");
    }
}

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
370 B lrw-rw-rw- 2025-02-24 09:20:47
Edit Download
558 B lrw-rw-rw- 2025-02-24 09:20:47
Edit Download
121 B lrw-rw-rw- 2025-02-24 09:20:47
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).