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

ICanBoogie / ActiveRecord / 46306899747
93%

Build:
DEFAULT BRANCH: 7.0
Ran 29 Nov 2026 08:31PM UTC
Jobs 1
Files 113
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

29 Nov 2026 08:30PM UTC coverage: 92.389% (+0.5%) from 91.858%
46306899747

push

github

olvlvl
feat(query): add typed `records` and `record`

`all()` returns `array<mixed>` and `one()` returns `mixed`, because the
fetch mode decides what they produce, so static analysis required
workarounds to use the records of a query.

`records()` and `record()`, with the `$records` and `$record`
properties, return `list<TRecord>` and `?TRecord`. They throw
`LogicException` after `select()` or `mode()`, which might not produce
complete records. The library, the documentation, and the tests that
fetch records now use them.

BREAKING CHANGE: `find_one()`, `find_many()`, and the relations throw
`LogicException` if a custom query class calls `select()` or `mode()` on
every query.

10 of 10 new or added lines in 6 files covered. (100.0%)

61 existing lines in 6 files now uncovered.

1930 of 2089 relevant lines covered (92.39%)

68.58 hits per line

Coverage Regressions

Lines Coverage ∆ File
49
80.51
3.76% lib/ActiveRecord/Query.php
4
77.78
6.35% lib/ActiveRecord/Relation.php
3
91.18
19.75% lib/ActiveRecord/BelongsToRelation.php
2
80.0
30.0% lib/ActiveRecord/HasManyRelation.php
2
95.16
0.33% lib/ActiveRecord/RelationCollection.php
1
95.74
3.74% lib/ActiveRecord/HasRelation.php
Jobs
ID Job ID Ran Files Coverage
1 46306899747.1 29 Nov 2026 08:31PM UTC 113
92.39
GitHub Action Run
Source Files on build 46306899747
  • Tree
  • List 113
  • Changed 12
  • Source Changed 0
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a387d287 on github
  • Prev Build on 7.0 (#39838253405)
  • Next Build on 7.0 (#46308125999)
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