PHP 静态分析工具 PHPStan

软件介绍

PHPStan 是一款 PHP 静态分析工具,它专注于在代码中发现错误而不实际运行它。 它甚至能在代码编写测试之前捕获整个类的错误。

PHPStan 让 PHP 更接近编译语言,这意味着在运行实际行之前可以检查代码的每一行的正确性。

使用

要开始对代码执行分析,需要在 Compose r中使用 PHPStan :

composer require --dev phpstan/phpstan

Composer 将在其 bin-dir 中安装 PHPStan 的可执行文件,默认为 vendor / bin。

分析

为了让 PHPStan 分析代码库,需使用分析命令,并将其指向正确的目录。

例如,

vendor/bin/phpstan analyse src tests

本文地址:https://www.codercto.com/soft/d/20434.html

More Eric Meyer on CSS (Voices That Matter)

More Eric Meyer on CSS (Voices That Matter)

Eric A. Meyer / New Riders Press / 2004-04-08 / USD 45.00

Ready to commit to using more CSS on your sites? If you are a hands-on learner who has been toying with CSS and want to experiment with real-world projects that will enable you to see how CSS......一起来看看 《More Eric Meyer on CSS (Voices That Matter)》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

SHA 加密
SHA 加密

SHA 加密工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具