This commit is contained in:
2021-11-27 17:45:39 +08:00
parent f26539c41f
commit 9668830ee2
+3 -3
View File
@@ -445,8 +445,6 @@ if (!function_exists('fire')) {
/** /**
* @param object $event * @param object $event
* @throws NotFindClassException
* @throws ReflectionException
*/ */
function fire(object $event) function fire(object $event)
{ {
@@ -541,7 +539,7 @@ if (!function_exists('trim_blank')) {
if (!function_exists('get_file_extension')) { if (!function_exists('get_file_extension')) {
function get_file_extension($filename) function get_file_extension($filename): bool|int|string
{ {
$mime_types = [ $mime_types = [
'txt' => 'text/plain', 'txt' => 'text/plain',
@@ -882,6 +880,7 @@ if (!function_exists('di')) {
/** /**
* @param string $className * @param string $className
* @return mixed * @return mixed
* @throws ReflectionException
*/ */
function di(string $className): mixed function di(string $className): mixed
{ {
@@ -896,6 +895,7 @@ if (!function_exists('duplicate')) {
/** /**
* @param string $className * @param string $className
* @return mixed * @return mixed
* @throws ReflectionException
*/ */
function duplicate(string $className): mixed function duplicate(string $className): mixed
{ {