Skip to content

Commit

Permalink
Merge pull request #422 from mimmi20/updates
Browse files Browse the repository at this point in the history
fix property names
  • Loading branch information
mimmi20 committed Dec 8, 2023
2 parents 12012d2 + 4e344c7 commit acdf54a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Empty file added .noai
Empty file.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
"friendsofphp/php-cs-fixer": "^v3.40.2",
"sirbrillig/phpcs-variable-analysis": "^2.11.17",
"slevomat/coding-standard": "^8.14.1",
"squizlabs/php_codesniffer": "^3.7.2"
"squizlabs/php_codesniffer": "^3.8.0"
},
"require-dev": {
"phpstan/extension-installer": "^1.3.1",
"phpstan/phpstan": "^1.10.47",
"phpstan/phpstan": "^1.10.48",
"phpstan/phpstan-deprecation-rules": "^1.1.4"
},
"minimum-stability": "stable",
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ parameters:
# reports properties with native types that weren’t initialized in the class constructor
checkUninitializedProperties: true

# reports missing #[\Override] attribute
checkMissingOverrideMethodAttribute: true

# doesn’t require typehints for properties if the types can be inferred from constructor injection
inferPrivatePropertyTypeFromConstructor: false

Expand Down
8 changes: 4 additions & 4 deletions src/Mimmi20CodingStandard/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -816,16 +816,16 @@
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property
name="newlinesCountBetweenOpenTagAndDeclare"
value="2"
name="linesCountBeforeDeclare"
value="1"
/>
<property
name="spacesCountAroundEqualsSign"
value="1"
/>
<property
name="newlinesCountAfterDeclare"
value="2"
name="linesCountAfterDeclare"
value="1"
/>
</properties>
</rule>
Expand Down

0 comments on commit acdf54a

Please sign in to comment.