mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #5 from kamilwylegala/2-iterator-aggregate
Fixed deprecation notice in PHP 8.1: IteratorAggregate
This commit is contained in:
commit
bfe52deb9e
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