zonuexe/phpstan-safe-rule-simple

一个用于检测安全问题的 PHPStan 规则。必须与 thecodingmachine/safe 一起使用

安装: 2

依赖: 0

建议者: 0

安全: 0

星星: 0

关注者: 1

分支: 17

类型:phpstan-extension

v1.2.0 2023-02-03 03:51 UTC

This package is auto-updated.

Last update: 2024-08-24 12:26:28 UTC


README

注意 此分支将 thecodingmachine/phpstan-safe-rule 的依赖版本缩减,以提供移除 DynamicFunctionReturnTypeExtension 的纯规则。

thecodingmachine/safe 包提供了一组核心 PHP 函数的重写,当遇到错误时抛出异常而不是返回 false

此 PHPStan 规则可以帮助您检测不安全函数调用,并提出使用 thecodingmachine/safe 变体。

有关安装和使用的详细信息,请参阅 thecodingmachine/safe 文档