Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit 60ccecb

Browse files
committed
allow integers
1 parent 8a3d76c commit 60ccecb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Traits/LoopFunctions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ public function arrayToProperties(?array $data, mixed $rescue = null): void
6464
/**
6565
* Assign the value to the property or rescue.
6666
*
67-
* @param string $key
67+
* @param int|string $key
6868
* @param mixed $value
6969
* @param mixed|null $rescue
7070
*
7171
* @return void
7272
*/
73-
private function assignValue(string $key, mixed $value, mixed $rescue = null): void
73+
private function assignValue(int|string $key, mixed $value, mixed $rescue = null): void
7474
{
7575
if (property_exists($this, $key)) {
7676
rescue(

0 commit comments

Comments
 (0)