Skip to content

Commit

Permalink
chore(dependencies): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Brainshaker95 committed Oct 6, 2023
2 parents 0680ec9 + 5334d78 commit 5506ba0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 36 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ help:
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-20s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)

phpstan: ## runs phpstan
bash -c 'vendor/bin/phpstan analyze --memory-limit=-1 --xdebug ${ARGS}'
bash -c 'vendor/bin/phpstan analyze --memory-limit=-1 ${ARGS}'

phpstan-raw: ## runs phpstan with raw output
bash -c 'vendor/bin/phpstan analyze --memory-limit=-1 --xdebug --error-format=raw ${ARGS}'
bash -c 'vendor/bin/phpstan analyze --memory-limit=-1 --error-format=raw ${ARGS}'

php-cs-fix: ## runs php-cs-fixer fix
bash -c 'vendor/bin/php-cs-fixer fix -v ${ARGS}'
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@
}
],
"require-dev": {
"friendsofphp/php-cs-fixer": "3.16.0",
"phpstan/phpstan": "1.10.14",
"friendsofphp/php-cs-fixer": "3.34.1",
"phpstan/phpstan": "1.10.38",
"phpstan/phpstan-strict-rules": "1.5.1",
"symplify/phpstan-rules": "11.3.2.72",
"phpunit/phpunit": "10.1.2",
"symfony/framework-bundle": "6.2.10",
"symfony/yaml": "6.2.10",
"symplify/phpstan-rules": "12.3.1",
"phpunit/phpunit": "10.4.0",
"symfony/framework-bundle": "6.3.5",
"symfony/yaml": "6.3.3",
"cweagans/composer-patches": "1.7.3"
},
"require": {
"php": ">=8.1",
"ext-json": "*",
"ext-mbstring": "*",
"ext-xml": "*",
"nikic/php-parser": "^4.0",
"nikic/php-parser": "^4.17",
"symfony/config": "^5.0 || ^6.0",
"symfony/console": "^5.0 || ^6.0",
"symfony/dependency-injection": "^5.0 || ^6.0",
Expand All @@ -42,7 +42,7 @@
"symfony/property-access": "^5.0 || ^6.0",
"symfony/serializer": "^5.0 || ^6.0",
"symfony/string": "^5.0 || ^6.0",
"phpstan/phpdoc-parser": "^1.15"
"phpstan/phpdoc-parser": "^1.24"
},
"autoload": {
"psr-4": {
Expand Down
26 changes: 0 additions & 26 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,23 @@ includes:

rules:
- Symplify\PHPStanRules\Rules\BoolishClassMethodPrefixRule
- Symplify\PHPStanRules\Rules\CheckAttributteArgumentClassExistsRule
- Symplify\PHPStanRules\Rules\CheckClassNamespaceFollowPsr4Rule
- Symplify\PHPStanRules\Rules\CheckNotTestsNamespaceOutsideTestsDirectoryRule
- Symplify\PHPStanRules\Rules\CheckTypehintCallerTypeRule
- Symplify\PHPStanRules\Rules\Complexity\ForbiddenSameNamedNewInstanceRule
- Symplify\PHPStanRules\Rules\Complexity\NoDuplicatedTraitMethodNameRule
- Symplify\PHPStanRules\Rules\Domain\ForbiddenAlwaysSetterCallRule
- Symplify\PHPStanRules\Rules\Domain\NoDuplicatedRegexRule
- Symplify\PHPStanRules\Rules\Domain\RequireAttributeNamespaceRule
- Symplify\PHPStanRules\Rules\Domain\RequireExceptionNamespaceRule
- Symplify\PHPStanRules\Rules\Enum\RequireUniqueEnumConstantRule
- Symplify\PHPStanRules\Rules\Explicit\NoGetterAndPropertyRule
- Symplify\PHPStanRules\Rules\Explicit\NoMixedCallableRule
- Symplify\PHPStanRules\Rules\Explicit\NoMixedMethodCallerRule
- Symplify\PHPStanRules\Rules\Explicit\NoMixedPropertyFetcherRule
- Symplify\PHPStanRules\Rules\Explicit\NoRelativeFilePathRule
- Symplify\PHPStanRules\Rules\ForbiddenAnonymousClassRule
- Symplify\PHPStanRules\Rules\ForbiddenExtendOfNonAbstractClassRule
- Symplify\PHPStanRules\Rules\ForbiddenMultipleClassLikeInOneFileRule
- Symplify\PHPStanRules\Rules\ForbiddenNestedCallInAssertMethodCallRule
- Symplify\PHPStanRules\Rules\ForbiddenParamTypeRemovalRule
- Symplify\PHPStanRules\Rules\ForbiddenTestsNamespaceOutsideTestsDirectoryRule
- Symplify\PHPStanRules\Rules\NarrowType\NarrowPublicClassMethodParamTypeByCallerTypeRule
- Symplify\PHPStanRules\Rules\NoAbstractMethodRule
- Symplify\PHPStanRules\Rules\NoArrayAccessOnObjectRule
- Symplify\PHPStanRules\Rules\NoConstructorInTestRule
- Symplify\PHPStanRules\Rules\NoDefaultExceptionRule
- Symplify\PHPStanRules\Rules\NoDynamicNameRule
- Symplify\PHPStanRules\Rules\NoEmptyClassRule
- Symplify\PHPStanRules\Rules\NoInlineStringRegexRule
Expand All @@ -55,31 +45,15 @@ rules:
- Symplify\PHPStanRules\Rules\PreventParentMethodVisibilityOverrideRule
- Symplify\PHPStanRules\Rules\RegexSuffixInRegexConstantRule
- Symplify\PHPStanRules\Rules\RequireAttributeNameRule
- Symplify\PHPStanRules\Rules\RequiredAbstractClassKeywordRule
- Symplify\PHPStanRules\Rules\RequireThisCallOnLocalMethodRule
- Symplify\PHPStanRules\Rules\UppercaseConstantRule
- Symplify\PHPStanRules\Symfony\Rules\PreventDoubleSetParameterRule

services:
- Symplify\PHPStanRules\Symfony\NodeAnalyzer\SymfonyPhpConfigClosureAnalyzer

-
class: Symplify\PHPStanRules\Rules\NoDuplicatedShortClassNameRule
tags: [phpstan.rules.rule]
arguments:
toleratedNestingLevel: 3

-
class: Symplify\PHPStanRules\Rules\PreventDuplicateClassMethodRule
tags: [phpstan.rules.rule]
arguments:
minimumLineCount: 4

# required for "PreventDuplicateClassMethodRule"
-
class: Symplify\PHPStanRules\Collector\ClassMethod\ClassMethodContentCollector
tags: [phpstan.collector]

-
class: Symplify\PHPStanRules\ObjectCalisthenics\Rules\NoShortNameRule
tags: [phpstan.rules.rule]
Expand Down

0 comments on commit 5506ba0

Please sign in to comment.