-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Migration from Versions prior to 2.4 | ||
|
||
## General | ||
|
||
Version 2.4 adds support for PHP 7. | ||
|
||
## Validators | ||
|
||
### IsFloat | ||
|
||
In PHP 7, `float` is a reserved keyword, which required renaming the | ||
`Laminas\I18n\Validator\Float` validator. If you were using the | ||
`Laminas\I18n\Validator\Float` validator directly previously, you will now | ||
receive an `E_USER_DEPRECATED` notice on instantiation. Please update your code | ||
to refer to the `Laminas\I18n\Validator\IsFloat` class instead. | ||
|
||
Users pulling their `Laminas\I18n\Validator\Float` validator instance from the | ||
validator plugin manager receive an `Laminas\I18n\Validator\IsFloat` instance | ||
instead starting in 2.4.0. | ||
|
||
### IsInt | ||
|
||
In PHP 7, `int` is a reserved keyword, which required renaming the | ||
`Laminas\I18n\Validator\Int` validator. If you were using the | ||
`Laminas\I18n\Validator\Int` validator directly previously, you will now | ||
receive an `E_USER_DEPRECATED` notice on instantiation. Please update your code | ||
to refer to the `Laminas\I18n\Validator\IsInt` class instead. | ||
|
||
Users pulling their `Laminas\I18n\Validator\Int` validator instance from the | ||
validator plugin manager receive an `Laminas\I18n\Validator\IsInt` instance | ||
instead starting in 2.4.0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters