Skip to content

Commit 70103e4

Browse files
committed
Expand the @param tags for array arguments
1 parent 24f212b commit 70103e4

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/MarkupAssertionsTrait.php

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,11 @@ public function assertSelectorCount($count, $selector, $markup = '', $message =
7373
*
7474
* @since 1.0.0
7575
*
76-
* @param array $attributes An array of HTML attributes that should be found on the element.
77-
* @param string $markup The output that should contain an element with the
78-
* provided $attributes.
79-
* @param string $message A message to display if the assertion fails.
76+
* @param array<string, scalar> $attributes An array of HTML attributes that should be found
77+
* on the element.
78+
* @param string $markup The output that should contain an element with the
79+
* provided $attributes.
80+
* @param string $message A message to display if the assertion fails.
8081
*
8182
* @return void
8283
*/
@@ -94,10 +95,11 @@ public function assertHasElementWithAttributes($attributes = [], $markup = '', $
9495
*
9596
* @since 1.0.0
9697
*
97-
* @param array $attributes An array of HTML attributes that should be found on the element.
98-
* @param string $markup The output that should not contain an element with the
99-
* provided $attributes.
100-
* @param string $message A message to display if the assertion fails.
98+
* @param array<string, scalar> $attributes An array of HTML attributes that should be found
99+
* on the element.
100+
* @param string $markup The output that should not contain an element with
101+
* the provided $attributes.
102+
* @param string $message A message to display if the assertion fails.
101103
*
102104
* @return void
103105
*/
@@ -234,7 +236,7 @@ protected function executeDomQuery($markup, $query)
234236
*
235237
* @throws RiskyTestError When the $attributes array is empty.
236238
*
237-
* @param array $attributes HTML attributes and their values.
239+
* @param array<string, scalar> $attributes HTML attributes and their values.
238240
*
239241
* @return string A XPath attribute query selector.
240242
*/

0 commit comments

Comments
 (0)