From 3a596f34f862150a96cc82985e71c39b7244238d Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 20 Sep 2021 01:21:18 +0800 Subject: [PATCH] 111 --- function.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/function.php b/function.php index 4a61b725..dbec714a 100644 --- a/function.php +++ b/function.php @@ -88,9 +88,9 @@ if (!function_exists('is_enable_file_modification_listening')) { /** * @return bool */ - function is_enable_file_modification_listening(): bool + #[Pure] function is_enable_file_modification_listening(): bool { - return env('enable_file_modification_listening', 'off') == 'off'; + return env('enable_file_modification_listening', 'off') == 'on'; } @@ -158,7 +158,6 @@ if (!function_exists('scan_directory')) { * @param $dir * @param $namespace * @param array $exclude - * @throws NotFindClassException * @throws ReflectionException * @throws Exception */ @@ -179,7 +178,6 @@ if (!function_exists('injectRuntime')) { /** * @param string $path * @param array $exclude - * @throws NotFindClassException * @throws ReflectionException * @throws Exception */