Skip to content

Commit 8c13847

Browse files
committed
Upgrade to Laravel 8.x
1 parent a84a46c commit 8c13847

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: php
22

33
php:
4-
- 7.2
54
- 7.3
65
- 7.4
76

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Logging and Notifications for Laravel Console Commands.
1717

1818
| Laravel | Console Logger |
1919
| ------- | :-----------------------------------------------------------------------: |
20+
| 8.x | [8.x](https://github.com/dmitry-ivanov/laravel-console-logger/tree/8.x) |
2021
| 7.x | [7.x](https://github.com/dmitry-ivanov/laravel-console-logger/tree/7.x) |
2122
| 6.x | [6.x](https://github.com/dmitry-ivanov/laravel-console-logger/tree/6.x) |
2223
| 5.8.* | [5.8.*](https://github.com/dmitry-ivanov/laravel-console-logger/tree/5.8) |

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@
1212
"email": "[email protected]"
1313
}],
1414
"require": {
15-
"php": "^7.2.5",
15+
"php": "^7.3",
1616
"ext-json": "*",
17-
"illuminate/support": "^7.0",
18-
"illuminate/console": "^7.0",
19-
"illuminated/helper-functions": "^7.0",
17+
"illuminate/console": "^8.0",
18+
"illuminate/support": "^8.0",
19+
"illuminated/helper-functions": "^8.0",
2020
"monolog/monolog": "^2.0",
2121
"psr/http-message": "^1.0",
2222
"psr/log": "^1.0",
23-
"symfony/finder": "^5.0"
23+
"symfony/finder": "^5.1"
2424
},
2525
"require-dev": {
2626
"phpunit/phpunit": "^8.4|^9.0",
2727
"mockery/mockery": "^1.3.1",
28-
"guzzlehttp/guzzle": "^6.3.1|^7.0",
29-
"orchestra/testbench": "^5.0",
30-
"illuminated/testing-tools": "^7.0"
28+
"guzzlehttp/guzzle": "^6.5.5|^7.0.1",
29+
"orchestra/testbench": "^6.0",
30+
"illuminated/testing-tools": "^8.0"
3131
},
3232
"autoload": {
3333
"files": [

src/Loggable/Notifications/EmailChannel/EmailChannel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Illuminated\Console\Loggable\Notifications\EmailChannel;
44

5+
use Illuminate\Support\Str;
56
use Monolog\Handler\DeduplicationHandler;
67
use Monolog\Handler\NativeMailerHandler;
78
use Monolog\Handler\SwiftMailerHandler;
@@ -105,7 +106,7 @@ protected function getEmailNotificationsRecipients()
105106
*/
106107
protected function getEmailNotificationsSubject()
107108
{
108-
$env = str_upper(app()->environment());
109+
$env = Str::upper(app()->environment());
109110
$name = $this->getName();
110111

111112
return "[{$env}] %level_name% in `{$name}` command";

src/Loggable/Notifications/EmailChannel/MonologHtmlFormatter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Illuminated\Console\Loggable\Notifications\EmailChannel;
44

5+
use Illuminate\Support\Str;
56
use Monolog\Formatter\HtmlFormatter;
67

78
class MonologHtmlFormatter extends HtmlFormatter
@@ -113,7 +114,7 @@ protected function composeTitle(array $record)
113114
}
114115

115116
$environment = app()->environment();
116-
$environment = e(str_upper($environment));
117+
$environment = e(Str::upper($environment));
117118
$title .= '<style>.title { padding-bottom: 0 !important; } .subtitle { padding-top: 0 !important; }</style>';
118119
$title .= "<h3 class='subtitle {$levelName}'>This notification has been sent from the `{$environment}` environment!</h3>";
119120

0 commit comments

Comments
 (0)