Skip to content

PHP 7.4 supportΒ #383

@SteveDesmond-ca

Description

@SteveDesmond-ca

As of right now, ANet's PHP SDK cannot run on PHP 7.4, as it throws errors about invalid code in the various model types, e.g.

    <h4>A PHP Error was encountered</h4>

    <p>Severity: 8192</p>
    <p>Message: Cannot use "parent" when current class scope has no parent</p>
    <p>Filename: v1/MessagesType.php</p>
    <p>Line Number: 134</p>

I believe this is due to the new JIT compiler seeing things like

    return array_merge(parent::jsonSerialize(), $values);

on classes that don't actually have parents.

PR #382 already exists and appears to fix this, but even just some news that an in-house solution is in the works would be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions