By jan.fetalvero on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
main
Introduced in version:
12.0.0
Issue links:
Description:
The visibility of DateTimePlus::checkArray() has been changed from public static to protected static. If you were calling DateTimePlus::checkArray() directly in your code, you should update your code to use DateTimePlus::createFromArray() instead, which handles validation internally.
Before:
$isDateArray = DateTimePlus::checkArray($array)
After:
try {
$dateTimePlus = DateTimePlus::createFromArray($array)
}
catch (\InvalidArgumentException $e) {
// Do something if the array is invalid.
}
Impacts:
Module developers