Dependency Update
Changelogs summary:
- pyrech/composer-changelogs updated from v1.8.0 to v1.8.1 patch
See changes: https://github.com/pyrech/composer-changelogs/compare/v1.8.0...v1.8.1
Release notes: https://github.com/pyrech/composer-changelogs/releases/tag/v1.8.1
- james-heinrich/getid3 updated from dev-master@a440175 to dev-master@1e18087
See changes: a440175...1e18087
- doctrine/inflector updated from 2.0.3 to 2.0.4 patch
See changes: https://github.com/doctrine/inflector/compare/2.0.3...2.0.4
Release notes: https://github.com/doctrine/inflector/releases/tag/2.0.4
- doctrine/common updated from 3.1.2 to 3.2.0 minor
See changes: https://github.com/doctrine/common/compare/3.1.2...3.2.0
Release notes: https://github.com/doctrine/common/releases/tag/3.2.0
- doctrine/orm updated from 2.10.1 to 2.10.2 patch
See changes: https://github.com/doctrine/orm/compare/2.10.1...2.10.2
Release notes: https://github.com/doctrine/orm/releases/tag/2.10.2
- behat/gherkin updated from v4.8.0 to v4.9.0 minor
See changes: https://github.com/Behat/Gherkin/compare/v4.8.0...v4.9.0
Release notes: https://github.com/Behat/Gherkin/releases/tag/v4.9.0
- phpdocumentor/reflection-docblock updated from 5.2.2 to 5.3.0 minor
See changes: https://github.com/phpDocumentor/ReflectionDocBlock/compare/5.2.2...5.3.0
Release notes: https://github.com/phpDocumentor/ReflectionDocBlock/releases/tag/5.3.0
- guzzlehttp/psr7 updated from 1.8.3 to 2.1.0 major
See changes: https://github.com/guzzle/psr7/compare/1.8.3...2.1.0
Release notes: https://github.com/guzzle/psr7/releases/tag/2.1.0
- guzzlehttp/promises updated from 1.5.0 to 1.5.1 patch
See changes: https://github.com/guzzle/promises/compare/1.5.0...1.5.1
Release notes: https://github.com/guzzle/promises/releases/tag/1.5.1
- guzzlehttp/guzzle updated from 7.3.0 to 7.4.0 minor
See changes: https://github.com/guzzle/guzzle/compare/7.3.0...7.4.0
Release notes: https://github.com/guzzle/guzzle/releases/tag/7.4.0
- doctrine/migrations updated from 3.2.1 to 3.3.0 minor
See changes: https://github.com/doctrine/migrations/compare/3.2.1...3.3.0
Release notes: https://github.com/doctrine/migrations/releases/tag/3.3.0
- gettext/gettext updated from v4.8.5 to v4.8.6 patch
See changes: https://github.com/php-gettext/Gettext/compare/v4.8.5...v4.8.6
Release notes: https://github.com/php-gettext/Gettext/releases/tag/v4.8.6
- graham-campbell/guzzle-factory updated from v5.0.0 to v5.0.2 patch
See changes: https://github.com/GrahamCampbell/Guzzle-Factory/compare/v5.0.0...v5.0.2
Release notes: https://github.com/GrahamCampbell/Guzzle-Factory/releases/tag/v5.0.2
- aws/aws-sdk-php updated from 3.198.0 to 3.199.2 minor
See changes: https://github.com/aws/aws-sdk-php/compare/3.198.0...3.199.2
Release notes: https://github.com/aws/aws-sdk-php/releases/tag/3.199.2
- pagerfanta/core updated from v3.3.0 to v3.3.1 patch
See changes: https://github.com/Pagerfanta/core/compare/pagerfanta-packages:v3.3.0...Pagerfanta:v3.3.1
Release notes: https://github.com/Pagerfanta/core/releases/tag/v3.3.1
- pagerfanta/doctrine-collections-adapter updated from v3.3.0 to v3.3.1 patch
See changes: https://github.com/Pagerfanta/doctrine-collections-adapter/compare/pagerfanta-packages:v3.3.0...Pagerfanta:v3.3.1
Release notes: https://github.com/Pagerfanta/doctrine-collections-adapter/releases/tag/v3.3.1
- pagerfanta/doctrine-orm-adapter updated from v3.3.0 to v3.3.1 patch
See changes: https://github.com/Pagerfanta/doctrine-orm-adapter/compare/pagerfanta-packages:v3.3.0...Pagerfanta:v3.3.1
Release notes: https://github.com/Pagerfanta/doctrine-orm-adapter/releases/tag/v3.3.1
- ramsey/collection updated from 1.2.1 to 1.2.2 patch
See changes: https://github.com/ramsey/collection/compare/1.2.1...1.2.2
Release notes: https://github.com/ramsey/collection/releases/tag/1.2.2
- squizlabs/php_codesniffer updated from 3.6.0 to 3.6.1 patch
See changes: https://github.com/squizlabs/PHP_CodeSniffer/compare/3.6.0...3.6.1
Release notes: https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.6.1
- phpstan/phpdoc-parser updated from 0.5.6 to 1.2.0 major
See changes: https://github.com/phpstan/phpdoc-parser/compare/0.5.6...1.2.0
Release notes: https://github.com/phpstan/phpdoc-parser/releases/tag/1.2.0
- slevomat/coding-standard updated from 7.0.15 to 7.0.16 patch
See changes: https://github.com/slevomat/coding-standard/compare/7.0.15...7.0.16
Release notes: https://github.com/slevomat/coding-standard/releases/tag/7.0.16
- egulias/email-validator updated from 3.1.1 to 3.1.2 patch
See changes: https://github.com/egulias/EmailValidator/compare/3.1.1...3.1.2
Release notes: https://github.com/egulias/EmailValidator/releases/tag/3.1.2
- graham-campbell/result-type updated from v1.0.2 to v1.0.3 patch
See changes: https://github.com/GrahamCampbell/Result-Type/compare/v1.0.2...v1.0.3
Release notes: https://github.com/GrahamCampbell/Result-Type/releases/tag/v1.0.3
This commit is contained in:
parent
e77c81528d
commit
943f2bf247
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@ class Paginator implements IteratorAggregate, Countable
|
||||||
{
|
{
|
||||||
protected RouterInterface $router;
|
protected RouterInterface $router;
|
||||||
|
|
||||||
/** @var int The maximum number of records that can be viewed per page for unauthenticated users. */
|
/** @var int<1,max> The maximum number of records that can be viewed per page for unauthenticated users. */
|
||||||
protected int $maxPerPage = 25;
|
protected int $maxPerPage = 25;
|
||||||
|
|
||||||
/** @var bool Whether the current request is from jQuery Bootgrid */
|
/** @var bool Whether the current request is from jQuery Bootgrid */
|
||||||
|
@ -98,11 +98,12 @@ class Paginator implements IteratorAggregate, Countable
|
||||||
$perPage = PHP_INT_MAX;
|
$perPage = PHP_INT_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->paginator->setMaxPerPage(
|
/** @var int<1,max> $maxPerPage */
|
||||||
$this->isAuthenticated
|
$maxPerPage = $this->isAuthenticated
|
||||||
? $perPage
|
? $perPage
|
||||||
: min($perPage, $this->maxPerPage)
|
: min($perPage, $this->maxPerPage);
|
||||||
);
|
|
||||||
|
$this->paginator->setMaxPerPage($maxPerPage);
|
||||||
|
|
||||||
$this->isDisabled = false;
|
$this->isDisabled = false;
|
||||||
}
|
}
|
||||||
|
@ -140,8 +141,11 @@ class Paginator implements IteratorAggregate, Countable
|
||||||
public function write(Response $response): ResponseInterface
|
public function write(Response $response): ResponseInterface
|
||||||
{
|
{
|
||||||
if ($this->isDisabled) {
|
if ($this->isDisabled) {
|
||||||
|
/** @var int<1,max> $maxPerPage */
|
||||||
|
$maxPerPage = PHP_INT_MAX;
|
||||||
|
|
||||||
$this->paginator->setCurrentPage(1);
|
$this->paginator->setCurrentPage(1);
|
||||||
$this->paginator->setMaxPerPage(PHP_INT_MAX);
|
$this->paginator->setMaxPerPage($maxPerPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
$iterator = $this->getIterator();
|
$iterator = $this->getIterator();
|
||||||
|
|
Loading…
Reference in New Issue