承接 nadyita/phpstan-amp-file-rule 相关项目开发

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

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

nadyita/phpstan-amp-file-rule

最新稳定版本:1.0.3

Composer 安装命令:

composer require nadyita/phpstan-amp-file-rule

包简介

A PHPStan rule to detect the use of sync filesystem calls for which there are async counterparts. Must be used in conjunction with amphp/file

README 文档

README

amphp/file provides a set of async filesystem functions that don't block. If you're using the amp framework, you want to eliminate calls to blocking PHP functions as much as possible.

This PHPStan rule will help you detect calls to blocking PHP functions and will propose replacement functions from amphp/file instead. Use this rule to ensure that you don't have any blocking filesystem calls in your code.

Usage

Add the package to your repository with composer require --dev nadyita/phpstan-amp-file-rule.

Edit your project's phpstan.neon file and add this rule:

includes:
    - vendor/nadyita/phpstan-amp-file-rule/phpstan-amp-file-rule.neon

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-28