Phpword: PHP 7: Cannot use PhpOffice\PhpWord\Shared\String as String because 'String' is a special class name

Created on 22 Feb 2016  路  8Comments  路  Source: PHPOffice/PHPWord

The String class name is occupied in base PHP 7, therefore the class String throws an error.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Most helpful comment

When is the release due? I do not particularly want to use a develop branch release in production.

All 8 comments

Duplicate of #642, #730, #732, etc.

Already fixed, but not released, so specify "php-office/php-word": "dev-develop" in your composer.json

When is the release due? I do not particularly want to use a develop branch release in production.

any news on this ?

This should be prioritized.

Is this included in a more stable release other than dev-develop?

This works for v0.13.0.

@agwidarsito I myself cannot use develop version with Drupal but you can pin a dev version too using a commit hash version

"require": {
        "phpoffice/phpword": "dev-develop#fd156bf12a6d"
}

@clemens-tolboom Awesome, good to know. Thanks! :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

taophp picture taophp  路  3Comments

carlosvr90 picture carlosvr90  路  4Comments

btry picture btry  路  4Comments

Ryuzakix3 picture Ryuzakix3  路  6Comments

Joel-James picture Joel-James  路  3Comments