Skip to content

Commit 8bc0d9a

Browse files
authored
Psalm 5.16.0 (#6233)
Apparently, Psalm's made the stubs of `date_default_timezone_get()` and `date_default_timezone_set()` a bit stricter. 🤷🏻
1 parent c3c054f commit 8bc0d9a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"squizlabs/php_codesniffer": "3.7.2",
5050
"symfony/cache": "^6.3.8",
5151
"symfony/console": "^5.4|^6.3",
52-
"vimeo/psalm": "5.15.0"
52+
"vimeo/psalm": "5.16.0"
5353
},
5454
"suggest": {
5555
"symfony/console": "For helpful console commands such as SQL execution and import of files."

phpstan.neon.dist

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,8 @@ parameters:
101101
- '~^Method Doctrine\\DBAL\\Driver\\IBMDB2\\Connection\:\:exec\(\) should return int but returns int<0, max>\|false\.$~'
102102
- '~^Method Doctrine\\DBAL\\Driver\\IBMDB2\\Result\:\:rowCount\(\) should return int but returns int<0, max>\|false\.$~'
103103

104-
# TODO
105-
-
106-
message: '~^Property Doctrine\\DBAL\\Platforms\\AbstractPlatform\:\:\$disableTypeComments is never read, only written\.$~'
107-
path: src/Platforms/AbstractPlatform.php
104+
# Required for Psalm compatibility
105+
- '~^Property Doctrine\\DBAL\\Tests\\Types\\BaseDateTypeTestCase\:\:\$currentTimezone \(non-empty-string\) does not accept string\.$~'
108106
includes:
109107
- vendor/phpstan/phpstan-phpunit/extension.neon
110108
- vendor/phpstan/phpstan-phpunit/rules.neon

tests/Types/BaseDateTypeTestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ abstract class BaseDateTypeTestCase extends TestCase
1919
{
2020
protected AbstractPlatform&MockObject $platform;
2121
protected Type $type;
22+
23+
/** @var non-empty-string */
2224
private string $currentTimezone;
2325

2426
protected function setUp(): void

0 commit comments

Comments
 (0)