@@ -134,7 +134,7 @@ abstract class IntlDateFormatter
134134 * @throws MethodArgumentValueNotImplementedException When $locale different than "en" or null is passed
135135 * @throws MethodArgumentValueNotImplementedException When $calendar different than GREGORIAN is passed
136136 */
137- public function __construct (?string $ locale , ?int $ datetype , ?int $ timetype , $ timezone = null , ?int $ calendar = self ::GREGORIAN , string $ pattern = null )
137+ public function __construct (?string $ locale , ?int $ datetype , ?int $ timetype , $ timezone = null , ?int $ calendar = self ::GREGORIAN , ? string $ pattern = null )
138138 {
139139 if ('en ' !== $ locale && null !== $ locale ) {
140140 throw new MethodArgumentValueNotImplementedException (__METHOD__ , 'locale ' , $ locale , 'Only the locale "en" is supported ' );
@@ -174,7 +174,7 @@ public function __construct(?string $locale, ?int $datetype, ?int $timetype, $ti
174174 * @throws MethodArgumentValueNotImplementedException When $locale different than "en" or null is passed
175175 * @throws MethodArgumentValueNotImplementedException When $calendar different than GREGORIAN is passed
176176 */
177- public static function create (?string $ locale , ?int $ datetype , ?int $ timetype , $ timezone = null , int $ calendar = self ::GREGORIAN , string $ pattern = null )
177+ public static function create (?string $ locale , ?int $ datetype , ?int $ timetype , $ timezone = null , int $ calendar = self ::GREGORIAN , ? string $ pattern = null )
178178 {
179179 return new static ($ locale , $ datetype , $ timetype , $ timezone , $ calendar , $ pattern );
180180 }
@@ -244,7 +244,7 @@ public function format($timestamp)
244244 *
245245 * @throws MethodNotImplementedException
246246 */
247- public static function formatObject (object $ object , $ format = null , string $ locale = null )
247+ public static function formatObject (object $ object , $ format = null , ? string $ locale = null )
248248 {
249249 throw new MethodNotImplementedException (__METHOD__ );
250250 }
@@ -430,7 +430,7 @@ public function localtime(string $value, int &$position = 0)
430430 *
431431 * @throws MethodArgumentNotImplementedException When $position different than null, behavior not implemented
432432 */
433- public function parse (string $ value , int &$ position = null )
433+ public function parse (string $ value , ? int &$ position = null )
434434 {
435435 // We don't calculate the position when parsing the value
436436 if (null !== $ position ) {
0 commit comments