Skip to content

Commit b4a5155

Browse files
committed
its instanceof it seems
1 parent 2240da7 commit b4a5155

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Controller/ExceptionController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function showAction(Request $request, $exception, DebugLoggerInterface $l
6464
*
6565
* @see https://github.com/FriendsOfSymfony/FOSRestBundle/pull/565
6666
*/
67-
if (!$exception instanceOf DebugFlattenException && !$exception instanceOf HttpFlattenException) {
67+
if (!$exception instanceof DebugFlattenException && !$exception instanceof HttpFlattenException) {
6868
throw new \InvalidArgumentException(sprintf(
6969
'ExceptionController::showAction can only accept some exceptions (%s, %s), "%s" given',
7070
"Symfony\Component\HttpKernel\Exception\FlattenException",

EventListener/ViewResponseListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function onKernelView(GetResponseForControllerResultEvent $event)
7575
$configuration = $request->attributes->get('_view');
7676

7777
$view = $event->getControllerResult();
78-
if (!$view instanceOf View) {
78+
if (!$view instanceof View) {
7979
if (!$configuration && !$this->container->getParameter('fos_rest.view_response_listener.force_view')) {
8080
return parent::onKernelView($event);
8181
}

View/ViewHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public function renderTemplate(View $view, $format)
305305
$data = $this->prepareTemplateParameters($view);
306306

307307
$template = $view->getTemplate();
308-
if ($template instanceOf TemplateReference) {
308+
if ($template instanceof TemplateReference) {
309309
if (null === $template->get('format')) {
310310
$template->set('format', $format);
311311
}

0 commit comments

Comments
 (0)