Skip to content

Commit 9877c0f

Browse files
authored
Merge pull request #79 from samsonasik/ensure-string-on-str_replace
Ensure string on str_replace
2 parents aabe0bb + d2a7638 commit 9877c0f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ parameters:
88
- src/Controller/ErrorPreviewController.php
99
- src/Middleware/Routed/Preview/ErrorPreviewAction.php
1010
checkMissingIterableValueType: false
11+
reportUnmatchedIgnoredErrors: false
1112
ignoreErrors:
1213
- '#function set_error_handler expects (callable(int, string, string, int, array): bool)*#'
14+
- '#Invalid type object to throw#'

src/Handler/Logging.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private function getRequestData(RequestInterface $request): array
117117
$query_data = $request->getQuery()->toArray();
118118
$request_method = $request->getMethod();
119119
$body_data = $request->getPost()->toArray();
120-
$raw_data = str_replace(PHP_EOL, '', $request->getContent());
120+
$raw_data = str_replace(PHP_EOL, '', (string) $request->getContent());
121121
$files_data = $this->includeFilesToAttachments
122122
? $request->getFiles()->toArray()
123123
: [];

0 commit comments

Comments
 (0)