diff --git a/example/config/beans.php b/example/config/beans.php index 6526f21..2f863c0 100644 --- a/example/config/beans.php +++ b/example/config/beans.php @@ -2,7 +2,7 @@ declare(strict_types=1); -$rootPath = dirname(__DIR__) . '/'; +$rootPath = \dirname(__DIR__) . '/'; return [ 'hotUpdate' => [ diff --git a/example/config/config.php b/example/config/config.php index 767f1ee..90e7b92 100644 --- a/example/config/config.php +++ b/example/config/config.php @@ -134,7 +134,7 @@ [ 'class' => \Monolog\Handler\RotatingFileHandler::class, 'construct' => [ - 'filename' => dirname(__DIR__) . '/.runtime/logs/log.log', + 'filename' => \dirname(__DIR__) . '/.runtime/logs/log.log', ], 'formatter' => [ 'class' => \Monolog\Formatter\LineFormatter::class, diff --git a/tests/bootstrap.php b/tests/bootstrap.php index bd24b4d..66d572b 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -4,8 +4,8 @@ use function Yurun\Swoole\Coroutine\batch; -require dirname(__DIR__, 4) . '/vendor/autoload.php'; -require dirname(__DIR__) . '/vendor/autoload.php'; +require \dirname(__DIR__, 4) . '/vendor/autoload.php'; +require \dirname(__DIR__) . '/vendor/autoload.php'; /** * @return bool @@ -32,7 +32,7 @@ function checkHttpServerStatus() */ function startServer() { - $dirname = dirname(__DIR__); + $dirname = \dirname(__DIR__); $servers = [ 'HttpServer' => [ 'start' => $dirname . '/example/bin/start-server.sh',