From d9bcc0f350cf3bab4338c766796ba72a88e2e516 Mon Sep 17 00:00:00 2001 From: mmorris Date: Fri, 2 Oct 2015 11:41:38 -0400 Subject: [PATCH] Add static, correct comment. --- core/lib/Drupal/Component/Assertion/Inspector.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/lib/Drupal/Component/Assertion/Inspector.php b/core/lib/Drupal/Component/Assertion/Inspector.php index 26ab1c3..7789754 100644 --- a/core/lib/Drupal/Component/Assertion/Inspector.php +++ b/core/lib/Drupal/Component/Assertion/Inspector.php @@ -109,8 +109,8 @@ public static function assertAllStringable($traversable) { /** * Asserts argument is a string or an object castable to a string. * - * Use this only if the argument being an object in any way would cause a - * problem. + * Use this instead of is_string() alone unless the argument being an object + * in any way will cause a problem. * * @param mixed string * Variable to be examined @@ -118,7 +118,7 @@ public static function assertAllStringable($traversable) { * @return bool * TRUE if $string is a string or an object castable to a string. */ - public function assertStringable($string) { + public static function assertStringable($string) { return is_string($string) || (is_object($string) && method_exists($string, '__toString')); } -- 1.8.4.2