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

bleedingdeacons / amber / 31254516505
92%

Build:
DEFAULT BRANCH: main
Ran 08 Aug 2026 11:14AM UTC
Jobs 1
Files 30
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 11:14AM UTC coverage: 92.934% (-0.05%) from 92.98%
31254516505

push

github

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

Level 8 checks calls and property reads against nullable types. Amber
reported 45 findings — the largest count in the suite — in five shapes.

Configuration::getConfig() is declared ?array but 17 constructors across
12 classes assign it straight to a non-nullable array property. Under
strict_types that is a TypeError, not a silent null. Coalesced to an empty
map, which is what every reader already treats a missing config as. No
inline comment at each site: 17 identical notes would be noise, and the
property type states it. Same fix as scrutiny's four.

PositionShortcodeRenderer accounted for 16. createFrom() returns
?PositionView, and two shortcodes called straight through it — now
guarded with a throw, caught by the try/catch each already has, matching
the get_the_ID() guard beside it. PositionView's string getters (getTitle,
getDescription, getPositionEmail, getPublicDisplayName) are all nullable;
an absent value now renders empty rather than fatalling.

preg_replace() returning null accounted for the rest, and the fallback
matters case by case:
  - MeetingAdmin::searchWhere() falls back to the clause as it arrived,
    not to '' — an empty WHERE would drop the restriction and widen the
    query to every post.
  - MeetingReconciler's name normaliser and normalisePostcode() keep the
    partially-normalised value; '' would score every pair as dissimilar.
  - ReportsAdmin already coalesced the argument but not the result.

Plugin's migration routine resolved two services off the
?ContainerInterface property; routed through the getContainer() accessor
that already exists. GeneralShortcodes passed ?string $content into a
string parameter — WordPress passes null for a self-closing shortcode.

No baseline entries added. phpstan, phpcs and 413 tests green.

3630 of 3906 relevant lines covered (92.93%)

3.81 hits per line

Coverage Regressions

Lines Coverage ∆ File
7
73.11
0.0% amber/amber/src/Shortcodes/GeneralShortcodes.php
6
92.91
0.0% amber/amber/src/Managers/MeetingReconciler.php
3
96.18
-1.45% amber/amber/src/Managers/PositionShortcodeRenderer.php
Jobs
ID Job ID Ran Files Coverage
1 31254516505.1 08 Aug 2026 11:14AM UTC 30
92.93
GitHub Action Run
Source Files on build 31254516505
  • Tree
  • List 30
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31254516505
  • 414dfe00 on github
  • Prev Build on main (#31223848780)
  • Next Build on main (#31332362920)
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