Skip to content

Commit 563917a

Browse files
committed
Fix
1 parent efacb31 commit 563917a

File tree

4 files changed

+21
-13
lines changed

4 files changed

+21
-13
lines changed

spec/Handler/LoggingSpec.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@
111111
$this->errorHeroModuleLocalConfig,
112112
$this->logWritersConfig,
113113
null,
114-
null
114+
null,
115+
true
115116
));
116117

117118
describe('->handleErrorException()', function (): void {

spec/Listener/MvcSpec.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@
334334
$this->config,
335335
$logWritersConfig,
336336
null,
337-
null
337+
null,
338+
true
338339
);
339340

340341
$errorHeroModuleLocalConfig = [

spec/Middleware/MezzioSpec.php

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@
266266
$config,
267267
$this->logWritersConfig,
268268
null,
269-
null
269+
null,
270+
true
270271
);
271272

272273
$handler = Double::instance(['implements' => RequestHandlerInterface::class]);
@@ -294,7 +295,8 @@
294295
$config,
295296
$this->logWritersConfig,
296297
null,
297-
null
298+
null,
299+
true
298300
);
299301

300302
$handler = Double::instance(['implements' => RequestHandlerInterface::class]);
@@ -320,7 +322,8 @@
320322
$config,
321323
$this->logWritersConfig,
322324
null,
323-
null
325+
null,
326+
true
324327
);
325328

326329
$request = $this->request;
@@ -356,7 +359,8 @@
356359
$config,
357360
$this->logWritersConfig,
358361
null,
359-
null
362+
null,
363+
true
360364
);
361365

362366
$request = $this->request;
@@ -392,7 +396,8 @@
392396
$config,
393397
$this->logWritersConfig,
394398
null,
395-
null
399+
null,
400+
true
396401
);
397402

398403
$request = $this->request;
@@ -426,7 +431,8 @@
426431
$config,
427432
$this->logWritersConfig,
428433
null,
429-
null
434+
null,
435+
true
430436
);
431437

432438
$request = $this->request;
@@ -508,7 +514,8 @@
508514
$this->config,
509515
$this->logWritersConfig,
510516
null,
511-
null
517+
null,
518+
true
512519
);
513520

514521
$errorHeroModuleLocalConfig = [
@@ -580,7 +587,8 @@
580587
$this->config,
581588
$this->logWritersConfig,
582589
null,
583-
null
590+
null,
591+
true
584592
);
585593

586594
$errorHeroModuleLocalConfig = [

src/Handler/Logging.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ private function getRequestData(?RequestInterface $request): array
9494
$requestMethod = $request->getMethod();
9595
$bodyData = $post->toArray();
9696
$rawData = str_replace(PHP_EOL, '', (string) $request->getContent());
97-
98-
// CI tweak on Github
99-
$filesData = isset($this->includeFilesToAttachments) && $this->includeFilesToAttachments
97+
$filesData = $this->includeFilesToAttachments
10098
? $files->toArray()
10199
: [];
102100

0 commit comments

Comments
 (0)