Skip to content

Commit 082a6b4

Browse files
author
Benoît Ngô
committed
Adding ReturnTypeWillChange to temporary allow no return type on interfaces when using php8.1
1 parent 9ef8b19 commit 082a6b4

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"phake/phake": "@stable",
2323
"phpunit/phpunit": "^5.7"
2424
},
25+
"require": {
26+
"php": ">=8.1"
27+
},
2528
"suggest": {
2629
"pagerfanta/pagerfanta": "For rendering pagination with Pagerfanta"
2730
}

src/Porpaginas/Page.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public function getCurrentLimit();
4141
*
4242
* @return int
4343
*/
44+
#[\ReturnTypeWillChange]
4445
public function count();
4546

4647
/**
@@ -55,5 +56,6 @@ public function totalCount();
5556
*
5657
* @return \Iterator
5758
*/
59+
#[\ReturnTypeWillChange]
5860
public function getIterator();
5961
}

src/Porpaginas/Result.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ public function take($offset, $limit);
3636
3737
* @return int
3838
*/
39+
#[\ReturnTypeWillChange]
3940
public function count();
4041

4142
/**
4243
* Return an iterator over all results of the paginatable.
4344
*
4445
* @return \Iterator
4546
*/
47+
#[\ReturnTypeWillChange]
4648
public function getIterator();
4749
}

0 commit comments

Comments
 (0)