hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

ReflectionClass::implementsInterface claims that interface does not implement itself

Open hanneskod opened this issue 12 years ago • 2 comments

<?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)..

hanneskod avatar May 21 '14 09:05 hanneskod

The first fix didn't quite do it. There'll be a better fix in tonight's nightly

elgenie avatar May 22 '14 22:05 elgenie

FB: updated fix is D1343793

fredemmott avatar May 23 '14 23:05 fredemmott