Skip to content

Commit a297b6a

Browse files
committed
Update static-method-call-statement-no-side-effects.php
1 parent f7d0e43 commit a297b6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)