collection icon indicating copy to clipboard operation
collection copied to clipboard

:card_index_dividers: A PHP library for representing and manipulating collections.

Results 22 collection issues
Sort by recently updated
recently updated
newest added

## Description There are several methods that document return types as `CollectionInterface` when they should be documented as `static` for IDE completion. ## Motivation and context By correcting these return...

Updates the requirements on [slevomat/coding-standard](https://github.com/slevomat/coding-standard) to permit the latest version. Release notes Sourced from slevomat/coding-standard's releases. 8.3.0 🆕 New sniffs Added SlevomatCodingStandard.Complexity.Cognitive (thanks to @​bkdotcom) Added SlevomatCodingStandard.Files.FileLength (thanks to @​bkdotcom)...

dependencies
php

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2. Changelog Sourced from github/codeql-action's changelog. 2.1.9 - 27 Apr 2022 Add working-directory input to the autobuild action. #1024 The analyze and upload-sarif actions will...

dependencies
github_actions

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2.1.0 to 3.1.0. Release notes Sourced from codecov/codecov-action's releases. v3.1.0 3.1.0 Features #699 Incorporate xcode arguments for the Codecov uploader Dependencies #694 build(deps-dev): bump @​vercel/ncc from 0.33.3...

dependencies
github_actions

Hi! First and foremost, thanks for such an amazing library! I love it

question

Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. Release notes Sourced from actions/checkout's releases. v3.0.0 Update default runtime to node16 v2.4.0 Convert SSH URLs like org-<ORG_ID>@github.com: to https://github.com/ - pr v2.3.5 Update...

dependencies
github_actions

[PhpStorm 2021.2](https://blog.jetbrains.com/phpstorm/2021/07/phpstorm-2021-2-release/#generics) support for generics in PHP. But when I use foreach above collection PhpStomr does not recognize correct element type. ## Should PhpStorm autocomplete inner types in foreach? It...

question

## Description - Improve PHPunit assertions. ## Motivation and context - Using the `assertFalse` to let expected be `false`. ## How has this been tested? N/A ## Types of changes...

## AbstractSet::add() is slow for large collections. `AbstractSet::add()` internally invokes `AbstractCollection::add()` which forwards to `AbstractSet::offsetSet()`. This flow causes `AbstractCollection::contains()` to be invoked twice which, for extremely large collections, can significantly...

enhancement

## Is your feature request related to a problem? Please describe. Yes, when I need to split a [CollectionInterface](https://github.com/ramsey/collection/blob/master/src/CollectionInterface.php) in two, I have to use [CollectionInterface::filter](https://github.com/ramsey/collection/blob/d4de0eea3ae239b0046b39d24add321a7ff35bc5/src/CollectionInterface.php#L135) twice with opposite callbacks,...

enhancement