@@ -134,7 +134,7 @@ abstract class IntlDateFormatter
134
134
* @throws MethodArgumentValueNotImplementedException When $locale different than "en" or null is passed
135
135
* @throws MethodArgumentValueNotImplementedException When $calendar different than GREGORIAN is passed
136
136
*/
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 )
138
138
{
139
139
if ('en ' !== $ locale && null !== $ locale ) {
140
140
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
174
174
* @throws MethodArgumentValueNotImplementedException When $locale different than "en" or null is passed
175
175
* @throws MethodArgumentValueNotImplementedException When $calendar different than GREGORIAN is passed
176
176
*/
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 )
178
178
{
179
179
return new static ($ locale , $ datetype , $ timetype , $ timezone , $ calendar , $ pattern );
180
180
}
@@ -244,7 +244,7 @@ public function format($timestamp)
244
244
*
245
245
* @throws MethodNotImplementedException
246
246
*/
247
- public static function formatObject (object $ object , $ format = null , string $ locale = null )
247
+ public static function formatObject (object $ object , $ format = null , ? string $ locale = null )
248
248
{
249
249
throw new MethodNotImplementedException (__METHOD__ );
250
250
}
@@ -430,7 +430,7 @@ public function localtime(string $value, int &$position = 0)
430
430
*
431
431
* @throws MethodArgumentNotImplementedException When $position different than null, behavior not implemented
432
432
*/
433
- public function parse (string $ value , int &$ position = null )
433
+ public function parse (string $ value , ? int &$ position = null )
434
434
{
435
435
// We don't calculate the position when parsing the value
436
436
if (null !== $ position ) {
0 commit comments