Skip to content

Commit

Permalink
Show validation number in activities
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Feb 3, 2022
1 parent d800923 commit 913156e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Debug/ValidationCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ public function setValidation(Validation $validation) : static
public function getActivities() : array
{
$activities = [];
foreach ($this->getData() as $data) {
foreach ($this->getData() as $index => $data) {
$activities[] = [
'collector' => $this->getName(),
'class' => static::class,
'description' => 'Validate ' . $data['type'],
'description' => 'Validate ' . $index + 1,
'start' => $data['start'],
'end' => $data['end'],
];
Expand Down

0 comments on commit 913156e

Please sign in to comment.