vendor and env first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Spatie\QueryBuilder\Exceptions;
|
||||
|
||||
use InvalidArgumentException;
|
||||
|
||||
class InvalidSubject extends InvalidArgumentException
|
||||
{
|
||||
public static function make($subject)
|
||||
{
|
||||
return new static(
|
||||
sprintf(
|
||||
'Subject %s is invalid.',
|
||||
is_object($subject)
|
||||
? sprintf('class `%s`', get_class($subject))
|
||||
: sprintf('type `%s`', gettype($subject))
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user