|
|
@@ -128,7 +128,7 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J
|
|
|
}
|
|
|
$url = $path;
|
|
|
if (!empty($parameters)) {
|
|
|
- $url .= '?' . http_build_query($parameters, null, '&');
|
|
|
+ $url .= '?' . http_build_query($parameters, '', '&');
|
|
|
}
|
|
|
return $url . $this->buildFragment();
|
|
|
}
|
|
|
@@ -304,6 +304,7 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J
|
|
|
* @return Traversable An instance of an object implementing <b>Iterator</b> or
|
|
|
* <b>Traversable</b>
|
|
|
*/
|
|
|
+ #[\ReturnTypeWillChange]
|
|
|
public function getIterator()
|
|
|
{
|
|
|
return new ArrayIterator($this->items->all());
|
|
|
@@ -314,6 +315,7 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J
|
|
|
* @param mixed $offset
|
|
|
* @return bool
|
|
|
*/
|
|
|
+ #[\ReturnTypeWillChange]
|
|
|
public function offsetExists($offset)
|
|
|
{
|
|
|
return $this->items->offsetExists($offset);
|
|
|
@@ -324,6 +326,7 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J
|
|
|
* @param mixed $offset
|
|
|
* @return mixed
|
|
|
*/
|
|
|
+ #[\ReturnTypeWillChange]
|
|
|
public function offsetGet($offset)
|
|
|
{
|
|
|
return $this->items->offsetGet($offset);
|
|
|
@@ -334,6 +337,7 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J
|
|
|
* @param mixed $offset
|
|
|
* @param mixed $value
|
|
|
*/
|
|
|
+ #[\ReturnTypeWillChange]
|
|
|
public function offsetSet($offset, $value)
|
|
|
{
|
|
|
$this->items->offsetSet($offset, $value);
|
|
|
@@ -345,6 +349,7 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J
|
|
|
* @return void
|
|
|
* @since 5.0.0
|
|
|
*/
|
|
|
+ #[\ReturnTypeWillChange]
|
|
|
public function offsetUnset($offset)
|
|
|
{
|
|
|
$this->items->offsetUnset($offset);
|
|
|
@@ -353,6 +358,7 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J
|
|
|
/**
|
|
|
* Count elements of an object
|
|
|
*/
|
|
|
+ #[\ReturnTypeWillChange]
|
|
|
public function count()
|
|
|
{
|
|
|
return $this->items->count();
|
|
|
@@ -388,6 +394,7 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J
|
|
|
/**
|
|
|
* Specify data which should be serialized to JSON
|
|
|
*/
|
|
|
+ #[\ReturnTypeWillChange]
|
|
|
public function jsonSerialize()
|
|
|
{
|
|
|
return $this->toArray();
|