You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\trigger_deprecation('makinacorpus/db-tools-bundle', '2.1.0', \sprintf("%s::__construct() '\$salt' will be removed in 3.0, use %s class to pass a salt.", static::class, Context::class));
Copy file name to clipboardExpand all lines: src/Anonymization/Anonymizer/AbstractAnonymizer.php
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ final public function __construct(
39
39
} else {
40
40
\trigger_deprecation('makinacorpus/db-tools-bundle', '2.1.0', \sprintf("%s::__construct() 'Options \$options' will be changed to 'Context \$context' in 3.0", static::class));
41
41
$this->options = $options;
42
-
$this->context = newContext($options);
42
+
$this->context = newContext(options: $options);
43
43
}
44
44
45
45
$this->validateOptions();
@@ -95,9 +95,10 @@ protected function getJoinColumn(): Expression
95
95
/**
96
96
* Get a random, global salt for anonymizing hashed values.
97
97
*/
98
+
#[\Deprecated(message: "Will be removed in 3.0, use \$this->context->salt instead.", since: "2.1.0")]
0 commit comments