From 906c637f17cbf72c16e51c8b60393e0c78506344 Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Tue, 11 Feb 2014 11:19:46 +0000
Subject: [PATCH] Issue #2181863 by karthik kumar bodu: Xpath method on
 \Drupal\simpletest\WebTestBase has an undocumented  parameter.

---
 .../lib/Drupal/simpletest/WebTestBase.php          | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
index f5b8cb9b87f0..2ff9032b8631 100644
--- a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
+++ b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
@@ -2151,14 +2151,14 @@ protected function handleForm(&$post, &$edit, &$upload, $submit, $form) {
    * used by PHP) doesn't support any form of quotation. This function
    * simplifies the building of XPath expression.
    *
-   * @param $xpath
+   * @param string $xpath
    *   An XPath query, possibly with placeholders in the form ':name'.
-   * @param $args
+   * @param array $args
    *   An array of arguments with keys in the form ':name' matching the
    *   placeholders in the query. The values may be either strings or numeric
    *   values.
    *
-   * @return
+   * @return string
    *   An XPath query with arguments replaced.
    */
   protected function buildXPathQuery($xpath, array $args = array()) {
@@ -2195,10 +2195,14 @@ protected function buildXPathQuery($xpath, array $args = array()) {
    *
    * The search is relative to the root element (HTML tag normally) of the page.
    *
-   * @param $xpath
+   * @param string $xpath
    *   The xpath string to use in the search.
+   * @param array $arguments
+   *   An array of arguments with keys in the form ':name' matching the
+   *   placeholders in the query. The values may be either strings or numeric
+   *   values.
    *
-   * @return
+   * @return array
    *   The return value of the xpath search. For details on the xpath string
    *   format and return values see the SimpleXML documentation,
    *   http://php.net/manual/function.simplexml-element-xpath.php.
-- 
GitLab