Skip to content

Commit

Permalink
added int cast for if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
wachterjohannes committed Oct 4, 2018
1 parent e702686 commit 913c501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Import/Writer/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 913c501

Please sign in to comment.