Skip to content

Commit 7d99d3a

Browse files
committed
Update throw expression test
1 parent 9d02029 commit 7d99d3a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Zend/tests/throw/001.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ try {
148148
}
149149

150150
?>
151-
--EXPECTF--
151+
--EXPECT--
152152
string(13) "true && throw"
153153
bool(false)
154154
string(14) "true and throw"
@@ -167,9 +167,7 @@ string(3) "bar"
167167
string(11) "exception 1"
168168
bool(true)
169169
string(20) "false ? true : throw"
170-
171-
Notice: Object of class Exception could not be converted to number in %s on line %d
172-
string(22) "Can only throw objects"
170+
string(39) "Unsupported operand types: object + int"
173171
string(35) "throw $exception = new Exception();"
174172
string(37) "throw $exception ??= new Exception();"
175173
string(30) "throw null ?? new Exception();"

0 commit comments

Comments
 (0)