first commit
This commit is contained in:
14
vendor/spatie/laravel-html/src/Exceptions/InvalidChild.php
vendored
Normal file
14
vendor/spatie/laravel-html/src/Exceptions/InvalidChild.php
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Spatie\Html\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Spatie\Html\HtmlElement;
|
||||
|
||||
class InvalidChild extends Exception
|
||||
{
|
||||
public static function childMustBeAnHtmlElementOrAString()
|
||||
{
|
||||
return new static('The given child should implement `'.HtmlElement::class.'` or be a string');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user