Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 831db33

Browse files
committed
Merge branch 'hotfix/250'
Close #250
2 parents 700aba1 + fcdc6c5 commit 831db33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Controller/AbstractRestfulController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ public function requestHasContentType(Request $request, $contentType = '')
487487
}
488488

489489
$requestedContentType = $headerContentType->getFieldValue();
490-
if (strstr($requestedContentType, ';')) {
490+
if (false !== strpos($requestedContentType, ';')) {
491491
$headerData = explode(';', $requestedContentType);
492492
$requestedContentType = array_shift($headerData);
493493
}

src/View/Http/InjectTemplateListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ protected function inflectName($name)
170170
*/
171171
protected function deriveControllerClass($controller)
172172
{
173-
if (strstr($controller, '\\')) {
173+
if (false !== strpos($controller, '\\')) {
174174
$controller = substr($controller, strrpos($controller, '\\') + 1);
175175
}
176176

0 commit comments

Comments
 (0)