@@ -35,6 +35,7 @@ protected function setUp(): void
3535
3636 /**
3737 * @param array|string|null $customParameters use of strings is deprecated, use array instead.
38+ *
3839 * @return Crawler
3940 */
4041 protected function getRenderedExampleHtml (?array $ customParameters = null ): string
@@ -44,6 +45,7 @@ protected function getRenderedExampleHtml(?array $customParameters = null): stri
4445
4546 /**
4647 * @param array|string|null $customParameters use of strings is deprecated, use array instead.
48+ *
4749 * @return Crawler
4850 */
4951 protected function crawlRenderedExample (/*array*/ $ customParameters = null ): Crawler
@@ -64,8 +66,9 @@ protected function crawlRenderedExample(/*array*/ $customParameters = null): Cra
6466 }
6567
6668 /**
67- * @param int $expectedStatusCode
68- * @param array|string|null $customParameters use of strings is deprecated, use array instead.
69+ * @param int $expectedStatusCode
70+ * @param array|string|null $customParameters use of strings is deprecated, use array instead.
71+ *
6972 * @return Crawler
7073 */
7174 protected function assertHttpStatusCodeWhenCrawlingRenderedExample (
@@ -80,6 +83,7 @@ protected function assertHttpStatusCodeWhenCrawlingRenderedExample(
8083
8184 /**
8285 * @param array|string|null $customParameters use of strings is deprecated, use array instead.
86+ *
8387 * @return Crawler
8488 */
8589 private function getUrlWithRenderedExample (/*array*/ $ customParameters = null ): string
@@ -96,14 +100,14 @@ private function getUrlWithRenderedExample(/*array*/ $customParameters = null):
96100
97101 private function getCustomParametersAsString ($ customParametersAsMixed ): ?string
98102 {
99- if (is_string ($ customParametersAsMixed )) {
103+ if (\ is_string ($ customParametersAsMixed )) {
100104 return $ customParametersAsMixed ;
101105 }
102106
103- if (is_array ($ customParametersAsMixed )) {
107+ if (\ is_array ($ customParametersAsMixed )) {
104108 $ customParametersAsString = '' ;
105109 foreach ($ customParametersAsMixed as $ name => $ value ) {
106- $ customParametersAsString .= $ name .'= ' .$ value .' ' ;
110+ $ customParametersAsString .= $ name .'= ' .$ value .' ' ;
107111 }
108112
109113 return $ customParametersAsString ;
0 commit comments