Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Zend/tests/type_declarations/callable/callable_004.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--TEST--
callable type#004
--FILE--
<?php

interface Foo {}

class P {
public function test(Foo|callable $foo) {}
}

class C extends P {
public function test(Foo|callable $foo) {}
}

?>
===DONE===
--EXPECT--
===DONE===
2 changes: 0 additions & 2 deletions Zend/zend_inheritance.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,6 @@ static inheritance_status zend_is_class_subtype_of_type(
} else if (fe_ce == zend_ce_closure) {
track_class_dependency(fe_ce, fe_class_name);
return INHERITANCE_SUCCESS;
} else {
return INHERITANCE_ERROR;
}
}

Expand Down