quant / phpstan
phpstan extensions for quant
Installs: 55
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:phpstan-extension
Requires
- php: ^8.2
- composer-runtime-api: >=2.1
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.1
- quant/core: ^1.0
- squizlabs/php_codesniffer: ^3.7
README
phpstan extensions for quant.
Installation
The extension is already available with quant/quant.
To register this extension with your project, use
$ composer require --dev phpstan/extension-installer && \
composer require --dev quant/phpstan
This should automatically register the extension with your phpstan installation:
includes: - vendor/quant/phpstan
Documentation
quant/phpstan provides support for properly analysing classes that use getter
/ setter
automation with the help
of Quant\Core\Trait\AccessorTrait.
#[Getter] #[Setter(Modifier::PROTECTED)] class A { private string $value; }
will register with availability of A
:
@method A setValue(string $value)
@method string getValue()
Modifiers are considered: setValue()
will be registered with protected
access in this case.
Resources
- Report issues and send Pull Requests in the main quant repository