Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"php-http/curl-client": "^2.3",
"php-http/discovery": "^1.14",
"symfony/console": "^5.4 || ^6.4 || ^7.0",
"symfony/deprecation-contracts": "2.5",
"symfony/framework-bundle": "^5.4 || ^6.4 || ^7.0",
"symfony/http-kernel": "^5.4 || ^6.4 || ^7.0",
"symfony/options-resolver": "^5.4 || ^6.4 || ^7.0",
Expand Down
4 changes: 4 additions & 0 deletions src/Validator/Constraint/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ class Address extends Constraint
*/
public function __construct(?array $options = null, ?string $message = null, ?array $groups = null, $payload = null)
{
if (\is_array($options)) {
trigger_deprecation('willdurand/geocoder-bundle', '5.24', 'Passing an array of options to configure the "%s" constraint is deprecated, use named arguments instead.', static::class);
}

parent::__construct($options, $groups, $payload);

$this->message = $message ?? $this->message;
Expand Down
4 changes: 4 additions & 0 deletions tests/baseline-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,7 @@
%Not enabling native lazy objects is deprecated and will be impossible in Doctrine ORM 4.0%
%Not setting "doctrine.orm.enable_native_lazy_objects" to true is deprecated%
%Disabling native lazy objects is deprecated and will be impossible in Doctrine ORM 4.0%
%Passing an array of options to configure the "Bazinga\\GeocoderBundle\\Validator\\Constraint\\Address" constraint is deprecated, use named arguments instead%
%The "Symfony\\Bundle\\FrameworkBundle\\Console\\Application::add\(\)" method is deprecated and will be removed in Symfony 8.0, use "Symfony\\Bundle\\FrameworkBundle\\Console\\Application::addCommand\(\)" instead%
%XML configuration format is deprecated, use YAML or PHP instead%
%Support for evaluating options in the base Constraint class is deprecated. Initialize properties in the constructor of Bazinga\\GeocoderBundle\\Validator\\Constraint\\Address instead%