Skip to content

Commit d17e17e

Browse files
committed
Fix CI
1 parent 47d5d27 commit d17e17e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

phper-sys/php_wrapper.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,13 @@ phper_zend_begin_arg_with_return_type_info_ex(bool return_reference,
467467
uint32_t typ, bool allow_null) {
468468
#define static
469469
#define const
470+
#if PHP_VERSION_ID >= 70200
470471
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(info, return_reference,
471472
required_num_args, typ, allow_null)
473+
#else
474+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(
475+
info, return_reference, required_num_args, typ, NULL, allow_null)
476+
#endif
472477
ZEND_END_ARG_INFO()
473478
return info[0];
474479
#undef static

tests/integration/src/classes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ fn integrate_stringable(module: &mut Module) {
191191
let mut cls = ClassEntity::new(r"IntegrationTest\FooString");
192192
cls.implements(|| ClassEntry::from_globals("Stringable").unwrap());
193193
cls.add_method("__toString", Visibility::Public, |_this, _: &mut [ZVal]| {
194-
phper::ok(format!("string"))
194+
phper::ok("string")
195195
})
196196
.return_type(ReturnType::by_val(TypeInfo::STRING));
197197
module.add_class(cls);

0 commit comments

Comments
 (0)