Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Cannot use 'Object' as class name as it is reserved in C:\E\sites\fjl-b-php\vendor\phpoffice\phpword\src\PhpWord\Element\Object.php on line 26 #1457

Closed
1 task done
bingxinranhuo opened this issue Sep 5, 2018 · 1 comment

Comments

@bingxinranhuo
Copy link

bingxinranhuo commented Sep 5, 2018

This is:

  • a bug report

run phpword/samples/index.php?Sample_04_Textrun.php
or
phpword/samples/index.php?Sample_06_Footnote.php

Fatal error

Fatal error: Cannot use 'Object' as class name as it is reserved in C:\E\sites\fjl-b-php\vendor\phpoffice\phpword\src\PhpWord\Element\Object.php on line 26

Context

  • PHP version:php 5.6
  • PHPWord version: 0.15
@bingxinranhuo bingxinranhuo changed the title Sample bug Fatal error: Cannot use 'Object' as class name as it is reserved in C:\E\sites\fjl-b-php\vendor\phpoffice\phpword\src\PhpWord\Element\Object.php on line 26 Sep 5, 2018
@troosan
Copy link
Contributor

troosan commented Oct 3, 2018

@bingxinranhuo Are you sure you are using version 0.15? This class was renamed

@troosan troosan closed this as completed Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants