Skip to content

Commit 2c501da

Browse files
Simplify
1 parent cfa69ca commit 2c501da

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

tests/PHPStan/Analyser/nsrt/bug-1452.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66

77
$dateInterval = (new \DateTimeImmutable('now -60 minutes'))->diff(new \DateTimeImmutable('now'));
88

9-
assertType('lowercase-string&non-empty-string&numeric-string&uppercase-string', $dateInterval->format('%a'));
9+
// Could be lowercase-string&non-falsy-string&numeric-string&uppercase-string
10+
assertType('lowercase-string&non-falsy-string', $dateInterval->format('%a'));

tests/PHPStan/Rules/Operators/InvalidBinaryOperationRuleTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -795,13 +795,6 @@ public function testBenevolentUnion(): void
795795
]);
796796
}
797797

798-
public function testBug1452(): void
799-
{
800-
$this->checkImplicitMixed = true;
801-
802-
$this->analyse([__DIR__ . '/data/bug-1452.php'], []);
803-
}
804-
805798
public function testBug7863(): void
806799
{
807800
$this->checkImplicitMixed = true;

tests/PHPStan/Rules/Operators/data/bug-1452.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)