2017 © Pedro Peláez
 

library types-checker

A tool to find missing type declarations in PHP 7 code

image

kubawerlos/types-checker

A tool to find missing type declarations in PHP 7 code

  • Thursday, November 30, 2017
  • by kubawerlos
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,663 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 28 % Grown

The README.md

Types checker

Latest Stable Version PHP version CI Status Code coverage Psalm type coverage, (*1)

A tool to find missing type declarations in PHP 7 code., (*2)

Installation

composer require --dev kubawerlos/types-checker

Usage

vendor/bin/types-checker src tests

Configuration

Option Description
--autoloader Add custom autoloader file
--exclude Exclude class, interface or trait from report
--skip-return-types Do not report missing return types

Example

<?php

interface Foo
{
    public function baz();
}

class Bar
{
    public function baz($x): array
    {
    }

    public function qux(bool $b, $x)
    {
    }
}
Types checker - 2 items checked:
 - 1 class
 - 1 interface

Issues found:
 - Interface Foo:
   - baz:
     - missing return type
 - Class Bar:
   - baz:
     - parameter $x is missing type
   - qux:
     - missing return type
     - parameter $x is missing type

  4 issues

The Versions

30/11 2017

dev-master

9999999-dev

A tool to find missing type declarations in PHP 7 code

  Sources   Download

MIT

The Requires

 

by Kuba Werłos

php7 type declarations

30/11 2017

v1.1.3

1.1.3.0

A tool to find missing type declarations in PHP 7 code

  Sources   Download

MIT

The Requires

 

by Kuba Werłos

php7 type declarations

06/01 2017

v1.1.2

1.1.2.0

A tool to find missing type declarations in PHP 7 code

  Sources   Download

MIT

The Requires

 

by Kuba Werłos

php7 type declarations

04/01 2017

v1.1.1

1.1.1.0

A tool to find missing type declarations in PHP 7 code

  Sources   Download

MIT

The Requires

 

by Kuba Werłos

php7 type declarations

03/01 2017

v1.1.0

1.1.0.0

A tool to find missing type declarations in PHP 7 code

  Sources   Download

MIT

The Requires

 

by Kuba Werłos

php7 type declarations

16/12 2016

v1.0.3

1.0.3.0

A tool to find missing type declarations in PHP 7 code

  Sources   Download

MIT

The Requires

 

by Kuba Werłos

php7 type declarations

08/12 2016

v1.0.2

1.0.2.0

A tool to find missing type declarations in PHP 7 code

  Sources   Download

MIT

The Requires

 

by Kuba Werłos

php7 type declarations

06/12 2016

v1.0.1

1.0.1.0

A tool to find missing type declarations in PHP 7 code

  Sources   Download

MIT

The Requires

 

by Kuba Werłos

php7 type declarations

05/12 2016

v1.0.0

1.0.0.0

A tool to find missing type declarations in PHP 7 code

  Sources   Download

MIT

The Requires

 

by Kuba Werłos

php7 type declarations