@@ -12,21 +12,25 @@ trait ArrayEnabled
1212 private static ArrayArgumentHelper $ arrayArgumentHelper ;
1313
1414 /**
15- * @param array|false $arguments Can be changed to array for Php8.1+
15+ * @param mixed[] $arguments
1616 */
17- private static function initialiseHelper ($ arguments ): void
17+ private static function initialiseHelper (array $ arguments ): void
1818 {
1919 if (self ::$ initializationNeeded === true ) {
2020 self ::$ arrayArgumentHelper = new ArrayArgumentHelper ();
2121 self ::$ initializationNeeded = false ;
2222 }
23- self ::$ arrayArgumentHelper ->initialise (( $ arguments === false ) ? [] : $ arguments );
23+ self ::$ arrayArgumentHelper ->initialise ($ arguments );
2424 }
2525
2626 /**
2727 * Handles array argument processing when the function accepts a single argument that can be an array argument.
2828 * Example use for:
2929 * DAYOFMONTH() or FACT().
30+ *
31+ * @param mixed[] $values
32+ *
33+ * @return mixed[]
3034 */
3135 protected static function evaluateSingleArgumentArray (callable $ method , array $ values ): array
3236 {
@@ -43,6 +47,8 @@ protected static function evaluateSingleArgumentArray(callable $method, array $v
4347 * and any of them can be an array argument.
4448 * Example use for:
4549 * ROUND() or DATE().
50+ *
51+ * @return mixed[]
4652 */
4753 protected static function evaluateArrayArguments (callable $ method , mixed ...$ arguments ): array
4854 {
@@ -58,6 +64,8 @@ protected static function evaluateArrayArguments(callable $method, mixed ...$arg
5864 * Example use for:
5965 * NETWORKDAYS() or CONCATENATE(), where the last argument is a matrix (or a series of values) that need
6066 * to be treated as a such rather than as an array arguments.
67+ *
68+ * @return mixed[]
6169 */
6270 protected static function evaluateArrayArgumentsSubset (callable $ method , int $ limit , mixed ...$ arguments ): array
6371 {
@@ -80,6 +88,8 @@ private static function testFalse(mixed $value): bool
8088 * Example use for:
8189 * Z.TEST() or INDEX(), where the first argument 1 is a matrix that needs to be treated as a dataset
8290 * rather than as an array argument.
91+ *
92+ * @return mixed[]
8393 */
8494 protected static function evaluateArrayArgumentsSubsetFrom (callable $ method , int $ start , mixed ...$ arguments ): array
8595 {
@@ -105,6 +115,8 @@ protected static function evaluateArrayArgumentsSubsetFrom(callable $method, int
105115 * Example use for:
106116 * HLOOKUP() and VLOOKUP(), where argument 1 is a matrix that needs to be treated as a database
107117 * rather than as an array argument.
118+ *
119+ * @return mixed[]
108120 */
109121 protected static function evaluateArrayArgumentsIgnore (callable $ method , int $ ignore , mixed ...$ arguments ): array
110122 {
0 commit comments