Tags: garak/collections
Tags
Release [1.6.3](https://github.com/doctrine/collections/milestone/10) 1.6.3 ===== - Total issues resolved: **1** - Total pull requests resolved: **2** - Total contributors: **2** Enhancement ----------- - [213: Remove PHP 7.4 from `allow&doctrine#95;failures` matrix](doctrine#213) thanks to @carusogabriel Bug --- - [211: fix doctrine#210 by including psalm-* annotations to ArrayCollection#map()](doctrine#211) thanks to @someniatko
This release fixes the inferred type of `ArrayCollection::createFrom(… …)` and `ArrayCollection#filter()` when subclassing `ArrayCollection`. Total issues resolved: **2** - [200: Incorrect inferred types when subclassing `ArrayCollection`](doctrine#200) thanks to @Rarst - [201: Return `static` for `ArrayCollection::createFrom()` and `ArrayCollection#filter()`](doctrine#201) thanks to @muglug
This release, combined with the release of [`doctrine/collections` `v… …1.6.1`](https://github.com/doctrine/collections/releases/tag/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** - [186: Use `@psalm-template` annotation to avoid clashes](doctrine#186) thanks to @muglug
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. * When using the `ClosureExpressionVisitor` over objects with a defined accessor and property, the accessor is prioritised. * Updated testing tools and coding standards, autoloading, which also led to marginal performance improvements * Introduced generic type docblock declarations from [psalm](https://github.com/vimeo/psalm), which should allow users to declare `/** @var Collection<KeyType, ValueType> */` in their code, and leverage the type propagation deriving from that. Total issues resolved: **16** - [127: Use PSR-4](doctrine#127) thanks to @Nyholm - [129: Remove space in method declaration](doctrine#129) thanks to @bounoable - [130: Update build to add PHPCS and PHPStan](doctrine#130) thanks to @lcobucci - [131: ClosureExpressionVisitor > Don't duplicate the accessor when the field already starts with it](doctrine#131) thanks to @ruudk - [139: Apply Doctrine CS 2.1](doctrine#139) thanks to @Majkl578 - [142: CS 4.0, version composer.lock, merge stages](doctrine#142) thanks to @Majkl578 - [144: Update to PHPUnit 7](doctrine#144) thanks to @carusogabriel - [146: Update changelog for v1.4.0 and v1.5.0](doctrine#146) thanks to @GromNaN - [154: Update index.rst](doctrine#154) thanks to @chraiet - [158: Extract Selectable method into own documentation section](doctrine#158) thanks to @SenseException - [160: Update homepage](doctrine#160) thanks to @Majkl578 - [165: Allow `ArrayCollection#filter()` to filter by key, value or both](doctrine#165) thanks to @0x13A - [167: Allow `ArrayCollection#filter()` to filter by key and also value](doctrine#167) thanks to @0x13A - [175: CI: Test against PHP 7.4snapshot instead of nightly (8.0)](doctrine#175) thanks to @Majkl578 - [177: Generify collections using Psalm](doctrine#177) thanks to @nschoellhorn - [178: Updated doctrine/coding-standard to 6.0](doctrine#178) thanks to @patrickjahns
This release bumps the minimum required PHP version to 7.1.0. In addition to that, official HHVM support has been dropped. Strict comparison has been added to the `ClosureExpressionVisitor`, and numerous documentation fixes were merged. Total issues resolved: **10** - [97: Enable strict comparison for arrays](doctrine#97) thanks to @vlastv - [104: Removes support for PHP 5.x](doctrine#104) thanks to @railto - [108: Removed unsupported versions from travis config](doctrine#108) thanks to @mikeSimonson - [110: Add hhvm in the allowed failures](doctrine#110) thanks to @mikeSimonson - [112: Fix DocBlock for derived classes](doctrine#112) thanks to @ostrolucky - [118: Drop HHVM support](doctrine#118) thanks to @lcobucci - [119: Require PHP 7.1](doctrine#119) thanks to @lcobucci - [122: Add missing PHP version bumping to 7.1](doctrine#122) thanks to @soullivaneuh - [124: Updated the return typehint docblock of partition](doctrine#124) thanks to @gmponos - [126: Converted the docblocks of ArrayCollection to short type hints](doctrine#126) thanks to @gmponos
Merge pull request doctrine#105 from gabbydgab/hot-fix/phpunit-deprec… …ated-methods bumped phpunit to 5.7 and fixed deprecated methods
Total issues resolved: **9** - [26: Explicit casting of first and max results](doctrine#26) - [30: typo fix.](doctrine#30) - [31: CS fixes and tidy up of tests](doctrine#31) - [36: Tidy up and CS fixes](doctrine#36) - [42: small style changes to comply with PSR2](doctrine#42) - [47: Added build status](doctrine#47) - [49: Keep keys when using array collection's matching()](doctrine#49) - [52: Made initialized protected for extensibility.](doctrine#52) - [56: travis: PHP 7.0 nightly added + few improvements](doctrine#56)
PreviousNext