Skip to content

[Bug] Latest update is incompatible with stated PHP 5.6 requirement #499

@yuichro

Description

@yuichro

Description

Hello,

I'm reporting a critical issue after the latest plugin update.

My Environment:

  • PHP Version: 5.6.40

The Issue:
The plugin's official description states that the minimum required PHP version is 5.6. However, after updating, my site crashed with a fatal PHP error.

Error Message:
E_PARSE: syntax error, unexpected ‘?’ in .../wp-maintenance-mode/vendor/codeinwp/themeisle-sdk/src/Modules/Promotions.php on line 270

Analysis:
The unexpected '?' error clearly indicates that the code is using nullable type syntax, which was introduced in PHP 7.1. This means the latest version of the plugin is no longer compatible with PHP 5.6, contrary to the stated requirements.

Could you please either fix the code to maintain PHP 5.6 compatibility or update the minimum required PHP version in the plugin's description to reflect the actual requirement (e.g., PHP 7.1+)?

Thank you.

Step-by-step reproduction instructions

Hello,

I'm reporting a critical issue after the latest plugin update.

My Environment:

  • PHP Version: 5.6.40

The Issue:
The plugin's official description states that the minimum required PHP version is 5.6. However, after updating, my site crashed with a fatal PHP error.

Error Message:
E_PARSE: syntax error, unexpected ‘?’ in .../wp-maintenance-mode/vendor/codeinwp/themeisle-sdk/src/Modules/Promotions.php on line 270

Analysis:
The unexpected '?' error clearly indicates that the code is using nullable type syntax, which was introduced in PHP 7.1. This means the latest version of the plugin is no longer compatible with PHP 5.6, contrary to the stated requirements.

Could you please either fix the code to maintain PHP 5.6 compatibility or update the minimum required PHP version in the plugin's description to reflect the actual requirement (e.g., PHP 7.1+)?

Thank you.

Screenshots, screen recording, code snippet or Help Scout ticket

Image Image

Environment info

No response

Is the issue you are reporting a regression

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis label could be used to identify issues that are caused by a defect in the product.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions