Skip to content

Commit b00e2f3

Browse files
committed
Simplify test
1 parent 686d2e9 commit b00e2f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/tests/optional_interfaces/type_checks.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ function f2(NonExistantInterface $x) { echo "F2"; }
1515
$c = new TestClass;
1616

1717
f1($c);
18-
f2($c)
18+
f2($c);
1919

2020
?>
2121
--EXPECTF--
2222
F1
2323
Fatal error: Uncaught TypeError: f2(): Argument #1 ($x) must be of type NonExistantInterface, TestClass given, called in %stype_checks.php on line %d and defined in %stype_checks.php:%d
2424
Stack trace:
25-
#0 %stype_checks.php(%d): f2(Object(TestClass))
25+
#0 %s
2626
#1 {main}
2727
thrown in %stype_checks.php on line %d

0 commit comments

Comments
 (0)