Skip to content

Commit 29ddf42

Browse files
committed
[BE] Check if required file exists
1 parent b02b79f commit 29ddf42

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

changelog-2.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Major new features 🚀
2727
* Check vprintf/vsprintf arguments against placeholder count (level 0) ([#3126](https://github.com/phpstan/phpstan-src/pull/3126)), thanks @staabm!
2828
* Report useless return values of function calls like `var_export` without `$return=true` (level 0) ([#3225](https://github.com/phpstan/phpstan-src/pull/3225)), #11320, thanks @staabm!
2929
* Rule for `call_user_func()` (level 5) ([#2479](https://github.com/phpstan/phpstan-src/pull/2479)), thanks @staabm!
30+
* Check if required file exists (level 0) ([#3294](https://github.com/phpstan/phpstan-src/pull/3294)), #3397, thanks @Bellangelo!
3031
* ConstantLooseComparisonRule - level 4 (https://github.com/phpstan/phpstan-src/commit/6ebf2361a3c831dd105a815521889428c295dc9f)
3132
* Check array functions which require stringish values (level 5) ([#3132](https://github.com/phpstan/phpstan-src/pull/3132)), #11141, #5848, #3694, #11111, thanks @schlndh!
3233
* Check variance of template types in properties (level 2) ([#2314](https://github.com/phpstan/phpstan-src/pull/2314)), thanks @jiripudil!
@@ -84,7 +85,6 @@ Bleeding edge (TODO move to other sections)
8485
* [#3022](https://github.com/phpstan/phpstan-src/pull/3022), thanks @staabm!
8586
* [#3023](https://github.com/phpstan/phpstan-src/pull/3023), thanks @staabm!
8687
* CallToConstructorStatementWithoutSideEffectsRule - report class with no constructor (https://github.com/phpstan/phpstan-src/commit/b116d25a6e4ba6c09f59af6569d9e6f6fd20aff4)
87-
* Check if required file exists ([#3294](https://github.com/phpstan/phpstan-src/pull/3294)), #3397, thanks @Bellangelo!
8888
* Check `@param-immediately-invoked-callable` and `@param-later-invoked-callable` (https://github.com/phpstan/phpstan-src/commit/580a6add422f4e34191df9e7a77ba1655e914bda), #10932
8989

9090
Improvements 🔧

conf/bleedingEdge.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ parameters:
88
arrayValues: true
99
readOnlyByPhpDoc: true
1010
pure: true
11-
requireFileExists: true

conf/config.level0.neon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ conditionalTags:
88
phpstan.rules.rule: %featureToggles.readOnlyByPhpDoc%
99
PHPStan\Rules\Properties\UninitializedPropertyRule:
1010
phpstan.rules.rule: %checkUninitializedProperties%
11-
PHPStan\Rules\Keywords\RequireFileExistsRule:
12-
phpstan.rules.rule: %featureToggles.requireFileExists%
1311

1412
rules:
1513
- PHPStan\Rules\Api\ApiInstanceofRule
@@ -260,3 +258,5 @@ services:
260258
class: PHPStan\Rules\Keywords\RequireFileExistsRule
261259
arguments:
262260
currentWorkingDirectory: %currentWorkingDirectory%
261+
tags:
262+
- phpstan.rules.rule

conf/config.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ parameters:
2929
readOnlyByPhpDoc: false
3030
stricterFunctionMap: false
3131
pure: false
32-
requireFileExists: false
3332
fileExtensions:
3433
- php
3534
checkAdvancedIsset: false

conf/parametersSchema.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ parametersSchema:
3535
readOnlyByPhpDoc: bool()
3636
stricterFunctionMap: bool()
3737
pure: bool()
38-
requireFileExists: bool()
3938
])
4039
fileExtensions: listOf(string())
4140
checkAdvancedIsset: bool()

0 commit comments

Comments
 (0)