Skip to content

Commit 90f18fd

Browse files
committed
Add collection traverse methods
1 parent ceaa6bc commit 90f18fd

8 files changed

+1084
-94
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
.DS_Store
33
.sass-cache
44
composer.lock
5+
.idea/
56
vendor/

DynamicDataAbstract.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
abstract class DynamicDataAbstract
1313
{
14-
protected $data = null;
14+
private object $data;
1515

1616
abstract public function get();
1717

@@ -32,7 +32,7 @@ public function __toString(): string
3232
if (is_resource($this->value)) {
3333
return get_resource_type($val);
3434
}
35-
return $val;
35+
return (string)$val;
3636
}
3737

3838
public function __set($key, $value)
@@ -57,8 +57,6 @@ public function getData(): mixed
5757
*/
5858
public function toString(): string
5959
{
60-
61-
6260
return "(unknown type)";
6361
}
6462
}

0 commit comments

Comments
 (0)