nadyita/phpstan-amp-file-rule 问题修复 & 功能扩展

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

邮箱: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.7k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固