Skip to content

Commit

Permalink
update deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
DjordyKoert committed Jan 19, 2025
1 parent 1c37a52 commit ad9d26e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion phpunit-ignore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@

# Ignoring deprecations from Nelmio\ApiDocBundle 4.33.4
/^Since nelmio\/api-doc-bundle 4\.33\.4: Passing null to the "\$options" argument of "Nelmio\\ApiDocBundle\\Model\\Model\:\:\_\_construct\(\)" is deprecated\, pass an empty array instead\./
/^Since nelmio\/api-doc-bundle 4\.33\.4: Passing null to the "\$options" argument of "Nelmio\\ApiDocBundle\\Attribute\\Model\:\:\_\_construct\(\)" is deprecated\, pass an empty array instead\./
/^Since nelmio\/api-doc-bundle 4\.33\.4: Passing null to the "\$options" argument of "Nelmio\\ApiDocBundle\\Attribute\\Model\:\:\_\_construct\(\)" is deprecated\, pass an empty array instead\./

# Ignoring deprecations from Nelmio\ApiDocBundle 4.36.1

/^Since nelmio\/api-doc-bundle 4\.36\.1: Passing an array with key "value" to "Nelmio\\ApiDocBundle\\Annotation\\Areas" is deprecated\, pass the list of strings directly\./
2 changes: 1 addition & 1 deletion src/Attribute/Areas.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Areas
public function __construct(array $properties)
{
if (array_key_exists('value', $properties) && is_array($properties['value'])) {
trigger_deprecation('nelmio/api-doc-bundle', '4.36.1', 'Passing an array with key `value` is deprecated, pass the list of strings directly.');
trigger_deprecation('nelmio/api-doc-bundle', '4.36.1', 'Passing an array with key "value" to "%s" is deprecated, pass the list of strings directly.', __METHOD__);

$this->areas = array_values($properties['value']);
} else {
Expand Down

0 comments on commit ad9d26e

Please sign in to comment.