Skip to content

build(deps-dev): bump symplify/phpstan-rules from 14.18.2 to 14.19.0 - #326

Open
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/symplify/phpstan-rules-14.19.0
Open

dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/symplify/phpstan-rules-14.19.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 16, 2026

Copy link
Copy Markdown
Contributor

Bumps symplify/phpstan-rules from 14.18.2 to 14.19.0.

Release notes

Sourced from symplify/phpstan-rules's releases.

PHPStan Rules 14.19

A batch of new rules - Doctrine Collection typing, repository return types, Symfony controller actions, nullable getters and mocked return types - plus two new rule-set groups you can toggle.

New features 🎉

New modern and collections groups

Two new toggleable rule sets, both enabled by default (#360, #363):

parameters:
    symplify:
        # enabled by default
        modern: true
        collections: true
  • modern groups trait, reference, dynamic-name and foreach-ception rules.
  • collections groups the Doctrine Collection typing rules below.

Doctrine Collection typing rules

Four new rules keep Doctrine Collection usage strictly typed (#363).

CollectionGetterMustReturnCollectionRule - getter of a to-many association must return Collection:

 use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
#[ORM\Table]
#[ORM\Entity]
class Product
{
#[ORM\OneToMany(targetEntity: Item::class, mappedBy: 'product')]
private $items;

public function getItems()


public function getItems(): Collection
{
return $this->items;
}
}

CollectionReturnMustHaveGenericDocblockRule, CollectionParamMustHaveGenericDocblockRule, CollectionPropertyMustHaveGenericDocblockRule - no bare Collection, always a generic docblock:

 use Doctrine\Common\Collections\Collection;
</tr></table>

... (truncated)

Commits
  • df19d02 Add README tip to prefer group toggles over specific rules (#366)
  • ea64ace Remove ExplicitExpectsMockMethodRule as too specific (#364)
  • b2e0e9d Remove NoMockOnlyTestRule as not relevant to check (#365)
  • 38e31ee Add Collection generics, repository return-type, controller action, nullable ...
  • 897222d Remove NoRepositoryCallInDataFixtureRule (#362)
  • e4bb081 Detect test class via TestCase reflection in NoAssertFuncCallInTestsRule (#361)
  • 461cae9 Add modern rule set grouping trait/reference/dynamic-name rules (#360)
  • 1666024 Remove NoDuplicateNonRepeatableAttributeRule (#359)
  • 032b8cd Skip #[AsDoctrineListener] in NoListenerWithoutContractRule (#358)
  • b8dc101 Allow array method call on non-public methods in ForbiddenArrayMethodCallRule...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [symplify/phpstan-rules](https://github.com/symplify/phpstan-rules) from 14.18.2 to 14.19.0.
- [Release notes](https://github.com/symplify/phpstan-rules/releases)
- [Commits](symplify/phpstan-rules@v14.18.2...14.19.0)

---
updated-dependencies:
- dependency-name: symplify/phpstan-rules
  dependency-version: 14.19.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants