Skip to content

Commit 4cbbe6e

Browse files
authored
Merge pull request #5646 from greg0ire/bump-sa-tools
Bump sa tools
2 parents 488f9d2 + 1b51745 commit 4cbbe6e

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242
"require-dev": {
4343
"doctrine/coding-standard": "10.0.0",
4444
"jetbrains/phpstorm-stubs": "2022.2",
45-
"phpstan/phpstan": "1.8.2",
45+
"phpstan/phpstan": "1.8.3",
4646
"phpstan/phpstan-strict-rules": "^1.3",
4747
"phpunit/phpunit": "9.5.24",
4848
"psalm/plugin-phpunit": "0.17.0",
4949
"squizlabs/php_codesniffer": "3.7.1",
5050
"symfony/cache": "^5.4|^6.0",
5151
"symfony/console": "^4.4|^5.4|^6.0",
52-
"vimeo/psalm": "4.26.0"
52+
"vimeo/psalm": "4.27.0"
5353
},
5454
"suggest": {
5555
"symfony/console": "For helpful console commands such as SQL execution and import of files."

phpstan.neon.dist

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ parameters:
2727
-
2828
message: '~^Only booleans are allowed in .*, mixed given~'
2929
paths:
30-
- src/Driver/*/Driver.php
3130
- src/Platforms/*Platform.php
3231
- src/Query/QueryBuilder.php
3332
- src/Schema/*SchemaManager.php
@@ -101,11 +100,6 @@ parameters:
101100
- src/Driver/Mysqli/Exception/InvalidCharset.php
102101
- src/Driver/Mysqli/Exception/StatementError.php
103102

104-
-
105-
message: '~^Unable to resolve the template type T in call to method Doctrine\\DBAL\\Portability\\Converter\:\:compose\(\)$~'
106-
paths:
107-
- src/Portability/Converter.php
108-
109103
# Type check for legacy implementations of the Connection interface
110104
# TODO: remove in 4.0.0
111105
- "~Call to function method_exists\\(\\) with Doctrine\\\\DBAL\\\\Driver\\\\Connection and 'getNativeConnection' will always evaluate to true\\.~"

tests/Functional/Platform/DateExpressionTest.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Doctrine\DBAL\Tests\Functional\Platform;
44

5-
use DateTimeImmutable;
65
use Doctrine\DBAL\Schema\Table;
76
use Doctrine\DBAL\Tests\FunctionalTestCase;
87

@@ -30,21 +29,10 @@ public function testDifference(string $date1, string $date2, int $expected): voi
3029
self::assertEquals($expected, $diff);
3130
}
3231

33-
/** @return string[][]|int[][] */
32+
/** @return array<string, array{string, string, int}> */
3433
public static function differenceProvider(): iterable
3534
{
36-
$date1 = new DateTimeImmutable();
37-
$date2 = new DateTimeImmutable('2018-04-10 10:10:10');
38-
$expected = $date1->modify('midnight')->diff(
39-
$date2->modify('midnight'),
40-
)->days;
41-
4235
return [
43-
'dynamic' => [
44-
$date1->format('Y-m-d H:i:s'),
45-
$date2->format('Y-m-d H:i:s'),
46-
$expected,
47-
],
4836
'same day' => ['2018-04-14 23:59:59', '2018-04-14 00:00:00', 0],
4937
'midnight' => ['2018-04-14 00:00:00', '2018-04-13 23:59:59', 1],
5038
];

0 commit comments

Comments
 (0)