Skip to content

Latest commit

 

History

History
9 lines (9 loc) · 567 Bytes

2023-01-04-add-static-type-hints-on-collections-for-better-static-code-analysis.md

File metadata and controls

9 lines (9 loc) · 567 Bytes
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 4 column 16
---
title: Add static as return value on EntityCollection methods for better static code analysis
author: Joshua Behrens
author_email: code@joshua-behrens.de
author_github: @JoshuaBehrens
issue: NEXT-25032
---

Core

  • Added PHPDoc @return type static to \Shopware\Core\Framework\DataAbstractionLayer\EntityCollection::filterByProperty, \Shopware\Core\Framework\DataAbstractionLayer\EntityCollection::filterAndReduceByProperty and \Shopware\Core\Framework\DataAbstractionLayer\EntityCollection::getList so it is understood as static instead of inherently mixed