Server : Apache/2.4.58 (Ubuntu) System : Linux yumsem00.cafe24.com 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64 User : root ( 0) PHP Version : 8.2.14 Disable Function : NONE Directory : /var/www/html/php/vendor/thecodingmachine/safe/generated/ |
Upload File : |
<?php namespace Safe; use Safe\Exceptions\ClassobjException; /** * Creates an alias named alias * based on the user defined class original. * The aliased class is exactly the same as the original class. * * @param string $original The original class. * @param string $alias The alias name for the class. * @param bool $autoload Whether to autoload if the original class is not found. * @throws ClassobjException * */ function class_alias(string $original, string $alias, bool $autoload = true): void { error_clear_last(); $result = \class_alias($original, $alias, $autoload); if ($result === false) { throw ClassobjException::createFromPhpError(); } }