---
title: "rector-laravel/laravel-collection set"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

rector-laravel's `laravel-collection` set: the Pun lint rules its Rector rules map to, and nothing else.

```toml
[lint]
sets = ["rector-laravel/laravel-collection"]
```

A rule merged from several Rector rules runs only the rewrites of this set's Rector rules, unless a [preset](/docs/configuration/presets#lint-presets) also turns it on. Rector rules that are format rules in Pun run under `[format]` instead. Laravel, Pest, and PHPUnit rules also need their [extension](/docs/configuration/pun-toml#extensions).

## Rules (5)

| Rule | Rector rules | Status |
| --- | --- | --- |
| [`lint/laravel/no-collection-aliases`](/docs/rules/lint/laravel/no-collection-aliases) | `UnaliasCollectionMethodsRector` | Ported |
| [`lint/laravel/no-negated-contains`](/docs/rules/lint/laravel/no-negated-contains) | `AvoidNegatedCollectionContainsOrDoesntContainRector` | Ported |
| [`lint/laravel/no-negated-filter`](/docs/rules/lint/laravel/no-negated-filter) | `AvoidNegatedCollectionFilterOrRejectRector` | Ported |
| [`lint/laravel/prefer-collection-all`](/docs/rules/lint/laravel/prefer-collection-all) | `ConvertEnumerableToArrayToAllRector` | Ported |
| [`lint/laravel/prefer-collection-is-empty`](/docs/rules/lint/laravel/prefer-collection-is-empty) | `CollectionCountComparisonToIsEmptyRector` | Ported |
