Problem/Motivation
Getting these errors after updating to PHP 8.1
Deprecated function: Return type of Postmark\Models\CaseInsensitiveArray::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 10 of /app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php).
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\CaseInsensitiveArray') (Line: 24)
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\DynamicResponseModel') (Line: 73)
Postmark\PostmarkClient->sendEmail('kristi@worksinstone.com', 'duran@alphex.com', Object, NULL, Object, NULL, , NULL, NULL, NULL) (Line: 90)
Drupal\postmark\PostmarkHandler->sendMail(Array) (Line: 152)
Drupal\postmark\Form\PostmarkSettingsForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 595)
Drupal\Core\Form\FormBuilder->processForm('postmark_settings_form', Array, Object) (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Deprecated function: Return type of Postmark\Models\CaseInsensitiveArray::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 10 of /app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php).
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\CaseInsensitiveArray') (Line: 24)
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\DynamicResponseModel') (Line: 73)
Postmark\PostmarkClient->sendEmail('kristi@worksinstone.com', 'duran@alphex.com', Object, NULL, Object, NULL, , NULL, NULL, NULL) (Line: 90)
Drupal\postmark\PostmarkHandler->sendMail(Array) (Line: 152)
Drupal\postmark\Form\PostmarkSettingsForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 595)
Drupal\Core\Form\FormBuilder->processForm('postmark_settings_form', Array, Object) (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Deprecated function: Return type of Postmark\Models\CaseInsensitiveArray::offsetSet($offset, $value) 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 include() (line 10 of /app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php).
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\CaseInsensitiveArray') (Line: 24)
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\DynamicResponseModel') (Line: 73)
Postmark\PostmarkClient->sendEmail('kristi@worksinstone.com', 'duran@alphex.com', Object, NULL, Object, NULL, , NULL, NULL, NULL) (Line: 90)
Drupal\postmark\PostmarkHandler->sendMail(Array) (Line: 152)
Drupal\postmark\Form\PostmarkSettingsForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 595)
Drupal\Core\Form\FormBuilder->processForm('postmark_settings_form', Array, Object) (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Deprecated function: Return type of Postmark\Models\CaseInsensitiveArray::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 10 of /app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php).
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\CaseInsensitiveArray') (Line: 24)
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\DynamicResponseModel') (Line: 73)
Postmark\PostmarkClient->sendEmail('kristi@worksinstone.com', 'duran@alphex.com', Object, NULL, Object, NULL, , NULL, NULL, NULL) (Line: 90)
Drupal\postmark\PostmarkHandler->sendMail(Array) (Line: 152)
Drupal\postmark\Form\PostmarkSettingsForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 595)
Drupal\Core\Form\FormBuilder->processForm('postmark_settings_form', Array, Object) (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Deprecated function: Return type of Postmark\Models\CaseInsensitiveArray::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 10 of /app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php).
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\CaseInsensitiveArray') (Line: 24)
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\DynamicResponseModel') (Line: 73)
Postmark\PostmarkClient->sendEmail('kristi@worksinstone.com', 'duran@alphex.com', Object, NULL, Object, NULL, , NULL, NULL, NULL) (Line: 90)
Drupal\postmark\PostmarkHandler->sendMail(Array) (Line: 152)
Drupal\postmark\Form\PostmarkSettingsForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 595)
Drupal\Core\Form\FormBuilder->processForm('postmark_settings_form', Array, Object) (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Deprecated function: Return type of Postmark\Models\CaseInsensitiveArray::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 10 of /app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php).
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\CaseInsensitiveArray') (Line: 24)
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\DynamicResponseModel') (Line: 73)
Postmark\PostmarkClient->sendEmail('kristi@worksinstone.com', 'duran@alphex.com', Object, NULL, Object, NULL, , NULL, NULL, NULL) (Line: 90)
Drupal\postmark\PostmarkHandler->sendMail(Array) (Line: 152)
Drupal\postmark\Form\PostmarkSettingsForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 595)
Drupal\Core\Form\FormBuilder->processForm('postmark_settings_form', Array, Object) (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Deprecated function: Return type of Postmark\Models\CaseInsensitiveArray::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 10 of /app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php).
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\CaseInsensitiveArray') (Line: 24)
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\DynamicResponseModel') (Line: 73)
Postmark\PostmarkClient->sendEmail('kristi@worksinstone.com', 'duran@alphex.com', Object, NULL, Object, NULL, , NULL, NULL, NULL) (Line: 90)
Drupal\postmark\PostmarkHandler->sendMail(Array) (Line: 152)
Drupal\postmark\Form\PostmarkSettingsForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 595)
Drupal\Core\Form\FormBuilder->processForm('postmark_settings_form', Array, Object) (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Deprecated function: Return type of Postmark\Models\CaseInsensitiveArray::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 10 of /app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php).
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\CaseInsensitiveArray') (Line: 24)
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\DynamicResponseModel') (Line: 73)
Postmark\PostmarkClient->sendEmail('kristi@worksinstone.com', 'duran@alphex.com', Object, NULL, Object, NULL, , NULL, NULL, NULL) (Line: 90)
Drupal\postmark\PostmarkHandler->sendMail(Array) (Line: 152)
Drupal\postmark\Form\PostmarkSettingsForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 595)
Drupal\Core\Form\FormBuilder->processForm('postmark_settings_form', Array, Object) (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Deprecated function: Return type of Postmark\Models\CaseInsensitiveArray::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 10 of /app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php).
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/CaseInsensitiveArray.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\CaseInsensitiveArray') (Line: 24)
include('/app/vendor/wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 571)
Composer\Autoload\includeFile('/app/vendor/composer/../wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Postmark\Models\DynamicResponseModel') (Line: 73)
Postmark\PostmarkClient->sendEmail('kristi@worksinstone.com', 'duran@alphex.com', Object, NULL, Object, NULL, , NULL, NULL, NULL) (Line: 90)
Drupal\postmark\PostmarkHandler->sendMail(Array) (Line: 152)
Drupal\postmark\Form\PostmarkSettingsForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 595)
Drupal\Core\Form\FormBuilder->processForm('postmark_settings_form', Array, Object) (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Steps to reproduce
Drupal 9.5.1, PHP 8.1,
Install module, enter proper security keys.
Send test email.
Proposed resolution
The composer.json in the module is pointing at version 2.5 of library.
"wildbit/postmark-php": "^2.5"
Wildbit sold postmark to activecampaign, and the dependency is up to 4.0.4
https://github.com/ActiveCampaign/postmark-php/releases/tag/4.0.4
Which says it answers the 8.1 errors.
Can we upgrade the library requirement?