1
0
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:
Marco Pivetta 2022-07-31 18:08:01 +02:00
parent b4b2bc66c7
commit dcaf610b0a

View File

@ -264,7 +264,6 @@ class MethodCallTest extends TestCase
],
'dateTimeImmutableStatic' => [
'<?php
/** @psalm-immutable */
final class MyDate extends DateTimeImmutable {}
$today = new MyDate();