Skip to content

Commit 5705a90

Browse files
committed
4.0 | Wiki: remove references to "zend_ca_path'
... which is specific to the `Zend.Debug.CodeAnalyzer` sniff, which is removed in PHPCS 4.0. The only remaining reference is specifically about that sniff and is annotated as "PHPCS < 4.0.0".
1 parent 93f71d1 commit 5705a90

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

wiki/Annotated-Ruleset.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ The following sample file documents the `ruleset.xml` format and shows you the c
4949
such as show_warnings and report_format.
5050
5151
The following tag is equivalent to the command line argument:
52-
--runtime-set zend_ca_path /path/to/ZendCodeAnalyzer
52+
--runtime-set php_version 80100
5353
-->
54-
<config name="zend_ca_path" value="/path/to/ZendCodeAnalyzer"/>
54+
<config name="php_version" value="80100"/>
5555

5656
<!--
5757
If no files or directories are specified on the command line
@@ -453,10 +453,10 @@ The following sample file shows a `ruleset.xml` file that makes use of selective
453453
<ruleset name="Selective Standard">
454454

455455
<!--
456-
Use an external tool only when checking coding standards
456+
Use the php_version setting only when checking coding standards
457457
and not while fixing a file.
458458
-->
459-
<config phpcs-only="true" name="zend_ca_path" value="/path/to/ZendCodeAnalyzer"/>
459+
<config phpcs-only="true" name="php_version" value="70400"/>
460460

461461
<!--
462462
Exclude some files from being fixed.

wiki/Configuration-Options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ $ phpcs --config-set jsl_path /path/to/jsl
301301
302302
## Zend Coding Standard Configuration Options
303303
304-
### Setting the path to the Zend Code Analyzer
304+
### Setting the path to the Zend Code Analyzer (PHP_CodeSniffer < 4.0.0)
305305
306306
The `Zend.Debug.CodeAnalyzer` sniff will check each file using the Zend Code Analyzer, a tool that comes with Zend Studio. Use the `zend_ca_path` configuration option to tell the Zend Code Analyzer sniff where to find the tool.
307307

0 commit comments

Comments
 (0)