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); }