Skip to content

Commit

Permalink
Fix "Warning: A non-numeric value encountered"
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim authored Nov 16, 2018
1 parent 212fe40 commit c195787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Persister/QueuePagerPersister.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function insert(PagerInterface $pager, array $options = array())
$data = JSON::decode($message->getBody());

$errorMessage = $message->getProperty('fos-populate-error', false);
$objectsCount = $message->getProperty('fos-populate-objects-count', false);
$objectsCount = (int) $message->getProperty('fos-populate-objects-count', false);

$pager->setCurrentPage($data['page']);

Expand Down

0 comments on commit c195787

Please sign in to comment.