From 913c501cced6c7db5fb96d4baf6cce4b884c65c6 Mon Sep 17 00:00:00 2001 From: Johannes Wachter Date: Thu, 4 Oct 2018 16:57:12 +0200 Subject: [PATCH] added int cast for if condition --- Import/Writer/Writer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Import/Writer/Writer.php b/Import/Writer/Writer.php index 9089106..9b130dc 100644 --- a/Import/Writer/Writer.php +++ b/Import/Writer/Writer.php @@ -113,7 +113,7 @@ private function save(RedirectRouteInterface $entity) */ private function validate(RedirectRouteInterface $entity) { - if ('' === $entity->getTarget() && Response::HTTP_GONE !== $entity->getStatusCode()) { + if ('' === $entity->getTarget() && Response::HTTP_GONE !== (int)$entity->getStatusCode()) { throw new TargetIsEmptyException($entity); }