Skip to content

Commit 175c737

Browse files
committed
removed notices for some constants as it does not work well
1 parent 2235a0d commit 175c737

File tree

4 files changed

+4
-60
lines changed

4 files changed

+4
-60
lines changed

Deprecated/NumberToLocalizedStringTransformer.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,21 @@ class NumberToLocalizedStringTransformer implements DataTransformerInterface
7878
*
7979
* @deprecated since version 2.4, to be removed in 3.0.
8080
*/
81-
const ROUND_HALFEVEN = Deprecated::ROUND_HALFEVEN;
81+
const ROUND_HALFEVEN = \NumberFormatter::ROUND_HALFEVEN;
8282

8383
/**
8484
* Alias for {@link self::ROUND_HALF_UP}.
8585
*
8686
* @deprecated since version 2.4, to be removed in 3.0.
8787
*/
88-
const ROUND_HALFUP = Deprecated::ROUND_HALFUP;
88+
const ROUND_HALFUP = \NumberFormatter::ROUND_HALFUP;
8989

9090
/**
9191
* Alias for {@link self::ROUND_HALF_DOWN}.
9292
*
9393
* @deprecated since version 2.4, to be removed in 3.0.
9494
*/
95-
const ROUND_HALFDOWN = Deprecated::ROUND_HALFDOWN;
95+
const ROUND_HALFDOWN = \NumberFormatter::ROUND_HALFDOWN;
9696

9797
protected $precision;
9898

Extension/Validator/Constraints/Deprecated/Form.php

Lines changed: 0 additions & 27 deletions
This file was deleted.

Extension/Validator/Constraints/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Form extends Constraint
2626
* @deprecated since version 2.6, to be removed in 3.0.
2727
* Use {@self NOT_SYNCHRONIZED_ERROR} instead.
2828
*/
29-
const ERR_INVALID = Deprecated::ERR_INVALID;
29+
const ERR_INVALID = 1;
3030

3131
protected static $errorNames = array(
3232
self::NOT_SYNCHRONIZED_ERROR => 'NOT_SYNCHRONIZED_ERROR',

0 commit comments

Comments
 (0)