Dmitriy Gnatenko da31d8a6df Revert "Vendors updated" | пре 4 година | |
---|---|---|
.. | ||
docs | пре 4 година | |
lib | пре 4 година | |
.doctrine-project.json | пре 4 година | |
CONTRIBUTING.md | пре 4 година | |
LICENSE | пре 4 година | |
README.md | пре 4 година | |
composer.json | пре 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'));