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

Syntax error when using PHP7.4 #1

Closed
WHITE-developer opened this issue Feb 21, 2022 · 1 comment
Closed

Syntax error when using PHP7.4 #1

WHITE-developer opened this issue Feb 21, 2022 · 1 comment
Assignees

Comments

@WHITE-developer
Copy link

When going to the mail settings page we get the following error:

syntax error, unexpected '|', expecting ';' or '{'
in /var/www/html/vendor/perfectwebteam/craft-mailchimp-transactional/src/mail/MailchimpTransactionalAdapter.php at line 101


    {
        return Craft::$app->getView()->renderTemplate('mailchimp-transactional/settings', [
            'adapter' => $this,
        ]);
    }
 
    /**
     * @inheritdoc
     */
-->    public function defineTransport(): array|Swift_Transport
    {
        return [
            'class' => MailchimpTransactionalTransport::class,
            'constructArgs' => [
                [
                    'class' => Swift_Events_SimpleEventDispatcher::class
                ]
            ],
            'apiKey' => Craft::parseEnv($this->apiKey),

Craft 3.7.33
PHP 7.4

@sanderpotjer sanderpotjer self-assigned this Feb 21, 2022
@sanderpotjer
Copy link
Member

@WHITE-developer thanks! We just pushed an update that will fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants