@@ -56,7 +56,7 @@ public function testRejectedPromise()
5656 // This line is unreachable, but it's our control
5757 $ start += 4 ;
5858 } catch (\Exception $ e ) {
59- $ start += $ e ->getMessage ();
59+ $ start += ( int ) $ e ->getMessage ();
6060 }
6161 });
6262
@@ -78,7 +78,7 @@ public function testRejectedPromiseException()
7878 // This line is unreachable, but it's our control
7979 $ start += 4 ;
8080 } catch (\LogicException $ e ) {
81- $ start += $ e ->getMessage ();
81+ $ start += ( int ) $ e ->getMessage ();
8282 }
8383 });
8484
@@ -115,13 +115,13 @@ public function testRejectedPromiseAsync()
115115 // This line is unreachable, but it's our control
116116 $ start += 4 ;
117117 } catch (\Exception $ e ) {
118- $ start += $ e ->getMessage ();
118+ $ start += ( int ) $ e ->getMessage ();
119119 }
120120 });
121121
122122 $ this ->assertEquals (1 , $ start );
123123
124- $ promise ->reject (new \Exception (( string ) 2 ));
124+ $ promise ->reject (new \Exception (' 2 ' ));
125125 Loop \run ();
126126
127127 $ this ->assertEquals (3 , $ start );
@@ -156,7 +156,7 @@ public function testDeepException()
156156
157157 $ this ->assertEquals (1 , $ start );
158158
159- $ promise ->reject (new \Exception (( string ) 2 ));
159+ $ promise ->reject (new \Exception (' 2 ' ));
160160 Loop \run ();
161161
162162 $ this ->assertEquals (3 , $ start );
0 commit comments