Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion general/development/policies/deprecation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ public function foobar(int $old, array $params): array {

</Tabs>

- Keep the existing parameters and return type for both functions and methods.
- Function and Method signatures **must not change**, that is:
- keep any existing parameters; and
- keep any existing return type.
- The deprecation 'since' tag should remain as the version where the initial deprecation happened.
- Deprecated classes must be completely removed.
- 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.
Expand Down