Skip to content

Commit a3929b5

Browse files
committed
fix deprecation version
1 parent d1f7528 commit a3929b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Loader/PhpFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class_exists(ContainerConfigurator::class);
8888
$result = null;
8989
}
9090

91-
trigger_deprecation('symfony/dependency-injection', '8.1', 'Using `$this` or its internal scope in config files is deprecated, use the `$loader` variable instead in "%s" on line %d.', $e->getFile(), $e->getLine());
91+
trigger_deprecation('symfony/dependency-injection', '7.4', 'Using `$this` or its internal scope in config files is deprecated, use the `$loader` variable instead in "%s" on line %d.', $e->getFile(), $e->getLine());
9292
}
9393

9494
if (\is_object($result) && \is_callable($result)) {

Tests/Loader/PhpFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ public function testTriggersDeprecationWhenAccessingLoaderInternalScope()
376376
$fixtures = realpath(__DIR__.'/../Fixtures');
377377
$loader = new PhpFileLoader(new ContainerBuilder(), new FileLocator($fixtures.'/config'));
378378

379-
$this->expectUserDeprecationMessageMatches('{^Since symfony/dependency-injection 8.1: Using \`\$this\` or its internal scope in config files is deprecated, use the \`\$loader\` variable instead in ".+" on line \d+\.$}');
379+
$this->expectUserDeprecationMessageMatches('{^Since symfony/dependency-injection 7.4: Using \`\$this\` or its internal scope in config files is deprecated, use the \`\$loader\` variable instead in ".+" on line \d+\.$}');
380380

381381
$loader->load('legacy_internal_scope.php');
382382
}

0 commit comments

Comments
 (0)