承接 kubawerlos/types-checker 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kubawerlos/types-checker

最新稳定版本:v2.2.0

Composer 安装命令:

composer require kubawerlos/types-checker

包简介

A tool to find missing type declarations in PHP 7 code

README 文档

README

Latest Stable Version PHP version CI Status Code coverage Psalm type coverage

A tool to find missing type declarations in PHP 7 code.

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

统计信息

  • 总下载量: 41.98k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 4
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-04