Skip to content

Commit

Permalink
Update phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Nov 7, 2021
1 parent 4e2483e commit 9034d33
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
13 changes: 6 additions & 7 deletions composer.json
Expand Up @@ -22,14 +22,13 @@
"require-dev": {
"nette/tester": "2.4.1",
"mockery/mockery": "1.4.4",
"phpstan/phpstan": "0.12.99",
"phpstan/phpstan-strict-rules": "0.12.11",
"pepakriz/phpstan-exception-rules": "0.11.7",
"nepada/phpstan-nette-tester": "0.3.2",
"spaze/phpstan-disallowed-calls": "1.11.0",
"phpstan/phpstan-mockery": "0.12.14",
"phpstan/phpstan": "1.1.1",
"phpstan/phpstan-strict-rules": "1.0.0",
"nepada/phpstan-nette-tester": "0.4.0",
"spaze/phpstan-disallowed-calls": "2.0.0",
"phpstan/phpstan-mockery": "1.0.0",
"php-parallel-lint/php-parallel-lint": "1.3.1",
"nepada/coding-standard": "7.4.0",
"nepada/coding-standard": "7.4.1",
"giggsey/libphonenumber-for-php": ">=8.12.34"
},
"autoload": {
Expand Down
9 changes: 6 additions & 3 deletions phpstan.neon.dist
@@ -1,6 +1,5 @@
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/pepakriz/phpstan-exception-rules/extension.neon
- vendor/spaze/phpstan-disallowed-calls/extension.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-dangerous-calls.neon
- tests/PHPStan/disallowedCalls.neon
Expand All @@ -10,8 +9,12 @@ parameters:
paths:
- src

exceptionRules:
uncheckedExceptions:
exceptions:
implicitThrows: false
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
uncheckedExceptionClasses:
- LogicException
- Doctrine\DBAL\Types\ConversionException
- Nette\InvalidStateException
Expand Down
2 changes: 1 addition & 1 deletion phpstan.tests.neon.dist
Expand Up @@ -15,7 +15,7 @@ parameters:
- php
- phpt

excludes_analyse:
excludePaths:
- tests/temp/*

ignoreErrors:
Expand Down
4 changes: 2 additions & 2 deletions tests/PhoneNumberDoctrine/PhoneNumberTypeTest.phpt
Expand Up @@ -73,7 +73,7 @@ class PhoneNumberTypeTest extends TestCase

/**
* @dataProvider getDataForConvertToDatabaseValue
* @param mixed $value
* @param PhoneNumber|string|null $value
* @param string|null $expected
*/
public function testConvertToDatabaseValueSucceeds($value, ?string $expected): void
Expand Down Expand Up @@ -115,7 +115,7 @@ class PhoneNumberTypeTest extends TestCase

/**
* @dataProvider getDataForConvertToPHPValue
* @param mixed $value
* @param PhoneNumber|string|null $value
* @param PhoneNumber|null $expected
*/
public function testConvertToPHPValueSucceeds($value, ?PhoneNumber $expected): void
Expand Down

0 comments on commit 9034d33

Please sign in to comment.