-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[6.0] Added typehints for new functions from #40613 #44740
[6.0] Added typehints for new functions from #40613 #44740
Conversation
tx Harald Co-authored-by: Harald Leithner <[email protected]>
Removed additional "}" from reviewed code change
@@ -825,9 +825,11 @@ public static function getTypes($arrayType = 'objectList', $selectTypes = null, | |||
* | |||
* @deprecated 5.3 will be removed in 7.0 | |||
*/ | |||
public function postStoreProcess(TableInterface $table, $newTags = [], $replace = true) | |||
public function postStoreProcess(TableInterface $table, $newTags = [], $replace = true): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the :void as well
public function postStoreProcess(TableInterface $table, $newTags = [], $replace = true): void | |
public function postStoreProcess(TableInterface $table, $newTags = [], $replace = true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @laoneo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The void is still here. Why did this get merged? Its still a bc break.
Pull Request for Issue #40613.
Summary of Changes
Add type hints to new functions.
Testing Instructions
Install patch and check for typehint additions in postStoreProcess() and postStore() functions
Actual result BEFORE applying this Pull Request
new function with limited typehint(TableInterface)
Expected result AFTER applying this Pull Request
new function with all required typehints
Link to documentations
Please select: