Skip to content

scoper-autoload.php doesn't support PHP 5.6 #842

@marekdedic

Description

@marekdedic

Bug report

Question Answer
PHP-Scoper version 0.18.3
PHP version 5.6
Platform with version all
Github Repo -

Hi,
I am using PHP-scoper for packaging a WordPress plugin, so I don't really get much control over which PHP versions it will be running with. Recently I got reports of syntax error, unexpected ‘:’, expecting ‘{‘ in the scoper-autoload.php file and was surprised to find that it contains return type annotations, possibly as an artifact from the build process. I tried to look for info about supported runtime php versions in the project, but couldn't find any

I assume composer minimum version is the version of PHP php-scoper runs on, but the output would respect the source code it processes...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions