From be061dc5d3a628e5ffb73f555a27ff6a8d119c8f Mon Sep 17 00:00:00 2001 From: catch Date: Mon, 24 Jan 2022 10:28:44 +0000 Subject: [PATCH] Issue #2867871 by kyvour, neclimdul, ranjith_kumar_k_u: Use of Symfony Expression Language "Expression" in OptimizedPhpArrayDumperTest doesn't match library (cherry picked from commit 3f8d0bd25cbe13772c7c8f818e80eeeb647c2b5d) --- .../Dumper/OptimizedPhpArrayDumperTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php b/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php index 72302fba887..345f4401985 100644 --- a/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php +++ b/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php @@ -559,7 +559,7 @@ namespace Drupal\Tests\Component\DependencyInjection\Dumper { * @covers ::dumpValue */ public function testGetServiceDefinitionForExpression() { - $expression = new Expression(); + $expression = new Expression(''); $bar_definition = new Definition('\stdClass'); $bar_definition->setPublic(TRUE); @@ -713,6 +713,9 @@ namespace Symfony\Component\ExpressionLanguage { */ class Expression { + public function __construct($expression) { + } + /** * Gets the string representation of the expression. */