ouidade e64b18b9a9 first commit | 4 년 전 | |
---|---|---|
.. | ||
docs | 4 년 전 | |
lib | 4 년 전 | |
.doctrine-project.json | 4 년 전 | |
CONTRIBUTING.md | 4 년 전 | |
LICENSE | 4 년 전 | |
README.md | 4 년 전 | |
psalm.xml.dist | 4 년 전 |
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'));