File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 88use Traversable ;
99use JsonSerializable ;
1010use Tamedevelopers \Support \Server ;
11-
12- /** @psalm-suppress UndefinedClass @phpstan-ignore-next-line */
1311use Tamedevelopers \Database \Collections \Collection as DBCollection ;
1412
1513
16- /**
17- * @var \Tamedevelopers\Database\Collections\Collection $items
18- */
1914trait CollectionTrait{
2015
2116 /**
Original file line number Diff line number Diff line change 5656$ iterator = $ collection ->getIterator ();
5757foreach ($ iterator as $ item ) {
5858 // Process each item
59+
60+ dd (
61+ $ item
62+ );
5963}
6064
6165
Original file line number Diff line number Diff line change 44
55if (!class_exists (Collection::class)) {
66 class Collection {
7+ /**
8+ * Stub method to simulate the actual method signature in the real class.
9+ *
10+ * @return array
11+ */
712 public function toArray (): array {
813 // Stub implementation ensures a valid array is always returned
914 return [];
You can’t perform that action at this time.
0 commit comments