2017 © Pedro Peláez
 

library phpstan-consistence

Custom PHPStan Rules for Consistence library

image

mhujer/phpstan-consistence

Custom PHPStan Rules for Consistence library

  • Monday, June 25, 2018
  • by mhujer
  • Repository
  • 3 Watchers
  • 5 Stars
  • 926 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 51 % Grown

The README.md

Custom PHPStan Rules for Consistence library

Build Status Coverage Status Latest Stable Version License, (*1)

This repository provides following custom PHPStan rules for Consistence library, (*2)

  • Check that no class extends \Consistence\ObjectPrototype or uses \Consistence\Type\ObjectMixinTrait somewhere in its hierarchy tree. The type of errors it prevents is caught by PHPStan so there is no need to extend/use anymore.
  • Check that Consistence function wrappers (from ArrayType) are used for array manipulation

Usage

To use those rules, require them in Composer:, (*3)

composer require --dev mhujer/phpstan-consistence

And include them in your project's PHPStan config:, (*4)

includes:
    - vendor/mhujer/phpstan-consistence/rules.neon

The Versions

18/02 2018
24/12 2017

dev-mh-plain-function-calls

dev-mh-plain-function-calls

Custom PHPStan Rules for Consistence library

  Sources   Download

MIT

The Requires

 

The Development Requires