Skip to content

Commit

Permalink
Improve assoc array docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Oct 24, 2021
1 parent 2a16f2a commit 7a6eafb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Hash.php
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ public static function apply(array $data, string $path, callable $function)
* @param array $data An array of data to sort
* @param string $path A Set-compatible path to the array value
* @param string|int $dir See directions above. Defaults to 'asc'.
* @param array|string $type See direction types above. Defaults to 'regular'.
* @param array<string, mixed>|string $type See direction types above. Defaults to 'regular'.
* @return array Sorted array of data
* @link https://book.cakephp.org/4/en/core-libraries/hash.html#Cake\Utility\Hash::sort
*/
Expand Down
6 changes: 3 additions & 3 deletions Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public static function cleanInsert(string $str, array $options): string
* - `indentAt` 0 based index to start indenting at. Defaults to 0.
*
* @param string $text The text to format.
* @param array|int $options Array of options to use, or an integer to wrap the text to.
* @param array<string, mixed>|int $options Array of options to use, or an integer to wrap the text to.
* @return string Formatted text.
*/
public static function wrap(string $text, $options = []): string
Expand Down Expand Up @@ -367,7 +367,7 @@ public static function wrap(string $text, $options = []): string
* - `indentAt` 0 based index to start indenting at. Defaults to 0.
*
* @param string $text The text to format.
* @param array|int $options Array of options to use, or an integer to wrap the text to.
* @param array<string, mixed>|int $options Array of options to use, or an integer to wrap the text to.
* @return string Formatted text.
*/
public static function wrapBlock(string $text, $options = []): string
Expand Down Expand Up @@ -1147,7 +1147,7 @@ public static function transliterate(string $string, $transliterator = null): st
* For e.g. this option can be set to '.' to generate clean file names.
*
* @param string $string the string you want to slug
* @param array|string $options If string it will be use as replacement character
* @param array<string, mixed>|string $options If string it will be use as replacement character
* or an array of options.
* @return string
* @see setTransliterator()
Expand Down

0 comments on commit 7a6eafb

Please sign in to comment.