We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d02029 commit 7d99d3aCopy full SHA for 7d99d3a
Zend/tests/throw/001.phpt
@@ -148,7 +148,7 @@ try {
148
}
149
150
?>
151
---EXPECTF--
+--EXPECT--
152
string(13) "true && throw"
153
bool(false)
154
string(14) "true and throw"
@@ -167,9 +167,7 @@ string(3) "bar"
167
string(11) "exception 1"
168
bool(true)
169
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"
+string(39) "Unsupported operand types: object + int"
173
string(35) "throw $exception = new Exception();"
174
string(37) "throw $exception ??= new Exception();"
175
string(30) "throw null ?? new Exception();"
0 commit comments