summaryrefslogtreecommitdiff
path: root/ext/intl/tests/bug77895.phpt
blob: 17a86fd4102282a50a0bb827fdb2f9264b47c3af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #77895: IntlDateFormatter::create fails in strict mode if $locale = null 
--SKIPIF--
<?php if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?>
--FILE--
<?php

declare(strict_types=1);

var_dump(IntlDateFormatter::create(null, IntlDateFormatter::NONE, IntlDateFormatter::NONE));

?>
--EXPECT--
object(IntlDateFormatter)#1 (0) {
}