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