@@ -15,7 +15,7 @@ trait Has
1515 * @param int|null $length
1616 * @return $this
1717 */
18- public function count ($ key , ?int $ length = null ): self
18+ public function count ($ key , ?int $ length = null ): static
1919 {
2020 if (is_null ($ length )) {
2121 $ path = $ this ->dotPath ();
@@ -47,7 +47,7 @@ public function count($key, ?int $length = null): self
4747 * @param int|string $max
4848 * @return $this
4949 */
50- public function countBetween (int |string $ min , int |string $ max ): self
50+ public function countBetween (int |string $ min , int |string $ max ): static
5151 {
5252 $ path = $ this ->dotPath ();
5353
@@ -80,7 +80,7 @@ public function countBetween(int|string $min, int|string $max): self
8080 * @param \Closure|null $callback
8181 * @return $this
8282 */
83- public function has ($ key , $ length = null , ?Closure $ callback = null ): self
83+ public function has ($ key , $ length = null , ?Closure $ callback = null ): static
8484 {
8585 $ prop = $ this ->prop ();
8686
@@ -125,7 +125,7 @@ public function has($key, $length = null, ?Closure $callback = null): self
125125 * @param array|string $key
126126 * @return $this
127127 */
128- public function hasAll ($ key ): self
128+ public function hasAll ($ key ): static
129129 {
130130 $ keys = is_array ($ key ) ? $ key : func_get_args ();
131131
@@ -146,7 +146,7 @@ public function hasAll($key): self
146146 * @param array|string $key
147147 * @return $this
148148 */
149- public function hasAny ($ key ): self
149+ public function hasAny ($ key ): static
150150 {
151151 $ keys = is_array ($ key ) ? $ key : func_get_args ();
152152
@@ -168,7 +168,7 @@ public function hasAny($key): self
168168 * @param array|string $key
169169 * @return $this
170170 */
171- public function missingAll ($ key ): self
171+ public function missingAll ($ key ): static
172172 {
173173 $ keys = is_array ($ key ) ? $ key : func_get_args ();
174174
@@ -185,7 +185,7 @@ public function missingAll($key): self
185185 * @param string $key
186186 * @return $this
187187 */
188- public function missing (string $ key ): self
188+ public function missing (string $ key ): static
189189 {
190190 PHPUnit::assertNotTrue (
191191 Arr::has ($ this ->prop (), $ key ),
0 commit comments