You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standalone code, or other way to reproduce the problem
With the hhvm.php7.all=1 ini setting
<?php
class MyClass {
function foo() : void { }
}
Related to #7544 - This was filed since I didn't see any issues for this when searching
Expected result
There should be an ini setting which makes void a valid (non-class) type hint in php compatibility mode (In files with the tag <?php)
(Not aware of any settings when looking at ini documentation)
Actual result
Uncaught TypeError: Value returned from method MyClass::foo() must be of type void, null given in test.php:3
The text was updated successfully, but these errors were encountered:
HHVM Version
nightly/all, as of today
Standalone code, or other way to reproduce the problem
With the
hhvm.php7.all=1
ini settingRelated to #7544 - This was filed since I didn't see any issues for this when searching
Expected result
There should be an ini setting which makes
void
a valid (non-class) type hint in php compatibility mode (In files with the tag<?php
)(Not aware of any settings when looking at ini documentation)
Actual result
Uncaught TypeError: Value returned from method MyClass::foo() must be of type void, null given in test.php:3
The text was updated successfully, but these errors were encountered: