• Resolved leemon

    (@leemon)


    The Freemius feature you are using with your plugin causes some deprecation warnings in PHP 8.x when the DEBUG constant is set to true:

    Deprecated: 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 in /homepages/wp-content/plugins/wp-contact-slider/freemius/includes/managers/class-fs-key-value-storage.php on line 309
    
    Deprecated: 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 in /homepages/wp-content/plugins/wp-contact-slider/freemius/includes/managers/class-fs-key-value-storage.php on line 317
    
    Deprecated: 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 in /homepages/wp-content/plugins/wp-contact-slider/freemius/includes/managers/class-fs-key-value-storage.php on line 301
    
    Deprecated: 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 in /homepages/wp-content/plugins/wp-contact-slider/freemius/includes/managers/class-fs-key-value-storage.php on line 313
    
    Deprecated: 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 in /homepages/wp-content/plugins/wp-contact-slider/freemius/includes/managers/class-fs-key-value-storage.php on line 328
    
    Deprecated: 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 in /homepages/wp-content/plugins/wp-contact-slider/freemius/includes/managers/class-fs-key-value-storage.php on line 339
    
    Deprecated: 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 in /homepages/wp-content/plugins/wp-contact-slider/freemius/includes/managers/class-fs-key-value-storage.php on line 350
    
    Deprecated: 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 in /homepages/wp-content/plugins/wp-contact-slider/freemius/includes/managers/class-fs-key-value-storage.php on line 362
    
    Deprecated: 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 in /homepages/wp-content/plugins/wp-contact-slider/freemius/includes/managers/class-fs-key-value-storage.php on line 375
    
    Deprecated: 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 in /homepages/wp-content/plugins/wp-contact-slider/freemius/includes/managers/class-fs-key-value-storage.php on line 389
    

    • This topic was modified 1 year, 7 months ago by leemon.
  • The topic ‘Freemius feature causing warnings in PHP 8.x’ is closed to new replies.