Skip to content
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

Merged

Conversation

Bodge-IT
Copy link

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:

@Bodge-IT Bodge-IT added this to the Joomla! 6.0.0 milestone Jan 17, 2025
@Bodge-IT Bodge-IT changed the title Added typehints for new functions from #40613 [6.0] Added typehints for new functions from #40613 Jan 17, 2025
Bodge-IT and others added 2 commits January 19, 2025 12:19
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
Copy link
Member

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

Suggested change
public function postStoreProcess(TableInterface $table, $newTags = [], $replace = true): void
public function postStoreProcess(TableInterface $table, $newTags = [], $replace = true)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @laoneo

Copy link
Member

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.

@softforge softforge merged commit 65880dc into joomla:6.0-dev Jan 22, 2025
3 checks passed
@Bodge-IT Bodge-IT deleted the Add_typehints_to_new_functions_from_40613 branch January 22, 2025 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants