• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PHPOffice / PHPPresentation / 32844890294
95%

Build:
DEFAULT BRANCH: master
Ran 25 Aug 2026 11:59AM UTC
Jobs 1
Files 141
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Aug 2026 11:56AM UTC coverage: 92.58% (+0.005%) from 92.575%
32844890294

push

github

web-flow
A shape whose fill was taken away no longer kills the ODPresentation Writer (#931)

Three lines of user code, no styling involved:

    $oPhp = IOFactory::createReader('PowerPoint2007')->load('deck.pptx');
    IOFactory::createWriter($oPhp, 'ODPresentation')->save('deck.odp');
    // Error: Call to a member function getFillType() on null

`AbstractShape::setFill()` accepts a null and stores it, `getFill()` promises `?Fill`, and the
writers dereference the result without asking. The PowerPoint2007 Reader hands the model that
null for every `p:spPr` that names no fill, which is most of them, so converting a real deck to
ODP died on the first shape. The same deck written straight back out as PPTX was fine --
`writeFill()` opens with a null check -- so the crash was invisible until the format changed.

`Shape\Chart\Series` had the same pair, and there the PowerPoint2007 Writer died too:
`writeTypeArea()`, `writeTypeBar()` and `writeTypeBar3D()` all read `getFill()->getFillType()`
before deciding whether to write a `c:spPr`.

`Fill::FILL_UNSET` -- added with #911 for a table cell nobody gave a fill -- already says what the
null was there to say. So both getters return a `Fill`, and `setFill(null)` stores a fill of that
type rather than a null. The writers keep writing exactly what they wrote for a null: nothing at
all, so the shape takes the fill its theme or its placeholder gives it, and the series leaves its
colour to the application.

No existing deck moves. A shape is still born at `FILL_NONE` and still writes `a:noFill`; a table
cell that named no fill still resolves to its row and, failing that, still writes the `a:noFill`
it has always been written with -- what PowerPoint does instead needs table styles this library
does not write yet. Only the null path moves, and it moves from a fatal error to a file.

24 of 28 new or added lines in 7 files covered. (85.71%)

10419 of 11254 relevant lines covered (92.58%)

55.53 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
96.68
0.02% src/PhpPresentation/Writer/PowerPoint2007/PptCharts.php
1
94.88
0.0% src/PhpPresentation/Writer/ODPresentation/Content.php
Jobs
ID Job ID Ran Files Coverage
1 32844890294.1 25 Aug 2026 11:59AM UTC 141
92.58
GitHub Action Run
Source Files on build 32844890294
  • Tree
  • List 141
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 83eb49f4 on github
  • Prev Build on master (#32844343159)
  • Next Build on master (#32845239352)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc