is_object
brefphp/bref
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is an object
is_object
(
mixed $value
):
bool
$handler
= require
$handlerFile
;
if (! (
is_object
(
$handler
) ||
is_array
(
$handler
))) {
throw new
HandlerNotFound
(
"Handler `
$handlerFile
` must return a function or object handler. See https://bref.sh/docs/runtimes/function.html"
);
}
src/Runtime/FileHandlerLocator.php