Skip to content

Commit 46413ec

Browse files
committed
Update README.md
1 parent 399481e commit 46413ec

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@
66

77
* [PHPStan](https://phpstan.org/)
88

9-
This extension emits deprecation warnings on code, which uses properties/functions/methods/classes which are annotated as `@deprecated`.
10-
11-
In case you don't own the code which you want to be considered deprecated, use [PHPStan Stub Files](https://phpstan.org/user-guide/stub-files) to declare deprecations for vendor files like
12-
```
13-
/** @deprecated */
14-
class ThirdPartyClass {}
15-
```
16-
17-
189
## Installation
1910

2011
To use this extension, require it in [Composer](https://getcomposer.org/):
@@ -35,3 +26,13 @@ includes:
3526
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
3627
```
3728
</details>
29+
30+
## Deprecating code you don't own
31+
32+
This extension emits deprecation warnings on code, which uses properties/functions/methods/classes which are annotated as `@deprecated`.
33+
34+
In case you don't own the code which you want to be considered deprecated, use [PHPStan Stub Files](https://phpstan.org/user-guide/stub-files) to declare deprecations for vendor files like:
35+
```
36+
/** @deprecated */
37+
class ThirdPartyClass {}
38+
```

0 commit comments

Comments
 (0)