Skip to content

Commit 9f91fb7

Browse files
authored
Merge pull request #1312 from andrewnicols/clarifyMethodSignatures
[docs] Further clarify final deprecation procedure
2 parents 7cbc598 + 6c0dc58 commit 9f91fb7

File tree

1 file changed

+3
-1
lines changed
  • general/development/policies/deprecation

1 file changed

+3
-1
lines changed

general/development/policies/deprecation/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ public function foobar(int $old, array $params): array {
147147

148148
</Tabs>
149149

150-
- Keep the existing parameters and return type for both functions and methods.
150+
- Function and Method signatures **must not change**, that is:
151+
- keep any existing parameters; and
152+
- keep any existing return type.
151153
- The deprecation 'since' tag should remain as the version where the initial deprecation happened.
152154
- Deprecated classes must be completely removed.
153155
- The content of the PHPDoc should be removed, leaving only the `@deprecated` tag with the notice and, optionally, the replacement information. This includes all `@param`, `@return`, and other tags, as well as the description.

0 commit comments

Comments
 (0)