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

PHPOffice / PHPPresentation / 32839436784
95%

Build:
DEFAULT BRANCH: master
Ran 25 Aug 2026 10:58AM 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 10:52AM UTC coverage: 92.559% (+0.001%) from 92.558%
32839436784

push

github

web-flow
A layout name with no preset behind it is a custom layout, not a crash (#930)

`DocumentLayout::setDocumentLayout()` matches its argument against the eleven presets it
knows and an empty string, and everything else falls to a `default:` arm that reads
`$pValue['cx']`. That arm was written for the array form of the call, so any other string
reaches it as a string and PHP 8 answers with

    TypeError: Cannot access offset of type string on string

The name that gets there most easily is the one ECMA-376 itself uses. `ST_SlideSizeType`
spells a size of its own `custom`, so `setDocumentLayout('custom')` -- the spelling a
caller reads in the specification, or copies out of a `p:sldSz` element -- throws. So does
a typo, and so does a preset a later format grows.

#929 stopped the PowerPoint2007 Reader from walking into it. It stayed reachable from
everywhere else, because the arm that crashes is in the model rather than in that reader:
`$presentation->getLayout()->setDocumentLayout('custom')` still threw.

A name with no preset behind it says exactly what the empty string says -- this deck is
not one of the eleven -- so it is now handled as `LAYOUT_CUSTOM`, keeping the dimensions
it already has for `setCX()` and `setCY()` to speak. The array form is unchanged.

3 of 3 new or added lines in 1 file covered. (100.0%)

10386 of 11221 relevant lines covered (92.56%)

54.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32839436784.1 25 Aug 2026 10:57AM UTC 141
92.56
GitHub Action Run
Source Files on build 32839436784
  • Tree
  • List 141
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 188f6dd1 on github
  • Prev Build on master (#32839272684)
  • Next Build on master (#32841236756)
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