diff --git a/timecop.stub.php b/timecop.stub.php index 11bbcd0..e32ebaa 100644 --- a/timecop.stub.php +++ b/timecop.stub.php @@ -26,7 +26,7 @@ // Use build/gen_stub.php from PHP 8 source code checkout to create .h contents. -function timecop_freeze(\DateTimeInterface|int $timestamp): true {} -function timecop_travel(\DateTimeInterface|int $timestamp): true {} +function timecop_freeze(\DateTimeInterface|int $timestamp): bool {} +function timecop_travel(\DateTimeInterface|int $timestamp): bool {} function timecop_scale(int $scale): bool {} -function timecop_return(): true {} +function timecop_return(): bool {} diff --git a/timecop_php8_arginfo.h b/timecop_php8_arginfo.h index abf51b6..1b5720c 100644 --- a/timecop_php8_arginfo.h +++ b/timecop_php8_arginfo.h @@ -23,7 +23,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_timecop_freeze, 0, 1, true, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_timecop_freeze, 0, 1, _IS_BOOL, 0) ZEND_ARG_OBJ_TYPE_MASK(0, timestamp, DateTimeInterface, MAY_BE_LONG, NULL) ZEND_END_ARG_INFO() @@ -33,7 +33,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_timecop_scale, 0, 1, _IS_BOOL, 0 ZEND_ARG_TYPE_INFO(0, scale, IS_LONG, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_timecop_return, 0, 0, true, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_timecop_return, 0, 0, _IS_BOOL, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_timecop_time, 0, 0, IS_LONG, 0)