Lines Matching refs:Exception
7 $result = true && throw new Exception("true && throw");
9 } catch (Exception $e) {
14 $result = false && throw new Exception("false && throw");
16 } catch (Exception $e) {
21 $result = true and throw new Exception("true and throw");
23 } catch (Exception $e) {
28 $result = false and throw new Exception("false and throw");
30 } catch (Exception $e) {
35 $result = true || throw new Exception("true || throw");
37 } catch (Exception $e) {
42 $result = false || throw new Exception("false || throw");
44 } catch (Exception $e) {
49 $result = true or throw new Exception("true or throw");
51 } catch (Exception $e) {
56 $result = false or throw new Exception("false or throw");
58 } catch (Exception $e) {
63 $result = null ?? throw new Exception("null ?? throw");
65 } catch (Exception $e) {
70 $result = "foo" ?? throw new Exception('"foo" ?? throw');
72 } catch (Exception $e) {
77 $result = null ?: throw new Exception("null ?: throw");
79 } catch (Exception $e) {
84 $result = "foo" ?: throw new Exception('"foo" ?: throw');
86 } catch (Exception $e) {
91 $callable = fn() => throw new Exception("fn() => throw");
94 } catch (Exception $e) {
100 $result = throw new Exception();
101 } catch (Exception $e) {}
106 throw new Exception("exception 1"),
107 throw new Exception("exception 2")
109 } catch (Exception $e) {
114 $result = true ? true : throw new Exception("true ? true : throw");
116 } catch (Exception $e) {
121 $result = false ? true : throw new Exception("false ? true : throw");
123 } catch (Exception $e) {
128 throw new Exception() + 1;
134 throw $exception = new Exception('throw $exception = new Exception();');
135 } catch (Exception $e) {}
140 throw $exception ??= new Exception('throw $exception ??= new Exception();');
141 } catch (Exception $e) {}
145 throw null ?? new Exception('throw null ?? new Exception();');
146 } catch (Exception $e) {
170 string(42) "Unsupported operand types: Exception + int"
171 string(35) "throw $exception = new Exception();"
172 string(37) "throw $exception ??= new Exception();"
173 string(30) "throw null ?? new Exception();"