Skip to content

Commit f1ac6a0

Browse files
thirschthePanz
authored andcommitted
PHP 8.1 > a few more ReturnTypeWillChange attributes added
1 parent 1733100 commit f1ac6a0

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

lib/Doctrine/Column.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ public function enumIndex($field, $value)
146146
*
147147
* @return integer
148148
*/
149+
#[\ReturnTypeWillChange]
149150
public function count()
150151
{
151152
return count($this->_definition);
@@ -156,6 +157,7 @@ public function count()
156157
*
157158
* @return ArrayIterator
158159
*/
160+
#[\ReturnTypeWillChange]
159161
public function getIterator()
160162
{
161163
return new ArrayIterator($this->_definition);

lib/Doctrine/Export/Reporter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function pop()
4444
return array_pop($this->messages);
4545
}
4646

47+
#[\ReturnTypeWillChange]
4748
public function getIterator()
4849
{
4950
return new ArrayIterator($this->messages);

lib/Doctrine/Locator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ public function locate($name)
178178
* @see Countable interface
179179
* @return integer the number of resources
180180
*/
181+
#[\ReturnTypeWillChange]
181182
public function count()
182183
{
183184
return count($this->_resources);
@@ -191,6 +192,7 @@ public function count()
191192
* @return ArrayIterator an iterator for iterating through
192193
* all bound resources
193194
*/
195+
#[\ReturnTypeWillChange]
194196
public function getIterator()
195197
{
196198
return new ArrayIterator($this->_resources);

lib/Doctrine/Table/Repository/None.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public function get($oid)
6262
*
6363
* @return integer the number of records this registry has
6464
*/
65+
#[\ReturnTypeWillChange]
6566
public function count()
6667
{
6768
return 0;

0 commit comments

Comments
 (0)