Skip to content

Commit

Permalink
Merge pull request #10 from BRACKETS-by-TRIAD/laravel-9
Browse files Browse the repository at this point in the history
Laravel 9
  • Loading branch information
strstensky authored Mar 9, 2022
2 parents 437a346 + e3f6c26 commit 15a9a3c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
}
],
"require": {
"php": "^7.2.5|^7.3.0|^8.0",
"illuminate/support": "^6.0|^7.0|^8.0",
"illuminate/http": "^6.0|^7.0|^8.0",
"php": "^8.0.2",
"illuminate/support": "^9.0",
"illuminate/http": "^9.0",
"monolog/monolog": "^1.12|^2.0",
"ext-json": "*"
},
"require-dev": {
"laravel/framework": "6.*|7.*|8.*",
"laravel/framework": "^9.0",
"phpunit/phpunit": "^8.5|^9.0",
"orchestra/testbench": "~4.0|~5.0|~6.0"
"orchestra/testbench": "~7.0"
},
"autoload": {
"classmap": [],
Expand All @@ -45,7 +45,7 @@
]
},
"branch-alias": {
"dev-master": "2.0-dev"
"dev-master": "3.0-dev"
}
}
}
18 changes: 9 additions & 9 deletions src/Loggers/RequestLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct()
* @param array $context
* @return void
*/
public function alert($message, array $context = [])
public function alert(string|\Stringable $message, array $context = []): void
{
$this->monolog->alert($message, $context);
}
Expand All @@ -58,7 +58,7 @@ public function alert($message, array $context = [])
* @param array $context
* @return void
*/
public function critical($message, array $context = [])
public function critical(string|\Stringable $message, array $context = []): void
{
$this->monolog->critical($message, $context);
}
Expand All @@ -70,7 +70,7 @@ public function critical($message, array $context = [])
* @param array $context
* @return void
*/
public function error($message, array $context = [])
public function error(string|\Stringable $message, array $context = []): void
{
$this->monolog->error($message, $context);
}
Expand All @@ -82,7 +82,7 @@ public function error($message, array $context = [])
* @param array $context
* @return void
*/
public function warning($message, array $context = [])
public function warning(string|\Stringable $message, array $context = []): void
{
$this->monolog->warning($message, $context);
}
Expand All @@ -94,7 +94,7 @@ public function warning($message, array $context = [])
* @param array $context
* @return void
*/
public function notice($message, array $context = [])
public function notice(string|\Stringable $message, array $context = []): void
{
$this->monolog->notice($message, $context);
}
Expand All @@ -106,7 +106,7 @@ public function notice($message, array $context = [])
* @param array $context
* @return void
*/
public function info($message, array $context = [])
public function info(string|\Stringable $message, array $context = []): void
{
$this->monolog->info($message, $context);
}
Expand All @@ -118,7 +118,7 @@ public function info($message, array $context = [])
* @param array $context
* @return void
*/
public function debug($message, array $context = [])
public function debug(string|\Stringable $message, array $context = []): void
{
$this->monolog->debug($message, $context);
}
Expand All @@ -131,7 +131,7 @@ public function debug($message, array $context = [])
* @param array $context
* @return void
*/
public function emergency($message, array $context = [])
public function emergency(string|\Stringable $message, array $context = []): void
{
$this->monolog->emergency($message, $context);
}
Expand All @@ -144,7 +144,7 @@ public function emergency($message, array $context = [])
* @param array $context
* @return void
*/
public function log($level, $message, array $context = [])
public function log($level, string|\Stringable $message, array $context = []): void
{
$this->monolog->log($level, $message, $context);
}
Expand Down

0 comments on commit 15a9a3c

Please sign in to comment.