Yannick Warnier 76a0eae5ea Add static resources and remove tests dir for beta release | 5 năm trước cách đây | |
---|---|---|
.. | ||
docs | 5 năm trước cách đây | |
lib | 5 năm trước cách đây | |
.doctrine-project.json | 5 năm trước cách đây | |
CONTRIBUTING.md | 5 năm trước cách đây | |
LICENSE | 5 năm trước cách đây | |
README.md | 5 năm trước cách đây | |
composer.json | 5 năm trước cách đây | |
psalm.xml.dist | 5 năm trước cách đây |
Collections Abstraction library
This release, combined with the release of doctrine/collections
v1.6.1
,
fixes an issue where parsing annotations was not possible
for classes within doctrine/collections
.
Specifically, v1.6.0
introduced Psalm-specific annotations
such as (for example) @template
and @template-implements
,
which were both incorrectly recognized as @template
.
@template
has therefore been removed, and instead we use
the prefixed @psalm-template
, which is no longer parsed
by doctrine/collections
v1.6.1
Total issues resolved: 1
This release bumps the minimum required PHP version to 7.1.3.
Following improvements were introduced:
ArrayCollection#filter()
now allows filtering by key, value or both.ClosureExpressionVisitor
over objects with a defined
accessor and property, the accessor is prioritised./** @var Collection<KeyType, ValueType> */
in their code, and leverage the type propagation deriving from that.Total issues resolved: 16
ArrayCollection#filter()
to filter by key, value or both thanks to @0x13aArrayCollection#filter()
to filter by key and also value thanks to @0x13aArrayCollection::createFrom()
START_WITH
, END_WITH
MEMBER_OF
ArrayCollection#matching()
with sortingAbstractLazyCollection#$initialized
protected for extensibilityAbstractLazyCollection
Comparison::IS
, because it's only there for SQL semantics.
These are fixed in the ORM instead.Add Comparison::CONTAINS
to perform partial string matches:
$criteria->andWhere($criteria->expr()->contains('property', 'Foo'));