Skip to content

Commit fb70b5e

Browse files
Last cleanups before beta
1 parent a867160 commit fb70b5e

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

ServiceLocator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function __invoke(string $id)
6767
*
6868
* @return static
6969
*/
70-
public function withContext(string $externalId, Container $container)
70+
public function withContext(string $externalId, Container $container): self
7171
{
7272
$locator = clone $this;
7373
$locator->externalId = $externalId;

Tests/Compiler/ValidateEnvPlaceholdersPassTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\DependencyInjection\Tests\Compiler;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Config\Definition\Builder\ParentNodeDefinitionInterface;
1615
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
1716
use Symfony\Component\Config\Definition\ConfigurationInterface;
1817
use Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass;
@@ -221,10 +220,6 @@ public function testEmptyEnvWhichCannotBeEmptyForScalarNodeWithValidation(): voi
221220
$this->expectException('Symfony\Component\Config\Definition\Exception\InvalidConfigurationException');
222221
$this->expectExceptionMessage('The path "env_extension.scalar_node_not_empty_validated" cannot contain an environment variable when empty values are not allowed by definition and are validated.');
223222

224-
if (!method_exists(ParentNodeDefinitionInterface::class, 'getChildNodeDefinitions')) {
225-
$this->markTestSkipped('symfony/config >=5.0 is required.');
226-
}
227-
228223
$container = new ContainerBuilder();
229224
$container->registerExtension($ext = new EnvExtension());
230225
$container->prependExtensionConfig('env_extension', $expected = [

Tests/Fixtures/includes/autowiring_classes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public function setFoo(Foo $foo)
279279
* @required
280280
* @return static
281281
*/
282-
public function withFoo1(Foo $foo): object
282+
public function withFoo1(Foo $foo): self
283283
{
284284
return $this->withFoo2($foo);
285285
}
@@ -288,7 +288,7 @@ public function withFoo1(Foo $foo): object
288288
* @required
289289
* @return static
290290
*/
291-
public function withFoo2(Foo $foo): object
291+
public function withFoo2(Foo $foo): self
292292
{
293293
$new = clone $this;
294294
$new->foo = $foo;

0 commit comments

Comments
 (0)