Skip to content

Fatal error: Cannot use 'Object' as class name as it is reserved  #1418

@chrisribe

Description

@chrisribe

This is:

Expected Behavior

Working "Sample 06 Footnote"

Current Behavior

Php crash, not working.

Failure Information

Fatal error: Cannot use 'Object' as class name as it is reserved in C:\cribe\GitHub\PHPWord\src\PhpWord\Element\Object.php on line 26

How to Reproduce

Please provide a code sample that reproduces the issue.

Just run sample #6 page.
Build v0.14.0 with:
composer require phpoffice/phpword

load samples with:
cd to samples dir and run php-S localhost:8000

Context

  • PHP version: 7.2.6
  • PHPWord version: 0.14

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