surveywp / kk-star-ratings

kk Star Ratings wordpress plugin
https://wordpress.org/plugins/kk-star-ratings
Other
118 stars 44 forks source link

PHP Errors in class-fs-key-value-storage.php file #123

Closed Elgameel closed 1 year ago

Elgameel commented 1 year ago

Detailed description

There are 10 PHP Errors in class-fs-key-value-storage.php file.

File path: wp-content/plugins/kk-star-ratings/freemius/includes/managers/class-fs-key-value-storage.php

Screenshot 2022-10-06 175327

Context

Install the Query Monitor plugin and you will get the following error messages.

Error Level: Deprecated
Error Message: Return type of FS_Key_Value_Storage::offsetExists($k) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Location: wp-content/plugins/kk-star-ratings/freemius/includes/managers/class-fs-key-value-storage.php:309

Error Level: Deprecated
Error Message: Return type of FS_Key_Value_Storage::offsetGet($k) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice    
Location: wp-content/plugins/kk-star-ratings/freemius/includes/managers/class-fs-key-value-storage.php:317

Error Level: Deprecated
Error Message: Return type of FS_Key_Value_Storage::offsetSet($k, $v) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Location: wp-content/plugins/kk-star-ratings/freemius/includes/managers/class-fs-key-value-storage.php:301

Error Level: Deprecated
Error Message: Return type of FS_Key_Value_Storage::offsetUnset($k) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice 
Location: wp-content/plugins/kk-star-ratings/freemius/includes/managers/class-fs-key-value-storage.php:313

Error Level: Deprecated
Error Message: Return type of FS_Key_Value_Storage::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice  
Location: wp-content/plugins/kk-star-ratings/freemius/includes/managers/class-fs-key-value-storage.php:328

Error Level: Deprecated
Error Message: Return type of FS_Key_Value_Storage::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Location: wp-content/plugins/kk-star-ratings/freemius/includes/managers/class-fs-key-value-storage.php:339

Error Level: Deprecated
Error Message: Return type of FS_Key_Value_Storage::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Location: wp-content/plugins/kk-star-ratings/freemius/includes/managers/class-fs-key-value-storage.php:350

Error Level: Deprecated
Error Message: Return type of FS_Key_Value_Storage::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Location: wp-content/plugins/kk-star-ratings/freemius/includes/managers/class-fs-key-value-storage.php:362

Error Level: Deprecated
Error Message: Return type of FS_Key_Value_Storage::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Location: wp-content/plugins/kk-star-ratings/freemius/includes/managers/class-fs-key-value-storage.php:375

Error Level: Deprecated
Error Message: Return type of FS_Key_Value_Storage::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Location: wp-content/plugins/kk-star-ratings/freemius/includes/managers/class-fs-key-value-storage.php:389

Environment

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.