open-sdk / framework-phpstan
Open SDK extensions for PHPStan
Installs: 2 085
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.1
- phpstan/phpstan: ^0.9.1
Requires (Dev)
- open-sdk/framework: ^0.4.0
- phpstan/phpstan-phpunit: ^0.9.3
- phpunit/phpunit: ^6.5.5
- squizlabs/php_codesniffer: ^3.2.2
This package is not auto-updated.
Last update: 2024-11-10 05:14:20 UTC
README
This package provides some extensions of the Open SDK framework for PHPStan to improve the overall developer's experience.
Features
- Dynamic type for OpenSdk\Resource\Manager::asModel()
Dynamic type: resource manager's asModel
OpenSdk\Resource\Manager::asModel()
returns the response value, wrapped in a resource model.
The model instance can either be the default model type or a custom subclass.
Usage
To use this extension for PHPStan add it to the requirements within Composer.
$ composer require --dev open-sdk/framework-phpstan
And add it to the PHPStan configuration.
includes:
- vendor/open-sdk/framework-phpstan/extension.neon
License
The MIT License (MIT). Please see License File for more information.