File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1414 "php" : " >=5.4.0"
1515 },
1616 "require-dev" : {
17- "nette/tester" : " ~ 1.7.0"
17+ "nette/tester" : " ^ 1.7 || ^2 .0"
1818 },
1919 "suggest" : {
2020 "ext-curl" : " Allows you to use Http\\ CurlClient"
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ public function limit($limit)
5757 /**
5858 * @return void
5959 */
60+ #[\ReturnTypeWillChange]
6061 public function rewind ()
6162 {
6263 $ this ->request = $ this ->firstRequest ;
@@ -68,6 +69,7 @@ public function rewind()
6869 /**
6970 * @return bool
7071 */
72+ #[\ReturnTypeWillChange]
7173 public function valid ()
7274 {
7375 return $ this ->request !== NULL && ($ this ->limit === NULL || $ this ->counter < $ this ->limit );
@@ -77,6 +79,7 @@ public function valid()
7779 /**
7880 * @return Http\Response
7981 */
82+ #[\ReturnTypeWillChange]
8083 public function current ()
8184 {
8285 $ this ->load ();
@@ -87,6 +90,7 @@ public function current()
8790 /**
8891 * @return int
8992 */
93+ #[\ReturnTypeWillChange]
9094 public function key ()
9195 {
9296 return static ::parsePage ($ this ->request ->getUrl ());
@@ -96,11 +100,12 @@ public function key()
96100 /**
97101 * @return void
98102 */
103+ #[\ReturnTypeWillChange]
99104 public function next ()
100105 {
101106 $ this ->load ();
102107
103- if ($ url = static ::parseLink ($ this ->response ->getHeader ('Link ' ), 'next ' )) {
108+ if ($ url = static ::parseLink (( string ) $ this ->response ->getHeader ('Link ' ), 'next ' )) {
104109 $ this ->request = new Http \Request (
105110 $ this ->request ->getMethod (),
106111 $ url ,
You can’t perform that action at this time.
0 commit comments