- πΊπΈUnited States smustgrave
This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request β as a guide.
This will need a test case to show the issue.
- Status changed to Needs review
almost 2 years ago 5:04pm 6 February 2023 - π·π΄Romania amateescu
Here's a test for this. Also, this would've been caught from the start if we had return types on the workspace repository methods, so adding them now while we're at it.
The last submitted patch, 11: 3154084-11-test-only.patch, failed testing. View results β
- Status changed to RTBC
almost 2 years ago 8:13pm 6 February 2023 - πΊπΈUnited States smustgrave
Thanks for the quick followup!
Test case proves the issue and the typehints are a welcomed addition.
LGTM.
The last submitted patch, 11: 3154084-11-test-only.patch, failed testing. View results β
- Status changed to Needs work
almost 2 years ago 3:51pm 14 February 2023 - π¬π§United Kingdom catch
+++ b/core/modules/workspaces/src/WorkspaceRepositoryInterface.php @@ -17,7 +17,7 @@ interface WorkspaceRepositoryInterface { * - descendants: The descendant IDs of the workspace. */ - public function loadTree(); + public function loadTree(): array; /** * Returns the descendant IDs of the passed-in workspace, including itself. @@ -28,7 +28,7 @@ public function loadTree(); @@ -28,7 +28,7 @@ public function loadTree(); * @return string[] * An array of descendant workspace IDs, including the passed-in one. */ - public function getDescendantsAndSelf($workspace_id); + public function getDescendantsAndSelf($workspace_id): array;
I don't think we can do this in a minor, it would break any code implementing the interface (as unlikely as that might be). See π± [Meta] Implement strict typing in existing code Active . Needs splitting to its own issue I think.
- Status changed to RTBC
almost 2 years ago 8:45am 15 February 2023 - π·π΄Romania amateescu
That's ok, it wasn't the important part of the patch anyway :)
- Status changed to Fixed
almost 2 years ago 9:56am 15 February 2023 - π¬π§United Kingdom catch
Thanks, no extra type hints also means I went ahead and cherry-picked this back to 10.0.x and 9.5.x too.
- π©πͺGermany luenemann SΓΌdbaden, Germany
I don't see the commit to 10.0.x?
-
longwave β
committed a9accd54 on 10.0.x authored by
catch β
Issue #3154084 by amateescu, mheip, smustgrave: Warning when building an...
-
longwave β
committed a9accd54 on 10.0.x authored by
catch β
- π¬π§United Kingdom longwave UK
Cherry-picked back to 10.0.x, thanks for spotting that.
Automatically closed - issue fixed for 2 weeks with no activity.