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

nextras / orm
92%
master: 92%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Repo Added 04 Apr 2015 07:21AM UTC
Files 141
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 2_0_for_php_7_2
  • accessors
  • aggregation_functions
  • aggregation_on_empty
  • alias_fix
  • alias_fix_v31
  • ambiguous_relationship
  • annotation_parser_strings
  • appveyor
  • appveyor_php72
  • autoupdate_mapper
  • bufix_count_stored_on_1M
  • cache_dep
  • cache_property_metadata
  • cascade_remove
  • changes
  • ci
  • ci-tests-speedup
  • claude/nextras-orm-805-pr-oml4a7
  • coding_style
  • collection_functions_refactoring
  • collection_get_checked
  • collection_getbyid
  • collections_nulls_sorting
  • composite
  • composite_order
  • composite_pk_get_by_id
  • condition_parser
  • conventions
  • count-bugfix
  • coveralls
  • custom_datetime
  • custom_functions
  • cycle_deny
  • date-property-wrapper
  • datetime
  • datetime-property-wrapper
  • datetime_primary
  • datetimeimmutable_normalization
  • datetimesimple
  • dbal_make_select_overrideable
  • dependabot/composer/phpstan/extension-installer-1.0.5
  • dependabot/composer/phpstan/phpstan-0.12.32
  • dependabot/composer/phpstan/phpstan-0.12.33
  • dependabot/composer/phpstan/phpstan-0.12.34
  • dependabot/composer/phpstan/phpstan-0.12.36
  • dependabot/composer/phpstan/phpstan-0.12.37
  • dependabot/composer/phpstan/phpstan-0.12.38
  • dependabot/composer/phpstan/phpstan-0.12.39
  • dependabot/composer/phpstan/phpstan-0.12.40
  • dependabot/composer/phpstan/phpstan-0.12.42
  • dependabot/composer/phpstan/phpstan-0.12.43
  • dependabot/composer/phpstan/phpstan-0.12.45
  • dependabot/composer/phpstan/phpstan-0.12.48
  • dependabot/composer/phpstan/phpstan-deprecation-rules-0.12.5
  • dependabot/composer/phpstan/phpstan-mockery-0.12.7
  • dependabot/composer/phpstan/phpstan-nette-0.12.8
  • dependabot/composer/phpstan/phpstan-nette-0.12.9
  • dependabot/composer/phpstan/phpstan-strict-rules-0.12.5
  • derived_collection
  • derived_relationship_tracking
  • di-finder
  • docker-compose-performance
  • docker-setup
  • docs/collection-functions
  • drop_this
  • e3
  • e4
  • embeddable-property-meta
  • embeddable_fixes
  • embeddable_relationship
  • embeddables
  • embeddables-part1
  • embeddables_collection
  • embeddables_fixes_enhancements
  • entity-to-array
  • enum
  • extension
  • feature/filter-by-relationship-without-id
  • feature/filtered-di-repo-finder
  • feature/has-many-remove-all
  • feature/mapper-to-entity
  • feature/not-like
  • fetchpairs-traversing
  • fix-count-stored
  • fix-docs-wrapped-expression-result
  • fix-one-has-one
  • fix/join-different-path
  • fix/pqsql-tmpfs-data
  • fix/removal-helper-sti
  • fix_loading_giant_releationships
  • fix_mssql
  • fix_preload_container_on_invalid_relationship
  • fix_preload_iterator
  • fix_relationship_count
  • fix_removal
  • functions
  • generics
  • get-by-limit
  • get_relationship_collection
  • has-many-collection
  • has-many-set
  • iconnection
  • id_rework
  • interface_cleanups
  • is_main
  • issue-749
  • js/fix-phpstan
  • js/fix-query-builder
  • js/major-issues-fixes
  • js/orm-configurator-extension
  • js/pg18
  • js/phpstan-fixes
  • js/refactor-di-setup
  • lazy-relationships
  • like_function
  • macro-parser
  • main
  • many_has_many
  • many_has_many_fixes
  • many_has_many_v2
  • many_to_many
  • master
  • meta-validate-args
  • mixed-array-key-value-syntax
  • mssql
  • multi-default-order
  • nette-di-lazy
  • nette_3_0
  • nette_object
  • new_dbal
  • nullable_datetime_modifier
  • nullable_phpdoc_types
  • one_side_properties
  • optimize_find_by
  • or
  • or-flatten
  • order_nullable
  • ordering-has-many
  • patch-1
  • peristed_id_as_raw_value
  • persist_only_modified
  • persistence
  • php7
  • php7.4
  • php73
  • php8.5
  • phpdbg
  • phpstan
  • phpstan11
  • phpstan9
  • phpstan_fixes
  • phpstan_no_missing_types
  • pr/219
  • pr/custom_functions
  • pr/fix_persistence_one_to_one
  • pr/metadata_storage_multiple_model_support
  • pr/one_to_many_is_loaded
  • pr/persist_bug
  • pr/persistence_helper
  • pr/persistence_helper_improvements
  • pr/persistence_helper_tests
  • pr/speedup_persistence_of_unmodified_relationships
  • primary-proxy-through-wrapper
  • production
  • properties
  • property-injection
  • pull/297/head
  • queries
  • query-cache
  • refactoring_compare
  • reflection
  • rel_fix
  • relationship_distinct
  • relationship_fix
  • relationship_via_property
  • rels
  • removal-helper-refactoring
  • removing
  • renovate/actions-cache-5.x
  • renovate/actions-cache-6.x
  • renovate/actions-checkout-5.x
  • renovate/actions-checkout-6.x
  • renovate/actions-checkout-7.x
  • renovate/mariadb-10.x
  • renovate/mariadb-11.x
  • renovate/mariadb-12.x
  • renovate/mysql-26.x
  • renovate/mysql-8.x
  • renovate/mysql-9.x
  • renovate/nextras-multi-query-parser-2.x
  • renovate/nextras-orm-phpstan-2.x
  • renovate/phpstan-packages
  • renovate/postgres-17.x
  • repository_finder
  • repository_magic_methods_priority
  • select_count_optimization
  • set-raw-value-validation
  • simple_value_datetime
  • simplify-db-setup
  • simplify_count_in_relationship
  • sti
  • stor_refac
  • to_collection
  • travis
  • travis_dependencies_lowest
  • two_pass
  • updates
  • v1.0
  • v1.0.0
  • v1.0.0-RC3
  • v1.1
  • v1.1.0
  • v1.1.0-RC2
  • v1.1.0-beta1
  • v1.1.1
  • v1.1.2
  • v1.1.3
  • v1.1.4
  • v2.0
  • v2.0.0
  • v2.0.0-beta1
  • v2.0.0-beta2
  • v2.0.0-beta3
  • v2.0.0-rc1
  • v2.0.0-rc2
  • v2.0.1
  • v2.0.2
  • v2.1
  • v2.1.0
  • v2.1.0-rc1
  • v2.1.1
  • v2.2
  • v2.2.0
  • v2.2.0-rc1
  • v2.2.0-rc2
  • v2.2.0-rc3
  • v2.2.0-rc4
  • v2.2.1
  • v2.2.2
  • v2.2.3
  • v2.3
  • v3.0
  • v3.0.0
  • v3.0.0-beta1
  • v3.0.0-beta2
  • v3.0.0-rc1
  • v3.0.0-rc2
  • v3.0.1
  • v3.0.2
  • v3.0.3
  • v3.1
  • v3.1.0
  • v3.1.0-rc1
  • v3.1.1
  • v3.1.2
  • v3.1.3
  • v3.1.4
  • v4.0
  • v4.0.0
  • v4.0.0-rc1
  • v4.0.1
  • v4.0.2
  • v5.0
  • v5.1
  • weak-reference-identity-map
  • with_query_builder

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

Relevant lines Covered
Build:
Build:
4730 RELEVANT LINES 4349 COVERED LINES
5.39 HITS PER LINE
Source Files on master
  • Tree
  • List 141
  • Changed 28
  • Source Changed 0
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
32193606707 main 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... push 18 Aug 2026 10:41PM UTC web-flow github
91.95
32192935264 claude/nextras-orm-805-pr-oml4a7 Merge 0880e7f45 into aea7d1832 Pull #827 18 Aug 2026 10:32PM UTC web-flow github
91.95
32191453527 js/major-issues-fixes Merge f87c563b2 into aea7d1832 Pull #826 18 Aug 2026 10:13PM UTC web-flow github
92.0
31559587029 renovate/mysql-26.x Merge 0884ba877 into aea7d1832 Pull #824 12 Aug 2026 03:19AM UTC web-flow github
91.95
31489117560 main chore(deps): update dependency phpstan/phpstan to v2.2.8 (#825) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> push 11 Aug 2026 12:02PM UTC web-flow github
91.95
30958568317 renovate/phpstan-packages Merge dd8e3377e into 21fc807bf Pull #825 04 Aug 2026 11:04PM UTC web-flow github
91.95
30558754693 renovate/mysql-26.x Merge bf5830cb4 into 21fc807bf Pull #824 30 Jul 2026 03:54PM UTC web-flow github
91.95
30522788280 main chore(deps): update phpstan packages (#823) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> push 30 Jul 2026 07:26AM UTC web-flow github
91.95
30482948230 renovate/phpstan-packages Merge e8e21db6a into 7b0dbc906 Pull #823 29 Jul 2026 07:09PM UTC web-flow github
91.95
30287043438 renovate/phpstan-packages Merge 7202dcbbc into 7b0dbc906 Pull #823 27 Jul 2026 05:00PM UTC web-flow github
91.95
See All Builds (2061)
  • Repo on GitHub
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