From 01a8ecf960fffb48c2183c21932856b55514eba9 Mon Sep 17 00:00:00 2001 From: Tim Bond Date: Tue, 4 Jun 2024 00:27:02 -0700 Subject: [PATCH] Add return type documentation for usort --- standard/standard_8.php | 1 + 1 file changed, 1 insertion(+) diff --git a/standard/standard_8.php b/standard/standard_8.php index a24464d97..8c8bb68ba 100644 --- a/standard/standard_8.php +++ b/standard/standard_8.php @@ -506,6 +506,7 @@ function rsort(array &$array, int $flags = SORT_REGULAR) {} * greater than zero if the first argument is considered to be * respectively less than, equal to, or greater than the second. *

+ * @return true Always returns true. */ #[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')] function usort(array &$array, callable $callback) {}