bellangelo/phpstan-require-file-exists 问题修复 & 功能扩展

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

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

bellangelo/phpstan-require-file-exists

最新稳定版本:v1.2.0

Composer 安装命令:

composer require bellangelo/phpstan-require-file-exists

包简介

A PHPStan rule for checking if the files mentioned in the imports really exist.

README 文档

README

UPDATE: This rule has been merged into PHPStan itself. Here is the PR: phpstan/phpstan-src#3294

Weirdly enough, PHPStan does not check if a file exists when used in a require or include statement. This is a PHPStan rule that tries to do exactly that.

Installation

composer require --dev bellangelo/phpstan-require-file-exists

Development

For local development and testing, composer.json contains several commands that you can run.

  • composer run tests - runs the PHPUnit tests.
  • composer run phpstan - runs PHPStan on the src and tests directories.
  • composer run phpcs - runs PHP CodeSniffer on the src and tests directories.
  • composer run phpcs:fix - runs PHP CodeSniffer on the src and tests directories and tries to fix the issues.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2024-08-01