💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# C.116 ZendCodeAnalyzerTask The `ZendCodeAnalyzerTask` analyze PHP source files using the Zend Code Analyzer tool that ships with all versions of Zend Studio. Table C.150:聽Attributes NameTypeDescriptionDefaultRequired`analyzerPath``String`Path to Zend Code Analyzer binaryn/aYes`file``String`Path to PHP source filen/aNo`disable``String`Disable warnings separated by comman/aNo`enable``String`Enable warnings separated by comman/aNo`haltonwarning``Boolean`Stop the build process if warnings occurred during the run. `false`No C.116.1 Example ``` <zendcodeanalyzer analyzerPath="/usr/local/Zend/ZendStudioClient-5.1.0/bin/ZendCodeAnalyzer" file="SomeClass.php"/> ``` Analyze one PHP source file with all default warnings enabled. ``` <zendcodeanalyzer analyzerPath="/usr/local/Zend/ZendStudioClient-5.1.0/bin/ZendCodeAnalyzer" disable="var-ref-notmodified,if-if-else"> <fileset dir="."> <include name="**/*.php"/> </fileset> </zendcodeanalyzer> ``` Analyze a set of PHP source files and disable a few warnings. C.116.2 Supported Nested Tags - `fileset`