Common
Common copied to clipboard
Bug with PhpPresentation 1.0.0 and PhpPresentation 1.1.0
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;
From 1.0.1 to 1.0.5 something broke pptx files.
Probably relevant:
- https://github.com/PHPOffice/Common/commit/5a2eeb82d4dfce4ce2163819063ba6f5a80c3e91
- https://github.com/PHPOffice/PHPPresentation/issues/858
please fix, it doesn't make sense to make this simple pull request