Skip to content

Commit

Permalink
Switch adding log at the end instead of the beginning for ProcessTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-ducrot committed Apr 2, 2024
1 parent 3e3fc5b commit 0c2ba95
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
CHANGELOG for 1.x
===================
## v1.2.2 - (2024-04-02)
### Added
- Add mapping comment on EntityTrait to be compatible with doctrine annotations type
- `ApiCallMonitor` to manage start/end ApiCallInterface
- `ProcessInterface::addExceptionTraceData` function to store the exception trace

### Fixed
- `ProcessTrait::addLog` Switch adding log at the end instead of the beginning

## v1.2.1 - (2024-03-27)
### Fix
### Fixed

- `ArrayUtils::checkIssetKeys` : Modify method with not strict comparaison

Expand Down
2 changes: 1 addition & 1 deletion src/Entity/ProcessTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function addLog(mixed $log): self
if ($this->logs == null) {
$this->logs = [];
}
array_unshift($this->logs, $log);
$this->logs[] = $log;

return $this;
}
Expand Down

0 comments on commit 0c2ba95

Please sign in to comment.