Skip to content

Commit 1980ca1

Browse files
[8.x] Logs deprecations instead of treating them as exceptions (laravel#5711)
* Logs deprecations instead of treating them as exceptions * formatting Co-authored-by: Taylor Otwell <taylorotwell@gmail.com>
1 parent 196a275 commit 1980ca1

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ APP_DEBUG=true
55
APP_URL=http://localhost
66

77
LOG_CHANNEL=stack
8+
LOG_DEPRECATIONS_CHANNEL=null
89
LOG_LEVEL=debug
910

1011
DB_CONNECTION=mysql

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"php": "^7.3|^8.0",
99
"fruitcake/laravel-cors": "^2.0",
1010
"guzzlehttp/guzzle": "^7.0.1",
11-
"laravel/framework": "^8.54",
11+
"laravel/framework": "^8.65",
1212
"laravel/sanctum": "^2.11",
1313
"laravel/tinker": "^2.5"
1414
},
@@ -18,7 +18,7 @@
1818
"laravel/sail": "^1.0.1",
1919
"mockery/mockery": "^1.4.4",
2020
"nunomaduro/collision": "^5.10",
21-
"phpunit/phpunit": "^9.5.8"
21+
"phpunit/phpunit": "^9.5.10"
2222
},
2323
"autoload": {
2424
"psr-4": {

config/logging.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@
1919

2020
'default' => env('LOG_CHANNEL', 'stack'),
2121

22+
/*
23+
|--------------------------------------------------------------------------
24+
| Deprecations Log Channel
25+
|--------------------------------------------------------------------------
26+
|
27+
| This option controls the log channel that should be used to log warnings
28+
| regarding deprecated PHP and library features. This allows you to get
29+
| your application ready for upcoming major versions of dependencies.
30+
|
31+
*/
32+
33+
'deprecations' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
34+
2235
/*
2336
|--------------------------------------------------------------------------
2437
| Log Channels

0 commit comments

Comments
 (0)