Skip to content

Commit 5050cad

Browse files
committed
Removing doc regarding type hints
1 parent 49e9f57 commit 5050cad

File tree

2 files changed

+0
-150
lines changed

2 files changed

+0
-150
lines changed

README.md

-10
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ They are more "strict" than the default PHPStan rules and some may be controvers
2424
- When throwing an exception inside a catch block, [you should pass the catched exception as the "previous" exception](http://bestpractices.thecodingmachine.com/php/error_handling.html#wrapping-an-exception-do-not-lose-the-previous-exception)
2525
- If you catch a `Throwable`, an `Exception` or a `RuntimeException`, you must rethrow the exception.
2626

27-
### Type-hinting related rules
28-
29-
This is a PHP 7.1+ rule:
30-
31-
- You should use type-hinting when possible
32-
- If not possible, you should use a Docblock to specify the type
33-
- If type-hinting against an array, you should use a Docblock to further explain the content of the array
34-
35-
[More about type-hinting related rules...](doc/typehinting_rules.md)
36-
3727
### Superglobal related rules
3828

3929
- The use of [`$_GET`, `$_POST`, `$_FILES`, `$_COOKIE`, `$_SESSION`, `$_REQUEST` is forbidden](http://bestpractices.thecodingmachine.com/php/organize_your_code.html#stop-using-superglobals-).

doc/typehinting_rules.md

-140
This file was deleted.

0 commit comments

Comments
 (0)