Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"license": "MIT",
"require": {
"php": "^8.4",
"webmozart/assert": "^2.0",
"webmozart/assert": "^2.4",
"phpstan/phpstan": "^2.2",
"nette/utils": "^4.1",
"phpstan/phpdoc-parser": "^2.3"
},
"require-dev": {
"nikic/php-parser": "^5.7",
"phpunit/phpunit": "^13.0",
"symfony/framework-bundle": "^6.2",
"illuminate/container": "^11.0",
"symplify/easy-coding-standard": "^13.1",
"phpunit/phpunit": "^13.2",
"symfony/framework-bundle": "^6.4",
"illuminate/container": "^11.51",
"symplify/easy-coding-standard": "^13.2",
"tomasvotruba/class-leak": "^2.1",
"rector/rector": "^2.4",
"phpstan/extension-installer": "^1.4",
Expand Down
8 changes: 7 additions & 1 deletion config/ctor-rules.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
parameters:
# enables NewOverSettersRule, disabled by default
ctor: false
#
# parameters:
# symplify:
# ctor: true
#
# kept flat for backward compatibility, defaults to %symplify.ctor%
ctor: %symplify.ctor%

parametersSchema:
ctor: bool()
Expand Down
6 changes: 4 additions & 2 deletions config/mock-rules.neon
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# PHPUnit mocking rules, enable in your phpstan.neon with:
#
# parameters:
# mocks: true
# symplify:
# mocks: true

parameters:
mocks: false
# kept flat for backward compatibility, defaults to %symplify.mocks%
mocks: %symplify.mocks%

parametersSchema:
mocks: bool()
Expand Down
17 changes: 11 additions & 6 deletions config/phpstan-extensions.neon
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
# return type extensions are disabled by default; enable in your phpstan.neon with:
#
# parameters:
# symfonyReturnType: true
# laravelReturnType: true
# pathStrings: true
# symplify:
# symfonyReturnType: true
# laravelReturnType: true
# pathStrings: true

includes:
- symplify-parameters.neon

parameters:
symfonyReturnType: false
laravelReturnType: false
pathStrings: false
# kept flat for backward compatibility, default to the %symplify.*% nested values
symfonyReturnType: %symplify.symfonyReturnType%
laravelReturnType: %symplify.laravelReturnType%
pathStrings: %symplify.pathStrings%

parametersSchema:
symfonyReturnType: bool()
Expand Down
6 changes: 5 additions & 1 deletion config/services/services.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
includes:
- ../symplify-parameters.neon

parameters:
# related to MaximumIgnoredErrorCountRule
maximumIgnoredErrorCount: 0
# kept flat for backward compatibility, defaults to %symplify.maximumIgnoredErrorCount%
maximumIgnoredErrorCount: %symplify.maximumIgnoredErrorCount%

parametersSchema:
# related to MaximumIgnoredErrorCountRule
Expand Down
31 changes: 31 additions & 0 deletions config/symplify-parameters.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Nested configuration, the clear and preferred way to configure these rules:
#
# parameters:
# symplify:
# mocks: true
# ctor: true
# symfonyReturnType: true
# laravelReturnType: true
# pathStrings: true
# maximumIgnoredErrorCount: 0
#
# The flat parameters (e.g. "mocks: true") are kept for backward compatibility
# and default to their nested "symplify.*" counterpart.
parameters:
symplify:
mocks: false
ctor: false
symfonyReturnType: false
laravelReturnType: false
pathStrings: false
maximumIgnoredErrorCount: 0

parametersSchema:
symplify: structure([
mocks: bool()
ctor: bool()
symfonyReturnType: bool()
laravelReturnType: bool()
pathStrings: bool()
maximumIgnoredErrorCount: int()
])
Loading