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

PHPOffice / PHPPresentation / 32841236756
95%

Build:
DEFAULT BRANCH: master
Ran 25 Aug 2026 11:17AM 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:13AM UTC coverage: 92.559%. Remained the same
32841236756

push

github

web-flow
Replace a font set to null with a fresh one, rather than storing the null (#924)

Every font setter in the model is declared `?Font $font = null` and stored what
it was given. Nothing wrote a font back and no writer guarded the read, so one
line of user code took both writers down:

    $axis->setFont(null);   // PowerPoint2007: isBold() on null
                            // ODPresentation: TypeError in writeTextProperties()

Thirteen calls across six classes did this, and `Run` was the sharpest of them:
`getFont(): Font` promised a font the setter was allowed to take away, so the
failure was a TypeError raised by the getter's own return type.

A setter given `null` now puts a fresh `Font` in place -- which is what every
constructor already does -- and the getters lose their `?`. That makes the
declared `?Font` mean "reset", the only sense in which it can work. Two guards
in the Reader that tested those getters for null go with it.

`BreakElement::getFont()` and `TextElement::getFont()` keep returning `?Font`:
those elements carry no font by design, and `Run` narrows the return type when
it overrides.

9 of 9 new or added lines in 7 files covered. (100.0%)

10386 of 11221 relevant lines covered (92.56%)

54.77 hits per line

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