hhvm
hhvm copied to clipboard
ReflectionClass::implementsInterface claims that interface does not implement itself
<?php
interface Interf {}
var_dump(
(new ReflectionClass('Interf'))->implementsInterface('Interf')
);
// outputs bool(false)
This might be the linguistically reasonable behaviour (interfaces are not implementations of anything), but actually differs from the standard php implementation (where interfaces are analysed as implementing themselves)..
The first fix didn't quite do it. There'll be a better fix in tonight's nightly
FB: updated fix is D1343793