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
[08-Jun-2023 12:23:36 UTC] PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of MailerLiteApi\Common\Collection::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 C:\laragon\www\onlinua\wp-content\plugins\onlinua\vendor\mailerlite\mailerlite-api-v2-php-sdk\src\Common\Collection.php:101 Stack trace: #0 C:\laragon\www\onlinua\wp-content\plugins\onlinua\vendor\mailerlite\mailerlite-api-v2-php-sdk\src\Common\Collection.php(10): {closure}(8192, 'Return type of ...', 'C:\\laragon\\www\\...', 101) #1 C:\laragon\www\onlinua\wp-content\plugins\fakerpress\vendor\composer\ClassLoader.php(582): include('C:\\laragon\\www\\...') #2 C:\laragon\www\onlinua\wp-content\plugins\fakerpress\vendor\composer\ClassLoader.php(433): Composer\Autoload\{closure}('C:\\laragon\\www\\...') #3 C:\laragon\www\onlinua\wp-content\plugins\onlinua\vendor\mailerlite\mailerlite-api-v2-php-sdk\src\Common\ApiAbstract.php(191): Composer\Autoload\ClassLoader->loadClass('MailerLiteApi\\C...') #4 C:\laragon\www\onlinua\wp-content\plugins\onlinua\vendor\mailerlite\mailerlite-api-v2-php-sdk\src\Common\ApiAbstract.php(45): MailerLiteApi\Common\ApiAbstract->generateCollection(Array) #5 C:\laragon\www\onlinua\wp-content\plugins\onlinua\src\Includes\OnlinuaMailerlite.php(46): MailerLiteApi\Common\ApiAbstract->get() #6 C:\laragon\www\onlinua\wp-content\plugins\onlinua\src\Admin\OnlinuaPostMetabox.php(177): Onlinua\Includes\OnlinuaMailerlite::get_groups() #7 C:\laragon\www\onlinua\wp-content\plugins\onlinua\src\Admin\OnlinuaPostMetabox.php(75): Onlinua\Admin\OnlinuaPostMetabox::get_ml_groups() #8 C:\laragon\www\onlinua\wp-includes\class-wp-hook.php(308): Onlinua\Admin\OnlinuaPostMetabox::diplomaturas_side_fields('') #9 C:\laragon\www\onlinua\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #10 C:\laragon\www\onlinua\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #11 C:\laragon\www\onlinua\wp-content\plugins\onlinua\vendor\htmlburger\carbon-fields\core\Loader\Loader.php(113): do_action('carbon_fields_r...') #12 C:\laragon\www\onlinua\wp-includes\class-wp-hook.php(308): Carbon_Fields\Loader\Loader->trigger_fields_register('') #13 C:\laragon\www\onlinua\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #14 C:\laragon\www\onlinua\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #15 C:\laragon\www\onlinua\wp-settings.php(623): do_action('init') #16 C:\laragon\www\onlinua\wp-config.php(106): require_once('C:\\laragon\\www\\...') #17 C:\laragon\www\onlinua\wp-load.php(50): require_once('C:\\laragon\\www\\...') #18 C:\laragon\www\onlinua\wp-admin\admin.php(34): require_once('C:\\laragon\\www\\...') #19 C:\laragon\www\onlinua\wp-admin\post.php(12): require_once('C:\\laragon\\www\\...') #20 {main} in C:\laragon\www\onlinua\wp-content\plugins\onlinua\vendor\mailerlite\mailerlite-api-v2-php-sdk\src\Common\Collection.php on line 10
The error itself: Method 'MailerLiteApi\Common\Collection::offsetExists()' is not compatible with method 'ArrayAccess::offsetExists()'.intelephense(1038)
Other error: Method 'MailerLiteApi\Common\Collection::count()' is not compatible with method 'Countable::count()'.intelephense(1038)
maybe I do not have the latest version of the package, my version is "mailerlite/mailerlite-api-v2-php-sdk": "^0.3.2",
The text was updated successfully, but these errors were encountered:
Hi, in php 8.1.10 I found this error:
[08-Jun-2023 12:23:36 UTC] PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of MailerLiteApi\Common\Collection::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 C:\laragon\www\onlinua\wp-content\plugins\onlinua\vendor\mailerlite\mailerlite-api-v2-php-sdk\src\Common\Collection.php:101 Stack trace: #0 C:\laragon\www\onlinua\wp-content\plugins\onlinua\vendor\mailerlite\mailerlite-api-v2-php-sdk\src\Common\Collection.php(10): {closure}(8192, 'Return type of ...', 'C:\\laragon\\www\\...', 101) #1 C:\laragon\www\onlinua\wp-content\plugins\fakerpress\vendor\composer\ClassLoader.php(582): include('C:\\laragon\\www\\...') #2 C:\laragon\www\onlinua\wp-content\plugins\fakerpress\vendor\composer\ClassLoader.php(433): Composer\Autoload\{closure}('C:\\laragon\\www\\...') #3 C:\laragon\www\onlinua\wp-content\plugins\onlinua\vendor\mailerlite\mailerlite-api-v2-php-sdk\src\Common\ApiAbstract.php(191): Composer\Autoload\ClassLoader->loadClass('MailerLiteApi\\C...') #4 C:\laragon\www\onlinua\wp-content\plugins\onlinua\vendor\mailerlite\mailerlite-api-v2-php-sdk\src\Common\ApiAbstract.php(45): MailerLiteApi\Common\ApiAbstract->generateCollection(Array) #5 C:\laragon\www\onlinua\wp-content\plugins\onlinua\src\Includes\OnlinuaMailerlite.php(46): MailerLiteApi\Common\ApiAbstract->get() #6 C:\laragon\www\onlinua\wp-content\plugins\onlinua\src\Admin\OnlinuaPostMetabox.php(177): Onlinua\Includes\OnlinuaMailerlite::get_groups() #7 C:\laragon\www\onlinua\wp-content\plugins\onlinua\src\Admin\OnlinuaPostMetabox.php(75): Onlinua\Admin\OnlinuaPostMetabox::get_ml_groups() #8 C:\laragon\www\onlinua\wp-includes\class-wp-hook.php(308): Onlinua\Admin\OnlinuaPostMetabox::diplomaturas_side_fields('') #9 C:\laragon\www\onlinua\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #10 C:\laragon\www\onlinua\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #11 C:\laragon\www\onlinua\wp-content\plugins\onlinua\vendor\htmlburger\carbon-fields\core\Loader\Loader.php(113): do_action('carbon_fields_r...') #12 C:\laragon\www\onlinua\wp-includes\class-wp-hook.php(308): Carbon_Fields\Loader\Loader->trigger_fields_register('') #13 C:\laragon\www\onlinua\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #14 C:\laragon\www\onlinua\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #15 C:\laragon\www\onlinua\wp-settings.php(623): do_action('init') #16 C:\laragon\www\onlinua\wp-config.php(106): require_once('C:\\laragon\\www\\...') #17 C:\laragon\www\onlinua\wp-load.php(50): require_once('C:\\laragon\\www\\...') #18 C:\laragon\www\onlinua\wp-admin\admin.php(34): require_once('C:\\laragon\\www\\...') #19 C:\laragon\www\onlinua\wp-admin\post.php(12): require_once('C:\\laragon\\www\\...') #20 {main} in C:\laragon\www\onlinua\wp-content\plugins\onlinua\vendor\mailerlite\mailerlite-api-v2-php-sdk\src\Common\Collection.php on line 10
The error itself:
Method 'MailerLiteApi\Common\Collection::offsetExists()' is not compatible with method 'ArrayAccess::offsetExists()'.intelephense(1038)
Other error:
Method 'MailerLiteApi\Common\Collection::count()' is not compatible with method 'Countable::count()'.intelephense(1038)
maybe I do not have the latest version of the package, my version is
"mailerlite/mailerlite-api-v2-php-sdk": "^0.3.2",
The text was updated successfully, but these errors were encountered: