vimeo/psalm

Different results between `DateTime` and `DateTimeImmutable`

Open

#5,220 建立於 2021年2月14日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)PHP (668 fork)batch import
Help wantedbuginternal stubs/callmap

倉庫指標

Star
 (5,369 star)
PR 合併指標
 (平均合併 3天 12小時) (30 天內合併 5 個 PR)

描述

I noticed that DateTime and DateTimeImmutable works different way, but those should work as the same.

I first noticed this with PHP 8 named parameters and DateTimeImmutable usage, and I made fix for that part - https://github.com/vimeo/psalm/pull/5218

But now I'm still seeing different handling on DateTime class - and I cannot find the code where that is done.

https://psalm.dev/r/129b9fce2b https://psalm.dev/r/ee31f26136

貢獻者指南