Skip to content

Commit

Permalink
Merge pull request #12 from placetopay-org/feature/update-php-8.3
Browse files Browse the repository at this point in the history
Feature/update php 8.3
  • Loading branch information
eduarguz authored Nov 19, 2024
2 parents f9651d5 + 24d1e7a commit cf56d24
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/guzzle-logger-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@2.25.1
with:
php-version: 8.2
php-version: '8.3'

- name: 🛠️Install dependencies
run: composer install --no-interaction --prefer-dist --no-progress
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Setup PHP with Xdebug
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.3'
coverage: xdebug

- name: 🧪Run test suite
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.0] - 2024-11-19

### Changed
- Upgrades runtime to php 8.3

## [1.0.1] - 2024-03-26

### Changed
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
],
"require": {
"php": "^8.2",
"php": "^8.3",
"ext-json": "*",
"guzzlehttp/guzzle": "^7.7",
"psr/log": "^3.0"
Expand All @@ -33,7 +33,7 @@
"symfony/var-dumper": "^4.2",
"friendsofphp/php-cs-fixer": "^3.6",
"eduarguz/shift-php-cs": "^3.0",
"rector/rector": "^0.17.0",
"rector/rector": "^1",
"fig/log-test": "^1.1",
"phpstan/phpstan": "^1.10"
},
Expand Down
27 changes: 10 additions & 17 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,18 @@
declare(strict_types=1);

use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
use Rector\Set\ValueObject\LevelSetList;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
return RectorConfig::configure()
->withPaths([
__DIR__.'/src',
__DIR__.'/tests',
]);

// define sets of rules
$rectorConfig->sets([
LevelSetList::UP_TO_PHP_82,
]);

$rectorConfig->skip([
JsonThrowOnErrorRector::class,
]);

$rectorConfig->cacheClass(FileCacheStorage::class);
$rectorConfig->cacheDirectory('./.rector-cache');
};
])
->withRules([
InlineConstructorDefaultToPropertyRector::class,
])->withSets([
LevelSetList::UP_TO_PHP_83,
])
->withCache('./.rector-cache', FileCacheStorage::class);
1 change: 1 addition & 0 deletions src/LoggerWithSanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public function __construct(private readonly LoggerInterface $logger, private re
//
}

#[\Override]
public function log($level, \Stringable|string $message, array $context = []): void
{
if (! empty($this->fieldsToSanitize)) {
Expand Down
1 change: 1 addition & 0 deletions tests/Unit/HttpLogMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class HttpLogMiddlewareTest extends TestCase

private TestLogger $logger;

#[\Override]
public function setUp(): void
{
parent::setUp();
Expand Down

0 comments on commit cf56d24

Please sign in to comment.