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

bleedingdeacons / confur / 31238104668
95%

Build:
DEFAULT BRANCH: main
Ran 08 Aug 2026 03:51AM UTC
Jobs 1
Files 22
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

08 Aug 2026 03:50AM UTC coverage: 94.898% (-0.04%) from 94.935%
31238104668

push

github

web-flow
fix: close null-safety gaps and raise PHPStan to level 8 (#64)

Level 8 checks calls and property reads against nullable types. Confur
reported 8 findings, in three shapes.

get_post() returns null, and AnswerRepository read straight through it:
->post_date twice inside the findDuplicate() usort comparator, and
->post_name on the returned slug. A post deleted between the query and the
comparison is a fatal mid-sort. Missing posts now sort as the oldest
possible date, and the slug falls back to '' — callers act on the post_id.

normalizePostId() returns ?int (null for an empty meeting field) and both
AnswerRepository and AnswerHandler passed it straight to get_the_title(),
which takes int|WP_Post. Guarded, falling back to an empty title.

Three shortcode callbacks passed ?string $content into a string parameter.
WordPress passes null for a self-closing shortcode, which is how all three
are normally written, so this was a live TypeError under strict_types —
the same shape fixed in trumpet during the level 7 sweep. Coalesced to ''.

No baseline entries added. phpstan, phpcs and 361 tests green (the 4
warnings and 1 deprecation are pre-existing, identical on main).

9 of 10 new or added lines in 4 files covered. (90.0%)

2269 of 2391 relevant lines covered (94.9%)

4.08 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
79.55
-0.34% src/Handlers/AnswerHandler.php
Jobs
ID Job ID Ran Files Coverage
1 31238104668.1 08 Aug 2026 03:51AM UTC 22
94.9
GitHub Action Run
Source Files on build 31238104668
  • Tree
  • List 22
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31238104668
  • 1c4058e1 on github
  • Prev Build on main (#31223883819)
  • Next Build on main (#31332377951)
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