From 57478fb233e2f26dda7c565644fff7b938629c69 Mon Sep 17 00:00:00 2001 From: Olivier Laviale Date: Thu, 30 Jun 2022 00:33:57 +0200 Subject: [PATCH] Add note about DateTime::__construct() breaking change --- MIGRATION.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MIGRATION.md b/MIGRATION.md index c4b5adf..403610e 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -12,7 +12,8 @@ None ### Backward Incompatible Changes -None +- `DateTime::__construct()` no longer accepts `DateTimeInterface` instances, only string, just like + PHP's `DateTime`. Use `::from()` instead. ### Deprecated Features