Skip to content

Commit b30da34

Browse files
phpstan-botclaude
andcommitted
Add assertType for nullsafe modify call in date-format test
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1ab7f52 commit b30da34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/PHPStan/Analyser/nsrt/date-format.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@ function (\DateTimeImmutable $dt, string $s): void {
4646

4747
function (?\DateTimeImmutable $d): void {
4848
assertType('DateTimeImmutable', $d->modify('+1 day'));
49+
assertType('DateTimeImmutable|null', $d?->modify('+1 day'));
4950
};

0 commit comments

Comments
 (0)