Skip to content

Commit 5d5f6fb

Browse files
committed
🔧 improve Arrayz Helper Class
Signed-off-by: otengkwame <developerkwame@gmail.com>
1 parent 5b7f4c5 commit 5d5f6fb

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

Core/core/Helpers/Arrayz.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,20 @@ class Arrayz
7878
*/
7979
public $ink;
8080

81+
/**
82+
* Pagination results
83+
*
84+
* @var string
85+
*/
86+
public $results;
87+
88+
/**
89+
* Pagination pager
90+
*
91+
* @var string
92+
*/
93+
public $pager;
94+
8195

8296
public function __construct($array = [])
8397
{
@@ -343,7 +357,7 @@ public function getKeys(): array
343357
*/
344358
public function search(mixed $searchParam, bool $strict = false): int|string|false
345359
{
346-
return array_search($searchParam, $this->source, $strict = false);
360+
return array_search($searchParam, $this->source, $strict);
347361
}
348362

349363
/**

0 commit comments

Comments
 (0)