Skip to content

Commit b91e074

Browse files
committed
4.0 dev upgrade guide: fix tabs vs spaces
1 parent 3979eac commit b91e074

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

wiki/Version-4.0-Developer-Upgrade-Guide.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ Support for the JS/CSS tokenizers has been removed. To cause the least amount of
118118

119119
* Sniffs which specify the `$supportedTokenizers` property and don't include `'PHP'` in the array value will no longer run on PHPCS 4.0.
120120
The end-user will be shown an error message about this and PHP_CodeSniffer will exit with this error.
121-
This error message can be silenced by implementing the `PHP_CodeSniffer\Sniffs\DeprecatedSniff` interface (PHPCS 3.9.0+) to mark the sniff as deprecated.
122-
In that case, the sniff will show a deprecation notice when running on PHPCS 3.x and the sniff will be silently ignored on PHPCS 4.x.
121+
This error message can be silenced by implementing the `PHP_CodeSniffer\Sniffs\DeprecatedSniff` interface (PHPCS 3.9.0+) to mark the sniff as deprecated.
122+
In that case, the sniff will show a deprecation notice when running on PHPCS 3.x and the sniff will be silently ignored on PHPCS 4.x.
123123
* Sniffs which specify the `$supportedTokenizers` property and include both `'PHP'` as well as something else, will run against the scanned files, with all files being treated as PHP, as of PHPCS 4.0.0 and will not cause any notices about the sniff to be shown to the end-user.
124124

125125
This has been implemented in this way to allow external standards to be cross-version compatible with PHPCS 3.x as well as 4.x for a while and to not force external standards to release a new major release to support PHPCS 4.0 (due to sniffs needing to be removed).
@@ -545,8 +545,8 @@ The `protected` `getDeclarationNameWithNamespace()` and `getNamespaceOfScope()`
545545

546546
* The visibility of the following class constants has changed from `public` to `private`. If you used these in your own code, you will need to create your own constants instead:
547547
- `PHP_CodeSniffer\Generators\HTML::STYLESHEET`
548-
- `PHP_CodeSniffer\Util\Timing::MINUTE_IN_MS`
549-
- `PHP_CodeSniffer\Util\Timing::SECOND_IN_MS`
548+
- `PHP_CodeSniffer\Util\Timing::MINUTE_IN_MS`
549+
- `PHP_CodeSniffer\Util\Timing::SECOND_IN_MS`
550550

551551
* The `PHP_CodeSniffer\Util\Standards::printInstalledStandards()` method is deprecated and should no longer be used. Use `echo PHP_CodeSniffer\Util\Standards::prepareInstalledStandardsForDisplay()` instead once support for PHPCS 3.x is being dropped.
552552

@@ -625,7 +625,7 @@ In practice this means the following for most test suites for external standards
625625
Autoload::addSearchPath($details['path'], $details['namespace']);
626626
}
627627
```
628-
> [!NOTE]
628+
> [!NOTE]
629629
> If you load the PHPCS test `bootstrap.php` file from within _your_ test `bootstrap.php` file, this is not needed, as the PHPCS bootstrap will already do this for you.
630630
4. There is no need anymore to set the `PHPCS_IGNORE_TESTS` environment variable in a PHPUnit config file.
631631
5. Update the import use statements for the sniff tests to point to the `AbstractSniffTestCase` and update the `extends` in the class declaration, like so:

0 commit comments

Comments
 (0)