Registry / testing / phpstan-phpstan-beberlei-assert

phpstan-phpstan-beberlei-assert

JSON →
library2.0.2phppackagistunverified

PHPStan beberlei/assert extension.

composer require phpstan/phpstan-beberlei-assert
INSTALL
IMPORT
SIG · PHPSTAN-PHPSTAN-BE
P
phpstan-phpstan-beberlei-assert
testingphpv2.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AssertTypeSpecifyingExtension
use PHPStan\Extension\BeberleiAssert\AssertTypeSpecifyingExtension;

Automatically registers with PHPStan to improve type inference for beberlei/assert.

// This extension is automatically registered when installed via Composer. // No manual use statement needed; it enhances PHPStan's analysis of assert() calls. // Example code that benefits: use Assert\Assertion; Assertion::string($value); // PHPStan will now infer $value is a string after this call.
Debug
Known issues
breakingRequires PHPStan 1.0+ and beberlei/assert 3.0+
fix
Update PHPStan and beberlei/assert to compatible versions.
affects: <2.0.0
Upgrade
Version history
2.0.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
Resources
phpstan-phpstan-beberlei-assert — pip install phpstan-phpstan-beberlei-assert · libregistry