Skip to content

Commit 293fbca

Browse files
committed
[BE] Check too wide private property type
1 parent 8cf4281 commit 293fbca

File tree

5 files changed

+2
-10
lines changed

5 files changed

+2
-10
lines changed

changelog-2.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Major new features 🚀
1515
* **Enhancements in handling parameters passed by reference**
1616
* [Learn more on phpstan.org](https://phpstan.org/blog/enhancements-in-handling-parameters-passed-by-reference)
1717
* [#2941](https://github.com/phpstan/phpstan-src/pull/2941), thanks @ljmaskey!
18+
* Check too wide private property type (level 4) (https://github.com/phpstan/phpstan-src/commit/7453f4f75fae3d635063589467842aae29d88b54)
1819
* LogicalXorConstantConditionRule (level 4) (https://github.com/phpstan/phpstan-src/commit/3a12724fd636b1bcf36c22b36e8f765d97150895, https://github.com/phpstan/phpstan-src/commit/3b011f6524254dad0f16840fdcfdbe7421548617), #7539
1920
* Check that each trait is used and analysed at least once (level 4) (https://github.com/phpstan/phpstan-src/commit/c4d05276fb8605d6ac20acbe1cc5df31cd6c10b0)
2021
* Check preg_quote delimiter sanity (level 0) ([#3252](https://github.com/phpstan/phpstan-src/pull/3252)), #11338, thanks @staabm!
@@ -84,7 +85,6 @@ Bleeding edge (TODO move to other sections)
8485
* [#3023](https://github.com/phpstan/phpstan-src/pull/3023), thanks @staabm!
8586
* CallToConstructorStatementWithoutSideEffectsRule - report class with no constructor (https://github.com/phpstan/phpstan-src/commit/b116d25a6e4ba6c09f59af6569d9e6f6fd20aff4)
8687
* Check if required file exists ([#3294](https://github.com/phpstan/phpstan-src/pull/3294)), #3397, thanks @Bellangelo!
87-
* Check too wide private property type (https://github.com/phpstan/phpstan-src/commit/7453f4f75fae3d635063589467842aae29d88b54)
8888
* Check `@param-immediately-invoked-callable` and `@param-later-invoked-callable` (https://github.com/phpstan/phpstan-src/commit/580a6add422f4e34191df9e7a77ba1655e914bda), #10932
8989
* Report useless return values of function calls like `var_export` without `$return=true` ([#3225](https://github.com/phpstan/phpstan-src/pull/3225)), #11320, thanks @staabm!
9090
* Check vprintf/vsprintf arguments against placeholder count ([#3126](https://github.com/phpstan/phpstan-src/pull/3126)), thanks @staabm!

conf/bleedingEdge.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ parameters:
1818
pure: true
1919
uselessReturnValue: true
2020
printfArrayParameters: true
21-
tooWidePropertyType: true
2221
requireFileExists: true

conf/config.level4.neon

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ rules:
1717
- PHPStan\Rules\TooWideTypehints\TooWideFunctionReturnTypehintRule
1818
- PHPStan\Rules\TooWideTypehints\TooWideFunctionParameterOutTypeRule
1919
- PHPStan\Rules\TooWideTypehints\TooWideMethodParameterOutTypeRule
20+
- PHPStan\Rules\TooWideTypehints\TooWidePropertyTypeRule
2021
- PHPStan\Rules\Traits\NotAnalysedTraitRule
2122

2223
conditionalTags:
@@ -44,8 +45,6 @@ conditionalTags:
4445
phpstan.rules.rule: %featureToggles.pure%
4546
PHPStan\Rules\DeadCode\PossiblyPureStaticCallCollector:
4647
phpstan.collector: %featureToggles.pure%
47-
PHPStan\Rules\TooWideTypehints\TooWidePropertyTypeRule:
48-
phpstan.rules.rule: %featureToggles.tooWidePropertyType%
4948

5049
parameters:
5150
checkAdvancedIsset: true
@@ -309,7 +308,3 @@ services:
309308
reportUncheckedExceptionDeadCatch: %exceptions.reportUncheckedExceptionDeadCatch%
310309
tags:
311310
- phpstan.rules.rule
312-
313-
314-
-
315-
class: PHPStan\Rules\TooWideTypehints\TooWidePropertyTypeRule

conf/config.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ parameters:
4141
uselessReturnValue: false
4242
printfArrayParameters: false
4343
requireFileExists: false
44-
tooWidePropertyType: false
4544
fileExtensions:
4645
- php
4746
checkAdvancedIsset: false

conf/parametersSchema.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ parametersSchema:
4646
pure: bool()
4747
uselessReturnValue: bool()
4848
printfArrayParameters: bool()
49-
tooWidePropertyType: bool()
5049
requireFileExists: bool()
5150
])
5251
fileExtensions: listOf(string())

0 commit comments

Comments
 (0)