Skip to content

Commit

Permalink
Improve deprecation message of PropertyDescriber classes
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicLuidold committed Apr 13, 2024
1 parent 6a29c98 commit ce09829
Show file tree
Hide file tree
Showing 14 changed files with 90 additions and 90 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -123,7 +123,7 @@ doc-api:

4.17.0
-----
* Passing groups to `PropertyDescriberInterface::describe()` via the `$groups` property is deprecated, the property will get removed in a future version. Pass groups via `$context['groups']` instead.
* Passing groups to `PropertyDescriberInterface::describe()` via the `$groups` parameter is deprecated, the parameter will get removed in a future version. Pass groups via `$context['groups']` instead.

4.0.0
-----
Expand Down
154 changes: 77 additions & 77 deletions phpunit-baseline.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/PropertyDescriber/ArrayPropertyDescriber.php
Expand Up @@ -28,7 +28,7 @@ public function describe(array $types, OA\Schema $property, ?array $groups = nul
trigger_deprecation(
'nelmio/api-doc-bundle',
'4.17.0',
'Using the $groups property is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
'Using the $groups parameter of "PropertyDescriberInterface::describe()" is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/PropertyDescriber/BooleanPropertyDescriber.php
Expand Up @@ -22,7 +22,7 @@ public function describe(array $types, OA\Schema $property, ?array $groups = nul
trigger_deprecation(
'nelmio/api-doc-bundle',
'4.17.0',
'Using the $groups property is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
'Using the $groups parameter of "PropertyDescriberInterface::describe()" is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/PropertyDescriber/CompoundPropertyDescriber.php
Expand Up @@ -28,7 +28,7 @@ public function describe(array $types, OA\Schema $property, ?array $groups = nul
trigger_deprecation(
'nelmio/api-doc-bundle',
'4.17.0',
'Using the $groups property is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
'Using the $groups parameter of "PropertyDescriberInterface::describe()" is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/PropertyDescriber/DateTimePropertyDescriber.php
Expand Up @@ -22,7 +22,7 @@ public function describe(array $types, OA\Schema $property, ?array $groups = nul
trigger_deprecation(
'nelmio/api-doc-bundle',
'4.17.0',
'Using the $groups property is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
'Using the $groups parameter of "PropertyDescriberInterface::describe()" is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/PropertyDescriber/DictionaryPropertyDescriber.php
Expand Up @@ -28,7 +28,7 @@ public function describe(array $types, OA\Schema $property, ?array $groups = nul
trigger_deprecation(
'nelmio/api-doc-bundle',
'4.17.0',
'Using the $groups property is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
'Using the $groups parameter of "PropertyDescriberInterface::describe()" is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/PropertyDescriber/FloatPropertyDescriber.php
Expand Up @@ -22,7 +22,7 @@ public function describe(array $types, OA\Schema $property, ?array $groups = nul
trigger_deprecation(
'nelmio/api-doc-bundle',
'4.17.0',
'Using the $groups property is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
'Using the $groups parameter of "PropertyDescriberInterface::describe()" is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/PropertyDescriber/IntegerPropertyDescriber.php
Expand Up @@ -22,7 +22,7 @@ public function describe(array $types, OA\Schema $property, ?array $groups = nul
trigger_deprecation(
'nelmio/api-doc-bundle',
'4.17.0',
'Using the $groups property is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
'Using the $groups parameter of "PropertyDescriberInterface::describe()" is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/PropertyDescriber/NullablePropertyDescriber.php
Expand Up @@ -24,7 +24,7 @@ public function describe(array $types, OA\Schema $property, ?array $groups = nul
trigger_deprecation(
'nelmio/api-doc-bundle',
'4.17.0',
'Using the $groups property is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
'Using the $groups parameter of "PropertyDescriberInterface::describe()" is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/PropertyDescriber/ObjectPropertyDescriber.php
Expand Up @@ -28,7 +28,7 @@ public function describe(array $types, OA\Schema $property, ?array $groups = nul
trigger_deprecation(
'nelmio/api-doc-bundle',
'4.17.0',
'Using the $groups property is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
'Using the $groups parameter of "PropertyDescriberInterface::describe()" is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/PropertyDescriber/PropertyDescriber.php
Expand Up @@ -39,7 +39,7 @@ public function describe(array $types, OA\Schema $property, ?array $groups = nul
trigger_deprecation(
'nelmio/api-doc-bundle',
'4.17.0',
'Using the $groups property is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
'Using the $groups parameter of "PropertyDescriberInterface::describe()" is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/PropertyDescriber/RequiredPropertyDescriber.php
Expand Up @@ -27,7 +27,7 @@ public function describe(array $types, OA\Schema $property, ?array $groups = nul
trigger_deprecation(
'nelmio/api-doc-bundle',
'4.17.0',
'Using the $groups property is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
'Using the $groups parameter of "PropertyDescriberInterface::describe()" is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/PropertyDescriber/StringPropertyDescriber.php
Expand Up @@ -22,7 +22,7 @@ public function describe(array $types, OA\Schema $property, ?array $groups = nul
trigger_deprecation(
'nelmio/api-doc-bundle',
'4.17.0',
'Using the $groups property is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
'Using the $groups parameter of "PropertyDescriberInterface::describe()" is deprecated and will be removed in a future version. Pass groups via $context[\'groups\']',
);
}

Expand Down

0 comments on commit ce09829

Please sign in to comment.