File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 88use Rector \CodingStyle \Rector \Closure \StaticClosureRector ;
99use Rector \CodingStyle \Rector \Property \InlineSimplePropertyAnnotationRector ;
1010use Rector \Config \RectorConfig ;
11+ use Rector \DeadCode \Rector \Cast \RecastingRemovalRector ;
1112use Rector \Php81 \Rector \Array_ \FirstClassCallableRector ;
1213use Rector \Set \ValueObject \LevelSetList ;
1314use Rector \Set \ValueObject \SetList ;
4041 __DIR__ . '/spec ' ,
4142 ],
4243 FirstClassCallableRector::class,
44+ RecastingRemovalRector::class => [
45+ __DIR__ . '/src/Handler/Logging.php ' ,
46+ ],
4347 ]);
4448};
Original file line number Diff line number Diff line change 88use ErrorHeroModule \Handler \Formatter \Json ;
99use ErrorHeroModule \Handler \Writer \Mail ;
1010use ErrorHeroModule \HeroConstant ;
11- use Laminas \Diactoros \Stream ;
1211use Laminas \Http \Header \Cookie ;
1312use Laminas \Http \PhpEnvironment \RemoteAddress ;
1413use Laminas \Http \PhpEnvironment \Request as HttpRequest ;
@@ -91,16 +90,10 @@ private function getRequestData(?RequestInterface $request): array
9190 /** @var ParametersInterface $files*/
9291 $ files = $ request ->getFiles ();
9392
94- $ content = $ request ->getContent ();
95-
96- if ($ content instanceof Stream) {
97- $ content = (string ) $ content ;
98- }
99-
10093 $ queryData = $ query ->toArray ();
10194 $ requestMethod = $ request ->getMethod ();
10295 $ bodyData = $ post ->toArray ();
103- $ rawData = str_replace (PHP_EOL , '' , $ content );
96+ $ rawData = str_replace (PHP_EOL , '' , ( string ) $ request -> getContent () );
10497 $ filesData = $ this ->includeFilesToAttachments
10598 ? $ files ->toArray ()
10699 : [];
You can’t perform that action at this time.
0 commit comments