You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP Deprecated: Return type of Nahid\QArray\QueryEngine::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in nahid\qarray\src\QueryEngine.php on line 386
All the implementations functions at ArrayAccess are having same error.
I was only able to update the function offsetExists from
public function offsetExists($key)
{
return isset($this->_data[$key]);
}
to
public function offsetExists(mixed $offset): bool {
return array_key_exists($offset, $this->_data[$key]);
}
Then I added #[\ReturnTypeWillChange] to the head of other functions to suppress the error.
Please look into this matter and release a version for PHP 8.1
The text was updated successfully, but these errors were encountered:
Getting this error for PHP 8.1
PHP Deprecated: Return type of Nahid\QArray\QueryEngine::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in nahid\qarray\src\QueryEngine.php on line 386
All the implementations functions at ArrayAccess are having same error.
I was only able to update the function offsetExists from
to
Then I added #[\ReturnTypeWillChange] to the head of other functions to suppress the error.
Please look into this matter and release a version for PHP 8.1
The text was updated successfully, but these errors were encountered: