Skip to content

Commit b1b8026

Browse files
committed
type fixes
1 parent bf4cd77 commit b1b8026

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Interfaces/ArrayViewInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace Smoren\ArrayView\Interfaces;
66

7-
use Smoren\ArrayView\Views\ArrayView;
8-
97
/**
108
* @template T
119
* @extends \ArrayAccess<int, T|array<T>>

src/Views/ArrayView.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function apply(callable $mapper): self
132132
*
133133
* {@inheritDoc}
134134
*/
135-
public function applyWith($data, callable $mapper): ArrayViewInterface
135+
public function applyWith($data, callable $mapper): self
136136
{
137137
[$dataSize, $thisSize] = [\count($data), \count($this)];
138138
if ($dataSize !== $thisSize) {
@@ -155,9 +155,9 @@ public function applyWith($data, callable $mapper): ArrayViewInterface
155155
/**
156156
* {@inheritDoc}
157157
*
158-
* @return ArrayViewInterface<T>
158+
* @return ArrayView<T>
159159
*/
160-
public function set($newValues): ArrayViewInterface
160+
public function set($newValues): self
161161
{
162162
if (!\is_array($newValues) && !($newValues instanceof ArrayViewInterface)) {
163163
for ($i = 0; $i < \count($this); $i++) {

0 commit comments

Comments
 (0)