The expression return app(self::getFacadeAccessor()) also could return the type Illuminate\Contracts\Foundation\Application which is incompatible with the documented return type AustinHeap\Database\Encryption\EncryptionHelper.
Loading history...
41
}
42
43
/**
44
* Handle dynamic, static calls to the object.
45
*
46
* @param string $method
47
* @param array $args
48
*
49
* @return mixed
50
* @throws \RuntimeException
51
*/
52
23
public static function __callStatic($method, $args)
53
{
54
23
$instance = static::getInstance();
55
56
23
throw_if(! $instance, RuntimeException::class, 'A facade root has not been set.');
57
23
throw_if(! method_exists($instance, $method), RuntimeException::class, 'Method "'.$method.'" does not exist on "'.get_class($instance).'".');