zonuexe / phpstan-safephp-lite
一个简单的 PHPStan 扩展,用于安全 PHP 函数
0.0.1
2024-03-25 12:19 UTC
Requires (Dev)
- php: >=8.2
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^11.0
- symplify/easy-coding-standard: ^12.1
- thecodingmachine/safe: ^2.5
This package is auto-updated.
Last update: 2024-08-26 01:48:06 UTC
README
这是一个简单的 PHPStan 扩展,用于 Safe PHP(thecodingmachine/safe) 函数。
与 phpstan-safe-rule 有何不同?
thecodingmachine/phpstan-safe-rule,由 Safe PHP 的开发者维护,包含建议替换内置函数为 Safe 的规则,但已有一段时间没有更新。
此包仅提供 Safe 函数的类型定义,它包装了 PHPStan 附带的 DynamicReturnType 扩展。如果您将来更新 PHPStan,Safe 函数的类型定义将自动得到改进。
版权
此软件包根据 Apache License 2.0 发布。
Copyright 2024 USAMI Kenta
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://apache.ac.cn/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.