forward_static_call

Supported Versions: PHP 5 >= 5.3.0, PHP 7, PHP 8
Call a static method
<?php forward_static_call(callable $callback, mixed ...$args): mixed
<?php             $method = 'boot'.class_basename($trait);



            if (method_exists($class, $method) && ! in_array($method, $booted)) {

                forward_static_call([$class, $method]);



                $booted[] = $method;

            }