Skip to content

Commit e7a7968

Browse files
committed
Update static-method-call-statement-no-side-effects.php
1 parent 34a1fcf commit e7a7968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/PHPStan/Rules/Methods/data/static-method-call-statement-no-side-effects.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Foo
1010
public function doFoo(\DateTimeImmutable $dt)
1111
{
1212
DateTimeImmutable::createFromFormat('Y-m-d', '2019-07-24');
13-
$dt::createFromFormat('Y-m-d', '2019-07-24');
13+
$dt::createFromFormat('Y-m-d', '2019-07-24'); // method might be impure in DateTimeImmutable subclass
1414
}
1515

1616
}

0 commit comments

Comments
 (0)