1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 22:01:48 +01:00
Marco Pivetta 7cd3d49dc4 Removed DateTimeImmutable::modify() from the CallMap: fully covered by stub
Also expanded the return type from `static` to `static|false`, since the
operation can fail (with a warning too), such as in following example:

https://3v4l.org/Xrjlc

```php
<?php

var_dump(
    (new DateTimeImmutable())
        ->modify('potato')
);
```

Produces

```
Warning: DateTimeImmutable::modify(): Failed to parse time string (potato) at position 0 (p): The timezone could not be found in the database in /in/Xrjlc on line 6
bool(false)
```

Ref: 534127d3b2/ext/date/php_date.stub.php (L508-L509)
2022-08-05 12:37:24 +02:00
..
2021-12-29 16:56:09 +01:00
2022-01-03 17:11:03 +01:00
2022-07-25 17:15:28 +03:00
2022-02-23 00:52:53 +02:00
2022-03-04 12:56:30 +01:00