BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
app.imagivibe.com
/
vendor
/
spatie
/
crawler
/
src
/
Exceptions
📤 Upload
📝 New File
📁 New Folder
Close
Editing: 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}`"); } }
Save
Cancel