Lines Matching refs:throw

2 throw expression
7 $result = true && throw new Exception("true && throw");
14 $result = false && throw new Exception("false && throw");
21 $result = true and throw new Exception("true and throw");
28 $result = false and throw new Exception("false and throw");
35 $result = true || throw new Exception("true || throw");
42 $result = false || throw new Exception("false || throw");
49 $result = true or throw new Exception("true or throw");
56 $result = false or throw new Exception("false or throw");
63 $result = null ?? throw new Exception("null ?? throw");
70 $result = "foo" ?? throw new Exception('"foo" ?? throw');
77 $result = null ?: throw new Exception("null ?: throw");
84 $result = "foo" ?: throw new Exception('"foo" ?: throw');
91 $callable = fn() => throw new Exception("fn() => throw");
100 $result = throw new Exception();
106 throw new Exception("exception 1"),
107 throw new Exception("exception 2")
114 $result = true ? true : throw new Exception("true ? true : throw");
121 $result = false ? true : throw new Exception("false ? true : throw");
128 throw new Exception() + 1;
134 throw $exception = new Exception('throw $exception = new Exception();');
140 throw $exception ??= new Exception('throw $exception ??= new Exception();');
145 throw null ?? new Exception('throw null ?? new Exception();');
152 string(13) "true && throw"
154 string(14) "true and throw"
157 string(14) "false || throw"
159 string(14) "false or throw"
160 string(13) "null ?? throw"
162 string(13) "null ?: throw"
165 string(13) "fn() => throw"
169 string(20) "false ? true : throw"
171 string(35) "throw $exception = new Exception();"
172 string(37) "throw $exception ??= new Exception();"
173 string(30) "throw null ?? new Exception();"