Skip to content

Commit 32d1493

Browse files
committed
Drop Laravel 9 support
PHP code style fixes by laravel/pint v1.10 with more struct ruleset prepare for v1.0.2 release
1 parent 9469ba9 commit 32d1493

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
- ...
66

7+
## [v1.0.2 (2023-07-17)](https://github.com/onlime/laravel-http-client-global-logger/compare/v1.0.1...v1.0.2)
8+
9+
- Drop Laravel 9 support
10+
- PHP code style fixes by `laravel/pint` v1.10, now using more strict style rules (`laravel` preset).
11+
712
## [v1.0.1 (2023-02-26)](https://github.com/onlime/laravel-http-client-global-logger/compare/v1.0.0...v1.0.1)
813

914
- Drop Laravel 8 / PHP 8.0 support

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
],
2828
"require": {
2929
"php": "^8.1",
30-
"guzzlehttp/guzzle": "^7.5",
31-
"illuminate/http": "^9.0 || ^10.0",
32-
"illuminate/support": "^9.0 || ^10.0",
30+
"guzzlehttp/guzzle": "^7.6",
31+
"illuminate/http": "^10.0",
32+
"illuminate/support": "^10.0",
3333
"monolog/monolog": "^3.0"
3434
},
3535
"require-dev": {
36-
"laravel/framework": "^9.0 || ^10.0",
37-
"laravel/pint": "^1.5"
36+
"laravel/framework": "^10.0",
37+
"laravel/pint": "^1.10"
3838
},
3939
"autoload": {
4040
"psr-4": {

pint.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
{
22
"preset": "laravel",
33
"rules": {
4-
"braces": false,
54
"blank_line_before_statement": false,
6-
"class_definition": false,
75
"binary_operator_spaces": false,
8-
"concat_space": false,
9-
"no_unused_imports": false,
106
"phpdoc_separation": false,
11-
"Laravel/laravel_phpdoc_alignment": false,
127
"modernize_strpos": true
138
},
149
"exclude": [

src/Listeners/LogRequestSending.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function handle(RequestSending $event)
2929
if ($obfuscate) {
3030
foreach (config('http-client-global-logger.obfuscate.body_keys') as $key) {
3131
$message = preg_replace(
32-
'/(?<="' . $key . '":").*(?=")/mU',
32+
'/(?<="'.$key.'":").*(?=")/mU',
3333
config('http-client-global-logger.obfuscate.replacement'),
3434
$message
3535
);

src/Mixins/PendingRequestMixin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class PendingRequestMixin
1414
public function log()
1515
{
1616
/**
17-
* @param string|null $name logger name
17+
* @param string|null $name logger name
1818
* @return $this
1919
*/
2020
return function (string $name = null) {

src/Providers/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ public function boot()
5353
*/
5454
protected function configFileLocation(): string
5555
{
56-
return realpath(__DIR__ . '/../../config/http-client-global-logger.php');
56+
return realpath(__DIR__.'/../../config/http-client-global-logger.php');
5757
}
5858
}

0 commit comments

Comments
 (0)