mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Removed @psalm-immutable
marked from MyDate
extending DateTimeImmutable
`DateTimeImmutable` is not really immutable, therefore this marker was wrong upfront
This commit is contained in:
parent
b4b2bc66c7
commit
dcaf610b0a
@ -264,7 +264,6 @@ class MethodCallTest extends TestCase
|
||||
],
|
||||
'dateTimeImmutableStatic' => [
|
||||
'<?php
|
||||
/** @psalm-immutable */
|
||||
final class MyDate extends DateTimeImmutable {}
|
||||
|
||||
$today = new MyDate();
|
||||
|
Loading…
Reference in New Issue
Block a user