hiperdk/phpstan-rules 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

hiperdk/phpstan-rules

最新稳定版本:1.0.0

Composer 安装命令:

composer require --dev hiperdk/phpstan-rules

包简介

PHPStan rules by Hiper

关键字:

README 文档

README

CI Release Release Packagist Version License

Rules list

You should not have a untyped const

public const x = 'y';

public const string x = 'y';

Installation

We assume that PHPStan is already installed in your project.

To use this extension, require it in Composer:

composer require --dev hiperdk/phpstan-rules

If you also install phpstan/extension-installer then you're all set!

Manual installation

If you don't want to use phpstan/extension-installer, include phpstan-strict-rules.neon in your project's PHPStan config:

includes:
    - vendor/hiperdk/phpstan-rules/extension.neon

Development setup

Requirements

  • Docker
  • Docker compose
  • Make

Getting started

# Clone the repository
$ git clone git@github.com:hiperdk/phpstan-rules.git
$ cd phpstan-rules
$ make
# You now have a shell with PHP and can run the following commands:
$ composer phpunit
$ composer phpstan

Releasing new version

# Replace 1.0.0 with the version you want to release
$ git tag -m "1.0.0" 1.0.0
$ git push origin 1.0.0
# GitHub Actions will automatically create a new release on GitHub and Packagist

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-04-01