This commit is contained in:
Tim Nagel 2015-03-13 19:10:24 +11:00
parent dd3269d1ef
commit 6a07f7b24e
3 changed files with 3 additions and 2 deletions

View file

@ -74,7 +74,7 @@ class RawPaginatorAdapter implements PaginatorAdapterInterface
? (integer) $this->query->getParam('size')
: null;
if ($size && $size < $offset + $itemCountPerPage) {
if (null !== $size && $size < $offset + $itemCountPerPage) {
$itemCountPerPage = $size - $offset;
}

View file

@ -9,8 +9,8 @@ use Symfony\Component\DependencyInjection\Container;
class ResetCommandTest extends \PHPUnit_Framework_TestCase
{
private $command;
private $resetter;
private $indexManager;
public function setup()

View file

@ -272,6 +272,7 @@ namespace FOS\ElasticaBundle\Tests\Doctrine\Listener;
class Entity
{
private $id;
public $identifier;
/**
* @param integer $id