From f816ad672c6ad9e72e5f2ecf7c83e63930d16016 Mon Sep 17 00:00:00 2001 From: Mathieu Ducrot Date: Fri, 2 Aug 2024 09:43:08 +0200 Subject: [PATCH] Move temporary changelog + add comment example of where to use fillPrefix --- CHANGELOG.md | 5 ----- CHANGELOG_add_duplicate_value_fill_prefix.md | 3 +++ src/Utils/StringUtils.php | 3 ++- 3 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 CHANGELOG_add_duplicate_value_fill_prefix.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cc7866..2f02dd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,5 @@ CHANGELOG for 1.x =================== -## v1.7.1 - (2024-06-20) -### Added -- `ArrayUtils::hasDuplicateValue` + tests -- `StringUtils::fillPrefix` Fill a prefix to value until specified length + tests - ## v1.7.0 - (2024-06-14) ### Added - `MonitoringApiControllerTrait` used to centralize ApiCall manipulation during api monitoring diff --git a/CHANGELOG_add_duplicate_value_fill_prefix.md b/CHANGELOG_add_duplicate_value_fill_prefix.md new file mode 100644 index 0000000..7387d52 --- /dev/null +++ b/CHANGELOG_add_duplicate_value_fill_prefix.md @@ -0,0 +1,3 @@ +### Added +- `MonitoringApiControllerTrait` used to centralize ApiCall manipulation during api monitoring +- `ApiCallMonitor::logException` simplify logging exception for `ApiCall` using the `ProcessMonitor` diff --git a/src/Utils/StringUtils.php b/src/Utils/StringUtils.php index 9697f94..4ab3c7c 100644 --- a/src/Utils/StringUtils.php +++ b/src/Utils/StringUtils.php @@ -188,7 +188,8 @@ public static function formatSpaceBetween(?string $first, ?string $last): string } /** - * Fill a prefix to value until specified length + * Fill a prefix to value until specified length. + * For example this can be used on invoice number generation to fill in missing character. * *
      *