Skip to content

Commit 90c9245

Browse files
Merge pull request codeinternetapplications#7 from kswzr/feature/update-for-monolog-2-0
Add support for monolog 2.0
2 parents a006429 + a60a147 commit 90c9245

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
}
1919
],
2020
"require": {
21-
"php": ">=7.0.0",
22-
"monolog/monolog": ">=1.23",
23-
"google/cloud": ">=0.50.0"
21+
"php": "^7.2",
22+
"monolog/monolog": "^2.0",
23+
"google/cloud": "^0.50"
2424
},
2525
"autoload": {
2626
"psr-4": {

src/StackdriverHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function __construct($logName, $loggingClientOptions, $loggerOptions = []
6464
* @param array $record
6565
* @return void
6666
*/
67-
protected function write(array $record)
67+
protected function write(array $record): void
6868
{
6969
$options = $this->getOptionsFromRecord($record);
7070

@@ -84,7 +84,7 @@ protected function write(array $record)
8484
* @param array $record by reference
8585
* @return array $options
8686
*/
87-
private function getOptionsFromRecord(array &$record)
87+
private function getOptionsFromRecord(array &$record): array
8888
{
8989
$options = [
9090
'severity' => $record['level_name']

0 commit comments

Comments
 (0)