Skip to content

Bump symplify/phpstan-rules from 14.10.0 to 14.19.3 - #1095

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/symplify/phpstan-rules-14.19.3
Closed

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

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Bumps symplify/phpstan-rules from 14.10.0 to 14.19.3.

Release notes

Sourced from symplify/phpstan-rules's releases.

PHPStan Rules 14.19.3

Improvement 🔧

CommandMustHaveAsCommandAttributeRule now runs only when symfony/console is a direct require dependency (#381)

A require-dev only entry, or no entry at all, is ignored. Projects that pull Symfony Console transitively or just for development are no longer forced to add #[AsCommand].

PHPStan Rules 14.19.2

  • Run CommandMustHaveAsCommandAttributeRule only when composer.json requires symfony/console, so projects pulling console only transitively are no longer flagged (#380)
  • Resolve imported short @see class names in SeeAnnotationToTestRule (#379)

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
</tr></table>

... (truncated)

Commits
  • 8ffdf72 Skip CommandMustHaveAsCommandAttributeRule when symfony/console not in requir...
  • 51391ef Run CommandMustHaveAsCommandAttributeRule only when composer.json requires sy...
  • 663fa6c Resolve imported short @​see class names in SeeAnnotationToTestRule (#379)
  • 3e1ea6b Skip "static::" const fetch overridden by child class in ForbiddenStaticClass...
  • bfba4cb [Rector] Add NoScopeFetchBeforeCheapGuardRule and NarrowReturnToUnionParamRul...
  • 2871fcc Skip Doctrine repositories in NoDocumentMockingRule (#372)
  • 9882995 Skip #[Route] attribute actions in NoPublicNonActionMethodInControllerRule (#...
  • a5e2afe Extend RequireArrayShapeReturnRule to positional tuple returns (#369)
  • df19d02 Add README tip to prefer group toggles over specific rules (#366)
  • ea64ace Remove ExplicitExpectsMockMethodRule as too specific (#364)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Oct 27, 2026
@dependabot
dependabot Bot force-pushed the dependabot/composer/symplify/phpstan-rules-14.19.3 branch from 47f0f3a to 59a55d4 Compare October 28, 2026 06:04
Bumps [symplify/phpstan-rules](https://github.com/symplify/phpstan-rules) from 14.10.0 to 14.19.3.
- [Release notes](https://github.com/symplify/phpstan-rules/releases)
- [Commits](symplify/phpstan-rules@14.10.0...14.19.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/composer/symplify/phpstan-rules-14.19.3 branch from 59a55d4 to efd316d Compare October 29, 2026 06:09
@staabm staabm closed this Oct 29, 2026
@dependabot @github

dependabot Bot commented on behalf of github Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/composer/symplify/phpstan-rules-14.19.3 branch October 29, 2026 06:10
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.

1 participant