Skip to content

Make the type hinting error message slightly clearer when a class is expected. #442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Zend/tests/bug33996.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ FooTest(new Foo());
--EXPECTF--
Warning: Missing argument 1 for NormalTest(), called in %sbug33996.php on line %d and defined in %sbug33996.php on line %d
Hi!
Catchable fatal error: Argument 1 passed to FooTest() must be an instance of Foo, none given, called in %sbug33996.php on line %d and defined in %sbug33996.php on line %d
Catchable fatal error: Argument 1 passed to FooTest() must be an instance of the class Foo, none given, called in %sbug33996.php on line %d and defined in %sbug33996.php on line %d
2 changes: 1 addition & 1 deletion Zend/tests/bug39003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ test($obj);
echo "Done\n";
?>
--EXPECTF--
Catchable fatal error: Argument 1 passed to test() must be an instance of OtherClassName, instance of ClassName given, called in %s on line %d and defined in %s on line %d
Catchable fatal error: Argument 1 passed to test() must be an instance of the class OtherClassName, instance of ClassName given, called in %s on line %d and defined in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/bug42802.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ ok
ok
ok

Catchable fatal error: Argument 1 passed to foo\test5() must be an instance of bar, instance of foo\bar given, called in %sbug42802.php on line %d and defined in %sbug42802.php on line %d
Catchable fatal error: Argument 1 passed to foo\test5() must be an instance of the class bar, instance of foo\bar given, called in %sbug42802.php on line %d and defined in %sbug42802.php on line %d
2 changes: 1 addition & 1 deletion Zend/tests/bug43332_1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ $foo = new foo;
$foo->bar($foo); // Ok!
$foo->bar(new \stdclass); // Error, ok!
--EXPECTF--
Catchable fatal error: Argument 1 passed to foobar\foo::bar() must be an instance of foobar\foo, instance of stdClass given, called in %sbug43332_1.php on line 10 and defined in %sbug43332_1.php on line 5
Catchable fatal error: Argument 1 passed to foobar\foo::bar() must be an instance of the class foobar\foo, instance of stdClass given, called in %sbug43332_1.php on line 10 and defined in %sbug43332_1.php on line 5
2 changes: 1 addition & 1 deletion Zend/tests/closure_027.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ Notice: Undefined variable: y in %s on line %d
Warning: Missing argument 1 for {closure}(), called in %s on line %d and defined in %s on line %d
NULL

Catchable fatal error: Argument 1 passed to test() must be an instance of Closure, instance of stdClass given, called in %s on line %d and defined in %s on line %d
Catchable fatal error: Argument 1 passed to test() must be an instance of the class Closure, instance of stdClass given, called in %s on line %d and defined in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/objects_022.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ object(bar)#%d (0) {
object(baz)#%d (0) {
}

Catchable fatal error: Argument 1 passed to foo::testFoo() must be an instance of foo, instance of stdClass given, called in %s on line %d and defined in %s on line %d
Catchable fatal error: Argument 1 passed to foo::testFoo() must be an instance of the class foo, instance of stdClass given, called in %s on line %d and defined in %s on line %d
2 changes: 1 addition & 1 deletion Zend/zend_execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ ZEND_API char * zend_verify_arg_class_kind(const zend_arg_info *cur_arg_info, ul
if (*pce && (*pce)->ce_flags & ZEND_ACC_INTERFACE) {
return "implement interface ";
} else {
return "be an instance of ";
return "be an instance of the class ";
}
}

Expand Down
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_add_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ Warning: intlcal_add() expects exactly 3 parameters, 4 given in %s on line %d
Warning: intlcal_add(): intlcal_add: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_add() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_add() must be an instance of the class IntlCalendar, integer given in %s on line %d
4 changes: 2 additions & 2 deletions ext/intl/tests/calendar_before_after_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ bool(false)
error: 2, IntlCalendar::before() expects exactly 1 parameter, 0 given
error: 2, IntlCalendar::before(): intlcal_before/after: bad arguments
bool(false)
error: 4096, Argument 1 passed to IntlCalendar::after() must be an instance of IntlCalendar, integer given
error: 4096, Argument 1 passed to IntlCalendar::after() must be an instance of the class IntlCalendar, integer given
error: 2, IntlCalendar::after() expects parameter 1 to be IntlCalendar, integer given
error: 2, IntlCalendar::after(): intlcal_before/after: bad arguments
bool(false)
error: 4096, Argument 1 passed to IntlCalendar::before() must be an instance of IntlCalendar, integer given
error: 4096, Argument 1 passed to IntlCalendar::before() must be an instance of the class IntlCalendar, integer given
error: 2, IntlCalendar::before() expects parameter 1 to be IntlCalendar, integer given
error: 2, IntlCalendar::before(): intlcal_before/after: bad arguments
bool(false)
Expand Down
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_clear_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ bool(false)
Warning: intlcal_clear(): intlcal_clear: invalid field in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_clear() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_clear() must be an instance of the class IntlCalendar, integer given in %s on line %d
8 changes: 4 additions & 4 deletions ext/intl/tests/calendar_equals_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ var_dump(intlcal_equals(1, $c));
error: 2, IntlCalendar::equals() expects exactly 1 parameter, 0 given
error: 2, IntlCalendar::equals(): intlcal_equals: bad arguments
bool(false)
error: 4096, Argument 1 passed to IntlCalendar::equals() must be an instance of IntlCalendar, instance of stdClass given
error: 4096, Argument 1 passed to IntlCalendar::equals() must be an instance of the class IntlCalendar, instance of stdClass given
error: 2, IntlCalendar::equals() expects parameter 1 to be IntlCalendar, object given
error: 2, IntlCalendar::equals(): intlcal_equals: bad arguments
bool(false)
error: 4096, Argument 1 passed to IntlCalendar::equals() must be an instance of IntlCalendar, integer given
error: 4096, Argument 1 passed to IntlCalendar::equals() must be an instance of the class IntlCalendar, integer given
error: 2, IntlCalendar::equals() expects exactly 1 parameter, 2 given
error: 2, IntlCalendar::equals(): intlcal_equals: bad arguments
bool(false)
error: 4096, Argument 2 passed to intlcal_equals() must be an instance of IntlCalendar, array given
error: 4096, Argument 2 passed to intlcal_equals() must be an instance of the class IntlCalendar, array given
error: 2, intlcal_equals() expects parameter 2 to be IntlCalendar, array given
error: 2, intlcal_equals(): intlcal_equals: bad arguments
bool(false)
error: 4096, Argument 1 passed to intlcal_equals() must be an instance of IntlCalendar, integer given
error: 4096, Argument 1 passed to intlcal_equals() must be an instance of the class IntlCalendar, integer given
error: 2, intlcal_equals() expects parameter 1 to be IntlCalendar, integer given
error: 2, intlcal_equals(): intlcal_equals: bad arguments
bool(false)
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_fieldDifference_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ Warning: intlcal_field_difference() expects exactly 3 parameters, 4 given in %s
Warning: intlcal_field_difference(): intlcal_field_difference: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_field_difference() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_field_difference() must be an instance of the class IntlCalendar, integer given in %s on line %d
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_getDayOfWeekType_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ Warning: intlcal_get_day_of_week_type() expects parameter 2 to be long, string g
Warning: intlcal_get_day_of_week_type(): intlcal_get_day_of_week_type: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_get_day_of_week_type() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_get_day_of_week_type() must be an instance of the class IntlCalendar, integer given in %s on line %d
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_getErrorCode_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Warning: IntlCalendar::getErrorCode() expects exactly 0 parameters, 1 given in %
Warning: IntlCalendar::getErrorCode(): intlcal_get_error_code: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_get_error_code() must be an instance of IntlCalendar, null given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_get_error_code() must be an instance of the class IntlCalendar, null given in %s on line %d
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_getErrorMessage_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Warning: IntlCalendar::getErrorMessage() expects exactly 0 parameters, 1 given i
Warning: IntlCalendar::getErrorMessage(): intlcal_get_error_message: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_get_error_message() must be an instance of IntlCalendar, null given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_get_error_message() must be an instance of the class IntlCalendar, null given in %s on line %d
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Warning: intlcal_get_first_day_of_week() expects exactly 1 parameter, 2 given in
Warning: intlcal_get_first_day_of_week(): intlcal_get_first_day_of_week: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_get_first_day_of_week() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_get_first_day_of_week() must be an instance of the class IntlCalendar, integer given in %s on line %d
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_getLocale_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ Warning: intlcal_get_locale() expects exactly 2 parameters, 1 given in %s on lin
Warning: intlcal_get_locale(): intlcal_get_locale: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_get_locale() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_get_locale() must be an instance of the class IntlCalendar, integer given in %s on line %d
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Warning: intlcal_get_minimal_days_in_first_week() expects exactly 1 parameter, 2
Warning: intlcal_get_minimal_days_in_first_week(): intlcal_get_minimal_days_in_first_week: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_get_minimal_days_in_first_week() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_get_minimal_days_in_first_week() must be an instance of the class IntlCalendar, integer given in %s on line %d
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ Warning: intlcal_get_repeated_wall_time_option() expects exactly 1 parameter, 2
Warning: intlcal_get_repeated_wall_time_option(): intlcal_get_repeated_wall_time_option: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_get_skipped_wall_time_option() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_get_skipped_wall_time_option() must be an instance of the class IntlCalendar, integer given in %s on line %d
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_getTimeZone_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Warning: intlcal_get_time_zone() expects exactly 1 parameter, 2 given in %s on l
Warning: intlcal_get_time_zone(): intlcal_get_time_zone: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_get_time_zone() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_get_time_zone() must be an instance of the class IntlCalendar, integer given in %s on line %d
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_getTime_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ Warning: intlcal_get_time() expects exactly 1 parameter, 2 given in %s on line %
Warning: intlcal_get_time(): intlcal_get_time: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_get_time() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_get_time() must be an instance of the class IntlCalendar, integer given in %s on line %d
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_getType_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Warning: intlcal_get_type() expects exactly 1 parameter, 2 given in %s on line %
Warning: intlcal_get_type(): intlcal_get_type: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_get_type() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_get_type() must be an instance of the class IntlCalendar, integer given in %s on line %d
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_getWeekendTransition_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ Warning: intlcal_get_weekend_transition() expects exactly 2 parameters, 1 given
Warning: intlcal_get_weekend_transition(): intlcal_get_weekend_transition: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_get_weekend_transition() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_get_weekend_transition() must be an instance of the class IntlCalendar, integer given in %s on line %d
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,19 @@ bool(false)

Warning: intlcal_get_minimum(): intlcal_get_minimum: invalid field in %s on line %d
bool(false)
error: 4096, Argument 1 passed to intlcal_get_least_maximum() must be an instance of IntlCalendar, integer given
error: 4096, Argument 1 passed to intlcal_get_least_maximum() must be an instance of the class IntlCalendar, integer given
error: 2, intlcal_get_least_maximum() expects parameter 1 to be IntlCalendar, integer given
error: 2, intlcal_get_least_maximum(): intlcal_get_least_maximum: bad arguments
bool(false)
error: 4096, Argument 1 passed to intlcal_get_maximum() must be an instance of IntlCalendar, integer given
error: 4096, Argument 1 passed to intlcal_get_maximum() must be an instance of the class IntlCalendar, integer given
error: 2, intlcal_get_maximum() expects parameter 1 to be IntlCalendar, integer given
error: 2, intlcal_get_maximum(): intlcal_get_maximum: bad arguments
bool(false)
error: 4096, Argument 1 passed to intlcal_get_greatest_minimum() must be an instance of IntlCalendar, integer given
error: 4096, Argument 1 passed to intlcal_get_greatest_minimum() must be an instance of the class IntlCalendar, integer given
error: 2, intlcal_get_greatest_minimum() expects parameter 1 to be IntlCalendar, integer given
error: 2, intlcal_get_greatest_minimum(): intlcal_get_greatest_minimum: bad arguments
bool(false)
error: 4096, Argument 1 passed to intlcal_get_minimum() must be an instance of IntlCalendar, integer given
error: 4096, Argument 1 passed to intlcal_get_minimum() must be an instance of the class IntlCalendar, integer given
error: 2, intlcal_get_minimum() expects parameter 1 to be IntlCalendar, integer given
error: 2, intlcal_get_minimum(): intlcal_get_minimum: bad arguments
bool(false)
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ bool(false)
error: 2, intlcal_get_actual_minimum() expects parameter 2 to be long, string given
error: 2, intlcal_get_actual_minimum(): intlcal_get_actual_minimum: bad arguments
bool(false)
error: 4096, Argument 1 passed to intlcal_get() must be an instance of IntlCalendar, integer given
error: 4096, Argument 1 passed to intlcal_get() must be an instance of the class IntlCalendar, integer given
error: 2, intlcal_get() expects exactly 2 parameters, 1 given
error: 2, intlcal_get(): intlcal_get: bad arguments
bool(false)
error: 4096, Argument 1 passed to intlcal_get_actual_maximum() must be an instance of IntlCalendar, integer given
error: 4096, Argument 1 passed to intlcal_get_actual_maximum() must be an instance of the class IntlCalendar, integer given
error: 2, intlcal_get_actual_maximum() expects exactly 2 parameters, 1 given
error: 2, intlcal_get_actual_maximum(): intlcal_get_actual_maximum: bad arguments
bool(false)
error: 4096, Argument 1 passed to intlcal_get_actual_minimum() must be an instance of IntlCalendar, integer given
error: 4096, Argument 1 passed to intlcal_get_actual_minimum() must be an instance of the class IntlCalendar, integer given
error: 2, intlcal_get_actual_minimum() expects exactly 2 parameters, 1 given
error: 2, intlcal_get_actual_minimum(): intlcal_get_actual_minimum: bad arguments
bool(false)
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_inDaylightTime_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Warning: intlcal_in_daylight_time() expects exactly 1 parameter, 2 given in %s o
Warning: intlcal_in_daylight_time(): intlcal_in_daylight_time: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_in_daylight_time() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_in_daylight_time() must be an instance of the class IntlCalendar, integer given in %s on line %d
8 changes: 4 additions & 4 deletions ext/intl/tests/calendar_isEquivalentTo_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@ var_dump(intlcal_is_equivalent_to($c, 1));
var_dump(intlcal_is_equivalent_to(1, $c));

--EXPECT--
error: 4096, Argument 1 passed to IntlCalendar::isEquivalentTo() must be an instance of IntlCalendar, integer given
error: 4096, Argument 1 passed to IntlCalendar::isEquivalentTo() must be an instance of the class IntlCalendar, integer given
error: 2, IntlCalendar::isEquivalentTo() expects parameter 1 to be IntlCalendar, integer given
error: 2, IntlCalendar::isEquivalentTo(): intlcal_is_equivalent_to: bad arguments
bool(false)
error: 2, IntlCalendar::isEquivalentTo() expects exactly 1 parameter, 2 given
error: 2, IntlCalendar::isEquivalentTo(): intlcal_is_equivalent_to: bad arguments
bool(false)
error: 4096, Argument 1 passed to IntlCalendar::isEquivalentTo() must be an instance of IntlCalendar, integer given
error: 4096, Argument 1 passed to IntlCalendar::isEquivalentTo() must be an instance of the class IntlCalendar, integer given
error: 2, IntlCalendar::isEquivalentTo() expects parameter 1 to be IntlCalendar, integer given
error: 2, IntlCalendar::isEquivalentTo(): intlcal_is_equivalent_to: bad arguments
bool(false)
error: 2, intlcal_is_equivalent_to() expects exactly 2 parameters, 1 given
error: 2, intlcal_is_equivalent_to(): intlcal_is_equivalent_to: bad arguments
bool(false)
error: 4096, Argument 2 passed to intlcal_is_equivalent_to() must be an instance of IntlCalendar, integer given
error: 4096, Argument 2 passed to intlcal_is_equivalent_to() must be an instance of the class IntlCalendar, integer given
error: 2, intlcal_is_equivalent_to() expects parameter 2 to be IntlCalendar, integer given
error: 2, intlcal_is_equivalent_to(): intlcal_is_equivalent_to: bad arguments
bool(false)
error: 4096, Argument 1 passed to intlcal_is_equivalent_to() must be an instance of IntlCalendar, integer given
error: 4096, Argument 1 passed to intlcal_is_equivalent_to() must be an instance of the class IntlCalendar, integer given
error: 2, intlcal_is_equivalent_to() expects parameter 1 to be IntlCalendar, integer given
error: 2, intlcal_is_equivalent_to(): intlcal_is_equivalent_to: bad arguments
bool(false)
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_isLenient_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Warning: intlcal_is_lenient() expects exactly 1 parameter, 2 given in %s on line
Warning: intlcal_is_lenient(): intlcal_is_lenient: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_is_lenient() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_is_lenient() must be an instance of the class IntlCalendar, integer given in %s on line %d
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_isSet_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ Warning: intlcal_is_set() expects exactly 2 parameters, 1 given in %s on line %d
Warning: intlcal_is_set(): intlcal_is_set: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_is_set() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_is_set() must be an instance of the class IntlCalendar, integer given in %s on line %d
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_isWeekend_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ Warning: intlcal_is_weekend() expects parameter 2 to be double, string given in
Warning: intlcal_is_weekend(): intlcal_is_weekend: bad arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_is_weekend() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_is_weekend() must be an instance of the class IntlCalendar, integer given in %s on line %d
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_roll_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ bool(false)
Warning: intlcal_roll(): intlcal_set: too many arguments in %s on line %d
bool(false)

Catchable fatal error: Argument 1 passed to intlcal_roll() must be an instance of IntlCalendar, integer given in %s on line %d
Catchable fatal error: Argument 1 passed to intlcal_roll() must be an instance of the class IntlCalendar, integer given in %s on line %d
Loading