Skip to content

Commit

Permalink
feature #50842 Add missing return types to magic methods (wouterj)
Browse files Browse the repository at this point in the history
This PR was merged into the 6.4 branch.

Discussion
----------

Add missing return types to magic methods

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | yes
| Tickets       | -
| License       | MIT
| Doc PR        | -

I promise, these 72 methods really are the last methods that did not have a return type already 🙃

Commits
-------

6b270010c4 Add missing return types to magic methods
  • Loading branch information
nicolas-grekas committed Jul 5, 2023
2 parents cde6dbd + 4b4aee5 commit 58817d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lock.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __sleep(): array
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
}

public function __wakeup()
public function __wakeup(): void
{
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
}
Expand Down

0 comments on commit 58817d8

Please sign in to comment.