mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed deprecation notice in PHP 8.1: IteratorAggregate
This commit is contained in:
parent
e78874b3e3
commit
bd3aac5001
2 changed files with 2 additions and 2 deletions
|
@ -513,7 +513,7 @@ class ModelValidator implements ArrayAccess, IteratorAggregate, Countable {
|
|||
*
|
||||
* @return ArrayIterator
|
||||
*/
|
||||
public function getIterator() {
|
||||
public function getIterator() : Traversable {
|
||||
$this->_parseRules();
|
||||
return new ArrayIterator($this->_fields);
|
||||
}
|
||||
|
|
|
@ -354,7 +354,7 @@ class CakeValidationSet implements ArrayAccess, IteratorAggregate, Countable {
|
|||
*
|
||||
* @return ArrayIterator
|
||||
*/
|
||||
public function getIterator() {
|
||||
public function getIterator() : Traversable {
|
||||
return new ArrayIterator($this->_rules);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue