|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2021-11-10 20:59 UTC] cedric dot anne at gmail dot com
[2021-11-11 11:19 UTC] nikic@php.net
-Package: intl
+Package: I18N and L10N related
[2021-11-11 20:59 UTC] cedric dot anne at gmail dot com
[2021-11-12 09:28 UTC] nikic@php.net
-Type: Bug
+Type: Documentation Problem
[2021-11-12 09:28 UTC] nikic@php.net
[2021-11-12 09:42 UTC] nikic@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: nikic
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 11:00:01 2025 UTC |
Description: ------------ According to PHP documentation, arguments $dateType and $timeType of IntlDateFormatter::__construct() should accept null values. On PHP 8.1, when using null values, a deprecation error is triggered: > PHP Deprecated: IntlDateFormatter::__construct(): Passing null to parameter #2 ($dateType) of type int is deprecated Test script: --------------- <?php $formatter = new IntlDateFormatter('de_DE', 'Europe/Berlin', null, null, 'dd-MM'); echo $formatter->format(new DateTime('2012-07-02T22:44:03Z'));