]> granicus.if.org Git - php/commit
More explicit errors for return; vs return null;
authorNikita Popov <nikic@php.net>
Sat, 4 Jun 2016 11:25:52 +0000 (13:25 +0200)
committerNikita Popov <nikic@php.net>
Sat, 4 Jun 2016 11:27:11 +0000 (13:27 +0200)
commit73b2f791997a254788b1939ca8cef373694f8461
tree1dd5f3f6677ce81c8ea25358b2c43e97946efdd6
parentfe907562ada8929863561b27355e802db4f14a79
More explicit errors for return; vs return null;

Both for "return null" in a void function and "return" in
a nullable return function.
Zend/tests/return_types/void_disallowed1.phpt
Zend/tests/type_declarations/nullable_typed_return_without_value.phpt [new file with mode: 0644]
Zend/zend_compile.c