From 6246c919253d4c6d4cc9b71daf59500b38a94cc4 Mon Sep 17 00:00:00 2001 From: brainshaker Date: Wed, 3 Jan 2024 22:11:35 +0100 Subject: [PATCH] chore(dependencies): update dev dependencies --- .php-cs-fixer.dist.php | 1 + composer.json | 14 +++++++------- phpstan.neon | 4 ---- src/Service/Visitor.php | 2 +- 4 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 15dd5a0..aa2f9d2 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -55,6 +55,7 @@ 'strict_comparison' => true, 'strict_param' => true, 'trailing_comma_in_multiline' => ['elements' => ['arrays', 'arguments', 'match', 'parameters']], + 'unary_operator_spaces' => ['only_dec_inc' => true], 'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false], ]) ; diff --git a/composer.json b/composer.json index fe435dd..488d060 100644 --- a/composer.json +++ b/composer.json @@ -16,13 +16,13 @@ } ], "require-dev": { - "friendsofphp/php-cs-fixer": "3.35.1", - "phpstan/phpstan": "1.10.39", - "phpstan/phpstan-strict-rules": "1.5.1", - "symplify/phpstan-rules": "12.3.1", - "phpunit/phpunit": "10.4.1", - "symfony/framework-bundle": "6.3.5", - "symfony/yaml": "6.3.3", + "friendsofphp/php-cs-fixer": "3.45.0", + "phpstan/phpstan": "1.10.50", + "phpstan/phpstan-strict-rules": "1.5.2", + "symplify/phpstan-rules": "12.4.3", + "phpunit/phpunit": "10.5.5", + "symfony/framework-bundle": "6.4.2", + "symfony/yaml": "6.4.0", "cweagans/composer-patches": "1.7.3" }, "require": { diff --git a/phpstan.neon b/phpstan.neon index 2964695..c1a87f5 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -18,7 +18,6 @@ rules: - Symplify\PHPStanRules\Rules\CheckClassNamespaceFollowPsr4Rule - Symplify\PHPStanRules\Rules\CheckTypehintCallerTypeRule - Symplify\PHPStanRules\Rules\Complexity\ForbiddenSameNamedNewInstanceRule - - Symplify\PHPStanRules\Rules\Complexity\NoDuplicatedTraitMethodNameRule - Symplify\PHPStanRules\Rules\Domain\RequireAttributeNamespaceRule - Symplify\PHPStanRules\Rules\Domain\RequireExceptionNamespaceRule - Symplify\PHPStanRules\Rules\Enum\RequireUniqueEnumConstantRule @@ -31,17 +30,14 @@ rules: - Symplify\PHPStanRules\Rules\NarrowType\NarrowPublicClassMethodParamTypeByCallerTypeRule - Symplify\PHPStanRules\Rules\NoAbstractMethodRule - Symplify\PHPStanRules\Rules\NoArrayAccessOnObjectRule - - Symplify\PHPStanRules\Rules\NoConstructorInTestRule - Symplify\PHPStanRules\Rules\NoDynamicNameRule - Symplify\PHPStanRules\Rules\NoEmptyClassRule - Symplify\PHPStanRules\Rules\NoInlineStringRegexRule - Symplify\PHPStanRules\Rules\NoIssetOnObjectRule - Symplify\PHPStanRules\Rules\NoMissingDirPathRule - Symplify\PHPStanRules\Rules\NoNullableArrayPropertyRule - - Symplify\PHPStanRules\Rules\NoParentMethodCallOnNoOverrideProcessRule - Symplify\PHPStanRules\Rules\NoReferenceRule - Symplify\PHPStanRules\Rules\NoVoidGetterMethodRule - - Symplify\PHPStanRules\Rules\PHPUnit\NoRightPHPUnitAssertScalarRule - Symplify\PHPStanRules\Rules\PreventParentMethodVisibilityOverrideRule - Symplify\PHPStanRules\Rules\RegexSuffixInRegexConstantRule - Symplify\PHPStanRules\Rules\RequireAttributeNameRule diff --git a/src/Service/Visitor.php b/src/Service/Visitor.php index 54c5497..4538f90 100644 --- a/src/Service/Visitor.php +++ b/src/Service/Visitor.php @@ -250,7 +250,7 @@ private static function getFqcn(ClassLike $node): ?string * @var ?class-string */ return $node->namespacedName - ? implode('\\', $node->namespacedName->parts) + ? implode('\\', $node->namespacedName->getParts()) : $node->name?->name; } }