PHPOffice / PHPOffice/Common

Bug with PhpPresentation 1.0.0 and PhpPresentation 1.1.0

Open
#59 2 comments 2 reactions 0 assignees View on GitHub

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;
Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.