1--TEST-- 2IntlCalendar::getFirstDayOfWeek(): bad arguments 3--INI-- 4date.timezone=Atlantic/Azores 5--SKIPIF-- 6<?php 7if (!extension_loaded('intl')) 8 die('skip intl extension not enabled'); 9--FILE-- 10<?php 11ini_set("intl.error_level", E_WARNING); 12 13var_dump(intlcal_get_first_day_of_week(1)); 14?> 15--EXPECTF-- 16Fatal error: Uncaught TypeError: intlcal_get_first_day_of_week(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d 17Stack trace: 18#0 %s(%d): intlcal_get_first_day_of_week(1) 19#1 {main} 20 thrown in %s on line %d 21