Skip to content

Commit

Permalink
Update phpstan config.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobthecow committed Sep 30, 2023
1 parent d546194 commit eda6b89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
8 changes: 1 addition & 7 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ includes:
- vendor-bin/phpstan/ignore.neon

parameters:
# Test on PHP 7.4 (we support 7.0, but PHPStan doesn't)
# Test on PHP 7.4
phpVersion: 70400

# See: https://phpstan.org/user-guide/rule-levels
Expand All @@ -14,14 +14,8 @@ parameters:
excludePaths:
# Signature errors related to wide PHP version support.
# See: https://github.com/bobthecow/psysh/pull/738#issuecomment-1202622730
- src/Readline/Hoa/FileGeneric.php
- src/Readline/Hoa/FileLink.php
- src/Reflection/ReflectionClassConstant.php
- src/Reflection/ReflectionConstant_.php
- src/Reflection/ReflectionLanguageConstruct.php
- src/Reflection/ReflectionNamespace.php
- src/Util/Str.php
- test/TestCase.php
bootstrapFiles:
- vendor-bin/phpstan/bootstrap.php
checkMissingIterableValueType: false
Expand Down
8 changes: 0 additions & 8 deletions vendor-bin/phpstan/baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,3 @@ parameters:
- message: "#^Constructor of class Psy\\\\Readline\\\\Userland has an unused parameter \\$historySize\\.$#"
count: 1
path: ../../src/Readline/Userland.php

# Going away with the next release
- message: "#^Constructor of class Psy\\\\Command\\\\ShowCommand has an unused parameter \\$colorMode\\.$#"
count: 1
path: ../../src/Command/ShowCommand.php
- message: "#^Constructor of class Psy\\\\Command\\\\WhereamiCommand has an unused parameter \\$colorMode\\.$#"
count: 1
path: ../../src/Command/WhereamiCommand.php

0 comments on commit eda6b89

Please sign in to comment.