InvalidThrow
A value that does not implement Throwable is thrown.
Example
Section titled “Example”<?phpthrow 'error message'; // string does not implement ThrowableHow to fix
Section titled “How to fix”Throw an instance of Exception or another Throwable class.
<?phpthrow new \RuntimeException('error message');