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://codercto.com/soft/d/20434.html

Distributed Algorithms

Distributed Algorithms

Wan Fokkink / The MIT Press / 2013-12-6 / USD 40.00

This book offers students and researchers a guide to distributed algorithms that emphasizes examples and exercises rather than the intricacies of mathematical models. It avoids mathematical argumentat......一起来看看 《Distributed Algorithms》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

随机密码生成器
随机密码生成器

多种字符组合密码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具