From 35f61fd057283b922eb009b6a33f595a0f5b4c41 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Jan 2024 08:28:54 +0000 Subject: [PATCH 1/2] [PHP]: Update friendsofphp/php-cs-fixer requirement in /vendor-bin/phpcs Updates the requirements on [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) to permit the latest version. - [Release notes](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases) - [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md) - [Commits](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.45.0...v3.46.0) --- updated-dependencies: - dependency-name: friendsofphp/php-cs-fixer dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- vendor-bin/phpcs/composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor-bin/phpcs/composer.json b/vendor-bin/phpcs/composer.json index cd7619e..23622ce 100644 --- a/vendor-bin/phpcs/composer.json +++ b/vendor-bin/phpcs/composer.json @@ -1,6 +1,6 @@ { "require-dev": { - "friendsofphp/php-cs-fixer": "3.45.0", + "friendsofphp/php-cs-fixer": "3.46.0", "serendipity_hq/phpcs-config": "1.2.5" } } From b531cb7a300b06fbb1a8324062c83e6d0ac4d22e Mon Sep 17 00:00:00 2001 From: Aerendir Date: Thu, 4 Jan 2024 11:07:00 +0100 Subject: [PATCH 2/2] Apply fixes. --- .phan/config.php | 4 +++- rector.php | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.phan/config.php b/.phan/config.php index 85662a6..2196411 100644 --- a/.phan/config.php +++ b/.phan/config.php @@ -17,9 +17,11 @@ * after this file is read. */ +use Phan\Issue; + return [ 'target_php_version' => '7.4', - 'minimum_severity' => \Phan\Issue::SEVERITY_LOW, + 'minimum_severity' => Issue::SEVERITY_LOW, // A list of directories that should be parsed for class and // method information. After excluding the directories diff --git a/rector.php b/rector.php index 2df6ead..02c9916 100644 --- a/rector.php +++ b/rector.php @@ -13,6 +13,8 @@ use Rector\Config\RectorConfig; use Rector\Core\ValueObject\PhpVersion; +use Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeFromPropertyTypeRector; +use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector; use SerendipityHQ\Integration\Rector\SerendipityHQ; return static function (RectorConfig $rectorConfig): void { @@ -22,7 +24,7 @@ $rectorConfig->import(SerendipityHQ::SHQ_LIBRARY); $toSkip = SerendipityHQ::buildToSkip(SerendipityHQ::SHQ_LIBRARY_SKIP); - $toSkip[] = \Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector::class; - $toSkip[] = \Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeFromPropertyTypeRector::class; + $toSkip[] = TypedPropertyFromAssignsRector::class; + $toSkip[] = AddParamTypeFromPropertyTypeRector::class; $rectorConfig->skip($toSkip); };