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

nextras / orm / 32193606707
92%
master: 92%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 18 Aug 2026 10:41PM UTC
Jobs 5
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

18 Aug 2026 10:38PM UTC coverage: 91.945%. Remained the same
32193606707

push

github

web-flow
add #[\NoDiscard] to read-only API (#827)

* add #[\NoDiscard] to read-only API

Marks the methods that only compute and return a value with PHP 8.5's
#[\NoDiscard] attribute, so that PHP reports ignoring their return value.
Most notably the whole ICollection API, where discarding the result of
findBy()/orderBy()/limitBy() silently does nothing, as the collection is
immutable; those methods carry an explanatory message. Also covers
IRepository, IModel, IRepositoryLoader, IMapper, IEntity and the
relationship getters.

The attribute is not inherited by overriding methods, so it is declared
both on the interfaces (as documentation) and on their implementations
(where it is actually evaluated). Methods called for their side effect
are left out, incl. ICollection::setRelationshipMapper() which mutates
the collection in place.

On PHP 8.1-8.4 the attribute has no effect.

Closes #805

* tests: use the return values of #[\NoDiscard] methods

PHPStan reports method.resultDiscarded (non-ignorable) for calls whose
return value is thrown away on a separate line. The (void) cast is not
an option here, as the codebase supports PHP 8.1+, so the values are
assigned instead - incl. Repository::doRefreshAll(), where the fetch is
done for its identity-map side effect.

---------

Co-authored-by: Claude <noreply@anthropic.com>

4 of 4 new or added lines in 2 files covered. (100.0%)

4349 of 4730 relevant lines covered (91.95%)

5.39 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-8.3 - 32193606707.1 18 Aug 2026 10:42PM UTC 141
91.65
GitHub Action Run
2 run-8.5 - 32193606707.2 18 Aug 2026 10:41PM UTC 141
91.56
GitHub Action Run
3 run-8.2 - 32193606707.3 18 Aug 2026 10:41PM UTC 141
91.64
GitHub Action Run
4 run-8.4 - 32193606707.4 18 Aug 2026 10:41PM UTC 141
91.6
GitHub Action Run
5 run-8.1 - 32193606707.5 18 Aug 2026 10:41PM UTC 141
91.77
GitHub Action Run
Source Files on build 32193606707
  • Tree
  • List 141
  • Changed 28
  • Source Changed 0
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ef68043c on github
  • Prev Build on main (#31489117560)
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