@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | |
140 | 140 | private function makeEmptyErrorHandler(): ExceptionHandler |
141 | 141 | { |
142 | - return new class extends ExceptionHandler { |
|
142 | + return new class extends ExceptionHandler{ |
|
143 | 143 | protected function bootBasicHandlers(): void |
144 | 144 | { |
145 | 145 | } |
@@ -154,17 +154,17 @@ discard block |
||
154 | 154 | public static function nonReportableExceptionsDataProvider(): \Traversable |
155 | 155 | { |
156 | 156 | yield [new BadRequestException()]; |
157 | - yield [new class extends BadRequestException {}]; |
|
157 | + yield [new class extends BadRequestException{}]; |
|
158 | 158 | yield [new NotFoundException()]; |
159 | - yield [new class extends NotFoundException {}]; |
|
159 | + yield [new class extends NotFoundException{}]; |
|
160 | 160 | yield [new ForbiddenException()]; |
161 | - yield [new class extends ForbiddenException {}]; |
|
161 | + yield [new class extends ForbiddenException{}]; |
|
162 | 162 | yield [new UnauthorizedException()]; |
163 | - yield [new class extends UnauthorizedException {}]; |
|
163 | + yield [new class extends UnauthorizedException{}]; |
|
164 | 164 | yield [new AuthorizationException()]; |
165 | - yield [new class extends AuthorizationException {}]; |
|
165 | + yield [new class extends AuthorizationException{}]; |
|
166 | 166 | yield [new ValidationException([])]; |
167 | - yield [new class([]) extends ValidationException {}]; |
|
167 | + yield [new class([]) extends ValidationException{}]; |
|
168 | 168 | yield [new TestException()]; |
169 | 169 | } |
170 | 170 | } |
@@ -139,7 +139,8 @@ discard block |
||
139 | 139 | |
140 | 140 | private function makeEmptyErrorHandler(): ExceptionHandler |
141 | 141 | { |
142 | - return new class extends ExceptionHandler { |
|
142 | + return new class extends ExceptionHandler |
|
143 | + { |
|
143 | 144 | protected function bootBasicHandlers(): void |
144 | 145 | { |
145 | 146 | } |
@@ -154,17 +155,29 @@ discard block |
||
154 | 155 | public static function nonReportableExceptionsDataProvider(): \Traversable |
155 | 156 | { |
156 | 157 | yield [new BadRequestException()]; |
157 | - yield [new class extends BadRequestException {}]; |
|
158 | + yield [new class extends BadRequestException |
|
159 | + { |
|
160 | +}]; |
|
158 | 161 | yield [new NotFoundException()]; |
159 | - yield [new class extends NotFoundException {}]; |
|
162 | + yield [new class extends NotFoundException |
|
163 | + { |
|
164 | +}]; |
|
160 | 165 | yield [new ForbiddenException()]; |
161 | - yield [new class extends ForbiddenException {}]; |
|
166 | + yield [new class extends ForbiddenException |
|
167 | + { |
|
168 | +}]; |
|
162 | 169 | yield [new UnauthorizedException()]; |
163 | - yield [new class extends UnauthorizedException {}]; |
|
170 | + yield [new class extends UnauthorizedException |
|
171 | + { |
|
172 | +}]; |
|
164 | 173 | yield [new AuthorizationException()]; |
165 | - yield [new class extends AuthorizationException {}]; |
|
174 | + yield [new class extends AuthorizationException |
|
175 | + { |
|
176 | +}]; |
|
166 | 177 | yield [new ValidationException([])]; |
167 | - yield [new class([]) extends ValidationException {}]; |
|
178 | + yield [new class([]) extends ValidationException |
|
179 | + { |
|
180 | +}]; |
|
168 | 181 | yield [new TestException()]; |
169 | 182 | } |
170 | 183 | } |