Skip to content

Commit e55a7c8

Browse files
committed
phpstan fix kind of
1 parent 0236693 commit e55a7c8

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/DataObject.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ public function dump($depth = 3, ?\SplObjectStorage $dumped = null)
199199
* @see IteratorAggregate::getIterator()
200200
* @since 1.0
201201
*/
202+
#[\ReturnTypeWillChange]
202203
public function getIterator()
203204
{
204205
$value = ArrayHelper::fromObject($this->dump(0));
@@ -213,6 +214,7 @@ public function getIterator()
213214
*
214215
* @since 1.0
215216
*/
217+
#[\ReturnTypeWillChange]
216218
public function jsonSerialize()
217219
{
218220
return $this->dump();
@@ -307,6 +309,7 @@ protected function setProperty($property, $value)
307309
*
308310
* @since 1.0
309311
*/
312+
#[\ReturnTypeWillChange]
310313
public function count()
311314
{
312315
return \count($this->properties);

src/DataSet.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ public function toArray($associative = true, ...$keys)
255255
*
256256
* @since 1.0
257257
*/
258+
#[\ReturnTypeWillChange]
258259
public function count()
259260
{
260261
return \count($this->objects);
@@ -282,6 +283,7 @@ public function clear()
282283
*
283284
* @since 1.0
284285
*/
286+
#[\ReturnTypeWillChange]
285287
public function current()
286288
{
287289
return is_scalar($this->current) ? $this->objects[$this->current] : false;

0 commit comments

Comments
 (0)