@@ -99,7 +99,7 @@ public function testAccessDeniedExceptionFullFledgedAndWithoutAccessDeniedHandle
99
99
$ listener ->onKernelException ($ event );
100
100
101
101
$ this ->assertNull ($ event ->getResponse ());
102
- $ this ->assertSame (null === $ eventException ? $ exception : $ eventException , $ event ->getThrowable ()->getPrevious ());
102
+ $ this ->assertSame ($ eventException ?? $ exception , $ event ->getThrowable ()->getPrevious ());
103
103
}
104
104
105
105
/**
@@ -122,7 +122,7 @@ public function testAccessDeniedExceptionFullFledgedAndWithoutAccessDeniedHandle
122
122
123
123
$ this ->assertEquals ('Unauthorized ' , $ event ->getResponse ()->getContent ());
124
124
$ this ->assertEquals (401 , $ event ->getResponse ()->getStatusCode ());
125
- $ this ->assertSame (null === $ eventException ? $ exception : $ eventException , $ event ->getThrowable ()->getPrevious ());
125
+ $ this ->assertSame ($ eventException ?? $ exception , $ event ->getThrowable ()->getPrevious ());
126
126
}
127
127
128
128
/**
@@ -139,7 +139,7 @@ public function testAccessDeniedExceptionFullFledgedAndWithAccessDeniedHandlerAn
139
139
$ listener ->onKernelException ($ event );
140
140
141
141
$ this ->assertEquals ('error ' , $ event ->getResponse ()->getContent ());
142
- $ this ->assertSame (null === $ eventException ? $ exception : $ eventException , $ event ->getThrowable ()->getPrevious ());
142
+ $ this ->assertSame ($ eventException ?? $ exception , $ event ->getThrowable ()->getPrevious ());
143
143
}
144
144
145
145
/**
@@ -156,7 +156,7 @@ public function testAccessDeniedExceptionNotFullFledged(\Exception $exception, \
156
156
$ listener ->onKernelException ($ event );
157
157
158
158
$ this ->assertEquals ('OK ' , $ event ->getResponse ()->getContent ());
159
- $ this ->assertSame (null === $ eventException ? $ exception : $ eventException , $ event ->getThrowable ()->getPrevious ());
159
+ $ this ->assertSame ($ eventException ?? $ exception , $ event ->getThrowable ()->getPrevious ());
160
160
}
161
161
162
162
public function testLogoutException ()
0 commit comments