Skip to content
Snippets Groups Projects
Commit 62e7f6aa authored by catch's avatar catch
Browse files

Issue #3250743 by alexpott, longwave: [PHP 8.1] NumberFieldTest fails

parent 3730c17b
No related branches found
No related tags found
No related merge requests found
......@@ -430,7 +430,7 @@ public function testCreateNumberDecimalField() {
*
* @internal
*/
public function assertSetMinimumValue(FieldConfigInterface $field, int $minimum_value): void {
public function assertSetMinimumValue(FieldConfigInterface $field, $minimum_value): void {
$field_configuration_url = 'entity_test/structure/entity_test/fields/entity_test.entity_test.' . $field->getName();
// Set the minimum value.
......
......@@ -89,7 +89,7 @@ public static function isDeprecationSkipped($message) {
'%Method "[^"]+" might add "[^"]+" as a native return type declaration in the future. Do the same in (child class|implementation) "(?!Drupal\\\\)[^"]+" now to avoid errors or add an explicit @return annotation to suppress this message%',
'%The "Drupal\\\\[^"]+" method will require a new "[^"]+" argument in the next major version of its interface "Drupal\\\\[^"]+", not defining it is deprecated%',
// Symfony 5.4
'%Method "Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface::normalize\(\)" might add "array|string|int|float|bool|\\\\ArrayObject|null" as a native return type declaration in the future. Do the same in implementation "(?!Drupal\\\\)[^"]+" now to avoid errors or add an explicit @return annotation to suppress this message.%',
'%Method "Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface::normalize\(\)" might add "array\|string\|int\|float\|bool\|\\\\ArrayObject\|null" as a native return type declaration in the future. Do the same in implementation "(?!Drupal\\\\)[^"]+" now to avoid errors or add an explicit @return annotation to suppress this message.%',
];
return (bool) preg_filter($dynamic_skipped_deprecations, '$0', $message);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment