mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 02:26:17 +00:00
Fixed deprecation notice in PHP 8.1: Countable #3
This commit is contained in:
parent
bfe52deb9e
commit
ad33741e0d
2 changed files with 2 additions and 2 deletions
|
@ -523,7 +523,7 @@ class ModelValidator implements ArrayAccess, IteratorAggregate, Countable {
|
|||
*
|
||||
* @return int
|
||||
*/
|
||||
public function count() {
|
||||
public function count() : int {
|
||||
$this->_parseRules();
|
||||
return count($this->_fields);
|
||||
}
|
||||
|
|
|
@ -363,7 +363,7 @@ class CakeValidationSet implements ArrayAccess, IteratorAggregate, Countable {
|
|||
*
|
||||
* @return int
|
||||
*/
|
||||
public function count() {
|
||||
public function count() : int {
|
||||
return count($this->_rules);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue