php7 void return type not working?

后端 未结 5 1066
一个人的身影
一个人的身影 2020-12-06 15:48

I have a problem with return types in php7, specially \"void\".

it works with all other types, int, string, null, bool, class objects.

but when i use void it

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-06 16:50

    I've just found the answer here: https://wiki.php.net/rfc/void_return_type

    It will be a feature in PHP 7.1

提交回复
热议问题