Skip to content

Commit

Permalink
Use enums instead of constants in logger.php
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Dec 21, 2023
1 parent d00cee6 commit 908419d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/autoload/logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'class' => Monolog\Handler\StreamHandler::class,
'constructor' => [
'stream' => BASE_PATH . '/runtime/logs/hyperf.log',
'level' => Monolog\Logger::INFO,
'level' => Monolog\Level::Info,
],
],
'formatter' => [
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#
# vendor/bin/phpstan analyse app --memory-limit 200M -l 0
#
includes:
# 需要执行 composer require phpstan/phpstan-deprecation-rules --dev
# - vendor/phpstan/phpstan-deprecation-rules/rules.neon
parameters:
reportUnmatchedIgnoredErrors: false
ignoreErrors:
Expand Down

0 comments on commit 908419d

Please sign in to comment.