Follow-up to #2419015: Remove use of base: scheme in LocalTasksTest

Should be

* @param array $routes

Instead of

* @param array $hrefs

Comments

nlisgo’s picture

StatusFileSize
new783 bytes
nlisgo’s picture

Priority: Normal » Minor
nlisgo’s picture

It would be great if we could run PHP Codesniffer on the dev branch periodically and we could open up an issue to take care of a number of minor things in one go.

dawehner’s picture

+1

You could typehint to

+++ b/core/modules/system/src/Tests/Menu/LocalTasksTest.php
@@ -22,9 +22,9 @@ class LocalTasksTest extends WebTestBase {
+   * @param array $routes
+   *   A list of expected routes of local tasks to assert on the page (in the
+   *   given order).

It would be great to explain what $routes is. Its an array of pairs of $route_name, $route_parameters.

nlisgo’s picture

StatusFileSize
new820 bytes
new858 bytes
dawehner’s picture

Component: menu system » documentation
Status: Needs review » Reviewed & tested by the community

Thank you!

alexpott’s picture

Category: Task » Bug report
Status: Reviewed & tested by the community » Fixed

Incorrect documentation is a bug. Documentation is not frozen in beta. Committed 87ade2e and pushed to 8.0.x. Thanks!

  • alexpott committed 87ade2e on 8.0.x
    Issue #2451603 by nlisgo: Minor PHPDoc issue with LocalTasksTest::...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.