Skip to content

Commit 9323bb9

Browse files
committed
Bugfix.
1 parent aefb654 commit 9323bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jphp-runtime/src/php/runtime/reflection/ClassEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public SignatureResult addMethod(MethodEntity method, String realName) {
318318
SignatureResult addResult = new SignatureResult();
319319
if (method.isAbstract && method.isFinal) {
320320
addResult.add(InvalidMethod.error(InvalidMethod.Kind.FINAL_ABSTRACT, method));
321-
} else if (method.isAbstractable() && !(method.isAbstract || type == Type.INTERFACE || isAbstract)) {
321+
} else if (method.isAbstractable() && !(method.isAbstract || type == Type.INTERFACE || method.clazz.isInterface())) {
322322
addResult.add(InvalidMethod.error(InvalidMethod.Kind.NON_ABSTRACT, method));
323323
} else if (method.isAbstract && !method.isAbstractable()) {
324324
addResult.add(InvalidMethod.error(InvalidMethod.Kind.NON_ABSTRACTABLE, method));

0 commit comments

Comments
 (0)