Bug with PhpPresentation 1.0.0 and PhpPresentation 1.1.0
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 237
- Forks
- 61
- Avg merge
- 1h 2m
- Merged PRs (30d)
- 1
Description
Run:
PhpOffice\PhpPresentation\IOFactory::load("demo.pptx");
get some error message:
PhpOffice\PhpPresentation\AbstractShape::setWidth(): Argument #1 ($pValue) must be of type int, float given, called in /xxx/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint2007.php on line 972
error file:
change return type float to int can fixed it;
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with PhpOffice\PhpPresentation\IOFactory::load("demo.pptx"). Start at src/PhpPresentation/Reader/PowerPoint2007.php line 972 and inspect AbstractShape::setWidth(). Done means the demo presentation loads without the reported float-versus-int TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100