open-sdk/framework-phpstan

Open SDK extensions for PHPStan

0.1.0 2018-01-13 21:03 UTC

This package is not auto-updated.

Last update: 2024-04-28 02:32:36 UTC


README

Latest Release Build Status Total Downloads

This package provides some extensions of the Open SDK framework for PHPStan to improve the overall developer's experience.

Features

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.