Skip to content

Commit e777ff2

Browse files
committed
Bump debug dependency
1 parent faecff6 commit e777ff2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"require": {
2323
"php": ">=8.0",
2424
"symfony/dependency-injection": "^5.0|^6.0",
25-
"squirrelphp/strings": "^0.10"
25+
"squirrelphp/debug": "^2.0",
26+
"squirrelphp/strings": "^0.11"
2627
},
2728
"require-dev": {
2829
"bamarni/composer-bin-plugin": "^1.3",

src/DependencyInjection/Compiler/RandomStringGeneratorPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ private function createGeneratorDefinitionList(array $taggedServices): array
5656
foreach ($tags as $attributes) {
5757
// Generator name not set or zero length, although it is mandatory
5858
if (!isset($attributes['generator']) || \strlen($attributes['generator']) === 0) {
59-
throw Debug::createException(StringException::class, [], 'Random string generator name not provided for ' . Debug::sanitizeData($attributes['generator']));
59+
throw Debug::createException(StringException::class, 'Random string generator name not provided for ' . Debug::sanitizeData($attributes['generator']));
6060
}
6161

6262
// Generator with the same name already exists
6363
if (isset($taggedServicesWithNames[$attributes['generator']])) {
64-
throw Debug::createException(StringException::class, [], 'Random string generator name is used twice: ' . Debug::sanitizeData($attributes['generator']) . ' with service ' . $id);
64+
throw Debug::createException(StringException::class, 'Random string generator name is used twice: ' . Debug::sanitizeData($attributes['generator']) . ' with service ' . $id);
6565
}
6666

6767
$taggedServicesWithNames[$attributes['generator']] = new Reference($id);

src/DependencyInjection/Compiler/StringFilterPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ private function createFilterDefinitionList(array $taggedServices): array
123123
foreach ($tags as $attributes) {
124124
// Filter name not set or zero length, although it is mandatory
125125
if (!isset($attributes['filter']) || \strlen($attributes['filter']) === 0) {
126-
throw Debug::createException(StringException::class, [], 'String filter name not provided for ' . Debug::sanitizeData($attributes['filter']));
126+
throw Debug::createException(StringException::class, 'String filter name not provided for ' . Debug::sanitizeData($attributes['filter']));
127127
}
128128

129129
// Filter with the same name already exists
130130
if (isset($taggedServicesWithNames[$attributes['filter']])) {
131-
throw Debug::createException(StringException::class, [], 'String filter name is used twice: ' . Debug::sanitizeData($attributes['filter']) . ' with service ' . $id);
131+
throw Debug::createException(StringException::class, 'String filter name is used twice: ' . Debug::sanitizeData($attributes['filter']) . ' with service ' . $id);
132132
}
133133

134134
$taggedServicesWithNames[$attributes['filter']] = new Reference($id);

0 commit comments

Comments
 (0)