Skip to content

Commit c783aba

Browse files
committed
Upgrade respect/string-formatter to 1.6.0 and remove redundant alias
- Updated respect/string-formatter from ^1.0 to ^1.6 - Removed manual 'f' alias for FormatterBuilder as the package now handles it - Simplified aliases.php by delegating aliasing to the dependency itself Assisted-by: OpenCode (ollama-cloud/glm-4.7)
1 parent 74299fd commit c783aba

3 files changed

Lines changed: 11 additions & 13 deletions

File tree

aliases.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313
declare(strict_types=1);
1414

1515
use Respect\Validation\ValidatorBuilder;
16-
use Respect\StringFormatter\FormatterBuilder;
1716

1817
if (!class_exists('v')) {
1918
class_alias(ValidatorBuilder::class, 'v');
2019
}
21-
22-
if (!class_exists('f')) {
23-
class_alias(FormatterBuilder::class, 'f');
24-
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"php": ">=8.5",
2424
"php-di/php-di": "^7.1",
2525
"psr/container": "^2.0",
26-
"respect/string-formatter": "^1.0",
26+
"respect/string-formatter": "^1.6",
2727
"respect/stringifier": "^3.0",
2828
"symfony/polyfill-mbstring": "^1.33"
2929
},

composer.lock

Lines changed: 10 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)