Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpstan Extensions Laravel Package

slam/phpstan-extensions

PHPStan extensions with extra strict rules: unused variables, closure parameter typehints, enforce ::class notation, forbid goto, naming conventions, validate PHPUnit annotation FQCNs, and restrict access to globals/static properties in specific contexts.

View on GitHub
Deep Wiki
Context7
v6.8.0
v6.4.1

What's Changed

New Contributors

Full Changelog: https://github.com/Slamdunk/phpstan-extensions/compare/v6.4.0...v6.4.1

v6.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/Slamdunk/phpstan-extensions/compare/v6.2.0...v6.3.0

v6.2.0
v5.1.0
v5.0.2

Fix variables in anonymous functions are reporting as unused when they are used (#28)

v5.0.1

Allow PHP 8.0

v5.0.0

Symfony related rules moved to dedicated conf conf/symfony-rules.neon.

v4.0.0
  1. Support PHPStan 0.12
  2. Drop DateTimeImmutableAlteredAndUnusedRule, superseeded by PHPStan 0.12 release on level 4
v3.6.1

Use RuleErrorBuilder for more precise line info #19

v3.6.0

Add MissingClosureParameterTypehintRule #18

v3.5.2

Fix False-positive unused variable (#16)

v3.5.1

Bugfix: Filesystem::isReasable is not an API

v3.5.0
  1. Added SlamPhpStan\SymfonyFilesystemRule: forbid calls to raw filesystem functions well wrapped by symfony/filesystem component
  2. Added SlamPhpStan\SymfonyProcessRule: forbid calls to raw system functions well wrapped by symfony/process component
v3.4.0

Added SlamPhpStan\DateTimeImmutableAlteredAndUnusedRule: check for DateTimeImmutable calls that alter the object but don't use the result; likely an error of the transition from mutable DateTime class

v3.3.0

Added SlamPhpStan\AccessGlobalVariableWithinContextRule: inhibit the access to globals within classes that extend or implement a certain class/interface

v3.2.0

yii-rules: inhibit also yii\db\ActiveQueryInterface from accessing Yii::$app singletons

v3.1.0

Added SlamPhpStan\AccessStaticPropertyWithinModelContextRule: inhibit the access to static attributes of a class within classes that extend or implement a certain class/interface, useful to prohibit usage of singletons in models

v3.0.0

Support for PHPStan 0.11

v2.0.1

Handle class strings that start with a backslash

v2.0.0

Support for PHPStan 0.10

v1.2.1

UnusedVariableRule: skip global variables

v1.2.0

Added SlamPhpStan\UnusedVariableRule

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle