Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By dawehner on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.0.x
Introduced in version:
8.0.0-beta8
Issue links:
Description:
In order to support PHP 7 we need to make several BC-breaking changes to various class names (String, Binary, Boolean, Float, Integer, Numeric, etc.) because these will be reserved words in PHP 7.
More info:
- http://php.net/supported-versions.php
- https://wiki.php.net/rfc/reserve_more_types_in_php_7
- https://wiki.php.net/rfc/reserve_even_more_types_in_php_7
- https://wiki.php.net/rfc/remove_deprecated_functionality_in_php7
In some places we've done straight renames, in other cases moved things to where they make more logical sense.
Before | After |
---|---|
Drupal\Component\Utility\String::decodeEntities() | Drupal\Component\Utility\Html::decodeEntities() |
Drupal\Component\Utility\String::checkPlain() | Drupal\Component\Utility\Html::escape() |
Drupal\Component\Utility\String::format() | Drupal\Component\Utility\SafeMarkup::format() |
Drupal\Component\Utility\String::placeholder() | N/A (see #2552579: Remove SafeMarkup::placeholder(), deprecate drupal_placeholder() and stop drupal_placeholder() from marking safe.) |
Drupal\Core\TypedData\Plugin\DataType\Binary | Drupal\Core\TypedData\Plugin\DataType\BinaryData |
Drupal\Core\TypedData\Plugin\DataType\Boolean | Drupal\Core\TypedData\Plugin\DataType\BooleanData |
Drupal\Core\TypedData\Plugin\DataType\Float | Drupal\Core\TypedData\Plugin\DataType\FloatData |
Drupal\Core\TypedData\Plugin\DataType\Integer | Drupal\Core\TypedData\Plugin\DataType\IntegerData |
Drupal\Core\TypedData\Plugin\DataType\String | Drupal\Core\TypedData\Plugin\DataType\StringData |
Drupal\views\Plugin\views\argument\Null | Drupal\views\Plugin\views\argument\NullArgument |
Drupal\views\Plugin\views\argument\Numeric | Drupal\views\Plugin\views\argument\NumericArgument |
Drupal\views\Plugin\views\argument\String | Drupal\views\Plugin\views\argument\StringArgument |
Drupal\views\Plugin\views\argument_validator\Numeric | Drupal\views\Plugin\views\argument_validator\NumericArgumentValidator |
Drupal\views\Plugin\views\field\Numeric | Drupal\views\Plugin\views\field\NumericField |
Drupal\views\Plugin\views\filter\Numeric | Drupal\views\Plugin\views\filter\NumericFilter |
Drupal\views\Plugin\views\filter\String | Drupal\views\Plugin\views\filter\StringFilter |
Impacts:
Module developers