Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yii2 cache #19119

Closed
Tracked by #19041
sasha-b-a opened this issue Dec 29, 2021 · 2 comments
Closed
Tracked by #19041

yii2 cache #19119

sasha-b-a opened this issue Dec 29, 2021 · 2 comments
Labels
Milestone

Comments

@sasha-b-a
Copy link

2021/12/29 16:08:01 [error] 17054#0: *44 FastCGI sent in stderr: "PHP message: PHP Deprecated: Return type of yii\caching\Cache::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/local/var/www/semenov/sushisell-api/vendor/yiisoft/yii2/caching/Cache.php on line 529PHP message: PHP Fatal error: During inheritance of ArrayAccess: Uncaught yii\base\ErrorException: Return type of yii\caching\Cache::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/local/var/www/semenov/sushisell-api/vendor/yiisoft/yii2/caching/Cache.php:529
Stack trace:
#0 /usr/local/var/www/semenov/sushisell-api/vendor/yiisoft/yii2/caching/Cache.php(54): yii\base\ErrorHandler->handleError(8192, 'Return type of ...', '/usr/local/var/...', 529)
#1 /usr/local/var/www/semenov/sushisell-api/vendor/yiisoft/yii2/BaseYii.php(293): include('/usr/local/var/...')
#2 /usr/local/var/www/semenov/sushisell-api/vendor/yiisoft/yii2/caching/FileCache.php(27): yii\BaseYii::autoload('yii\caching\Cac...')
#3 /usr/local/var/www/semenov/sushisell-api/vendor/yiisoft/yii2/BaseYii.php(293): include('/usr/local/var/...')
#4 [internal function]: yii\BaseYii::autoload('yi...PHP message: PHP Fatal error: During inheritance of IteratorAggregate: Uncaught yii\base\ErrorException: Return type of yii\web\HeaderCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/local/var/www/semenov/sushisell-api/vendor/yiisoft/yii2/web/HeaderCollection.php:37

@samdark samdark added the php8 label Dec 29, 2021
@samdark
Copy link
Member

samdark commented Dec 29, 2021

Please try #19041

@samdark samdark mentioned this issue Dec 29, 2021
20 tasks
@samdark samdark added this to the 2.0.45 milestone Jan 17, 2022
@sartor
Copy link
Contributor

sartor commented Feb 4, 2022

fixed in #19037

@samdark samdark closed this as completed Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants