Skip to content

Commit

Permalink
Psalm 5.16.0 (#6233)
Browse files Browse the repository at this point in the history
Apparently, Psalm's made the stubs of `date_default_timezone_get()` and
`date_default_timezone_set()` a bit stricter. 🤷🏻
  • Loading branch information
derrabus authored Nov 26, 2023
1 parent c3c054f commit 8bc0d9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"squizlabs/php_codesniffer": "3.7.2",
"symfony/cache": "^6.3.8",
"symfony/console": "^5.4|^6.3",
"vimeo/psalm": "5.15.0"
"vimeo/psalm": "5.16.0"
},
"suggest": {
"symfony/console": "For helpful console commands such as SQL execution and import of files."
Expand Down
6 changes: 2 additions & 4 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,8 @@ parameters:
- '~^Method Doctrine\\DBAL\\Driver\\IBMDB2\\Connection\:\:exec\(\) should return int but returns int<0, max>\|false\.$~'
- '~^Method Doctrine\\DBAL\\Driver\\IBMDB2\\Result\:\:rowCount\(\) should return int but returns int<0, max>\|false\.$~'

# TODO
-
message: '~^Property Doctrine\\DBAL\\Platforms\\AbstractPlatform\:\:\$disableTypeComments is never read, only written\.$~'
path: src/Platforms/AbstractPlatform.php
# Required for Psalm compatibility
- '~^Property Doctrine\\DBAL\\Tests\\Types\\BaseDateTypeTestCase\:\:\$currentTimezone \(non-empty-string\) does not accept string\.$~'
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
Expand Down
2 changes: 2 additions & 0 deletions tests/Types/BaseDateTypeTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ abstract class BaseDateTypeTestCase extends TestCase
{
protected AbstractPlatform&MockObject $platform;
protected Type $type;

/** @var non-empty-string */
private string $currentTimezone;

protected function setUp(): void
Expand Down

0 comments on commit 8bc0d9a

Please sign in to comment.