wyrihaximus/phpstan-react

👎 ReactPHP 扩展用于 PHPStan

1.0.0 2024-02-29 20:19 UTC

README

Continuous Integration Latest Stable Version Total Downloads License

安装

要通过 Composer 安装,请使用以下命令,它将自动检测最新版本并将其绑定到 ^

composer require wyrihaximus/phpstan-react

使用方法

将规则文件包含在此包的根目录中,以便 PHPStan 检查您的代码中是否存在阻止函数

includes:
	- vendor/wyrihaximus/phpstan-react/phpstan-reactphp-rules.neon

函数

fclose

file_exists

相关包

  • react/filesystem

建议的替代方案

  • React\Filesystem\AdapterInterface::detect

文档

file_get_contents

相关包

  • react/filesystem

建议的替代方案

  • React\Filesystem\Node\FileInterface::getContents

文档

file_put_contents

相关包

  • react/filesystem

建议的替代方案

  • React\Filesystem\Node\FileInterface::putContents

文档

fopen

相关包

  • react/filesystem
  • react/socket

建议的替代方案

  • React\Filesystem\Node\FileInterface::getContents
  • React\Socket\Connector::connect

文档

fread

相关包

  • react/stream

建议的替代方案

  • React\Stream\ReadableStreamInterface::on

文档

fwrite

相关包

  • react/stream

建议的替代方案

  • React\Stream\WritableStreamInterface::write

文档

gethostbyname

相关包

  • react/dns

建议的替代方案

  • React\Dns\ResolverInterface::resolve

文档

is_dir

相关包

  • react/filesystem

建议的替代方案

  • React\Filesystem\AdapterInterface::detect

文档

is_file

相关包

  • react/filesystem

建议的替代方案

  • React\Filesystem\AdapterInterface::detect

文档

is_link

相关包

  • react/filesystem

建议的替代方案

  • React\Filesystem\AdapterInterface::detect

文档

mkdir

相关包

  • react/filesystem

建议的替代方案

  • React\Filesystem\Node\NotExistInterface::createDirectory

文档

sleep

相关包

  • react/promise-timer

建议的替代方案

  • React\Promise\Timer\sleep

文档

time_nanosleep

相关包

  • react/promise-timer

建议的替代方案

  • React\Promise\Timer\sleep

文档

time_sleep_until

相关包

  • react/promise-timer

建议的替代方案

  • React\Promise\Timer\sleep

文档

usleep

相关包

  • react/promise-timer

建议的替代方案

  • React\Promise\Timer\sleep

文档

许可证

MIT 许可证 (MIT)

版权所有 (c) 2024 Cees-Jan Kiewiet

特此授予任何人免费获得此软件及其相关文档文件(以下简称“软件”)副本的权利,无限制地处理该软件,包括但不限于使用、复制、修改、合并、发布、分发、再许可和/或出售软件副本,并允许向获得软件副本的个人提供这样做,但受以下条件约束

上述版权声明和本许可声明应包含在软件的所有副本或主要部分中。

软件按“原样”提供,不提供任何明示或暗示的保证,包括但不限于对适销性、特定用途的适用性和非侵权的保证。在任何情况下,作者或版权所有者不对任何索赔、损害或其他责任负责,无论这些责任是由于合同、侵权或其他方式引起的,无论是由于软件或软件的使用或其他与之相关的方式。