Skip to content

Commit

Permalink
Expand the @param tags for array arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
stevegrunwell committed Nov 16, 2023
1 parent 8642ed0 commit 9628a9c
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/MarkupAssertionsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ public function assertSelectorCount($count, $selector, $markup = '', $message =
*
* @since 1.0.0
*
* @param array $attributes An array of HTML attributes that should be found on the element.
* @param string $markup The output that should contain an element with the
* provided $attributes.
* @param string $message A message to display if the assertion fails.
* @param array<string, scalar> $attributes An array of HTML attributes that should be found
* on the element.
* @param string $markup The output that should contain an element with the
* provided $attributes.
* @param string $message A message to display if the assertion fails.
*
* @return void
*/
Expand All @@ -94,10 +95,11 @@ public function assertHasElementWithAttributes($attributes = [], $markup = '', $
*
* @since 1.0.0
*
* @param array $attributes An array of HTML attributes that should be found on the element.
* @param string $markup The output that should not contain an element with the
* provided $attributes.
* @param string $message A message to display if the assertion fails.
* @param array<string, scalar> $attributes An array of HTML attributes that should be found
* on the element.
* @param string $markup The output that should not contain an element with
* the provided $attributes.
* @param string $message A message to display if the assertion fails.
*
* @return void
*/
Expand Down Expand Up @@ -234,7 +236,7 @@ protected function executeDomQuery($markup, $query)
*
* @throws RiskyTestError When the $attributes array is empty.
*
* @param array $attributes HTML attributes and their values.
* @param array<string, scalar> $attributes HTML attributes and their values.
*
* @return string A XPath attribute query selector.
*/
Expand Down

0 comments on commit 9628a9c

Please sign in to comment.