Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Contracts] add missing properties #58520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Symfony/Contracts/Tests/Service/LegacyTestService.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,22 @@
{
use ServiceSubscriberTrait;

protected $container;

#[SubscribedService]
public function aService(): Service2

Check failure on line 39 in src/Symfony/Contracts/Tests/Service/LegacyTestService.php

View workflow job for this annotation

GitHub Actions / Psalm

UndefinedClass

src/Symfony/Contracts/Tests/Service/LegacyTestService.php:39:33: UndefinedClass: Class, interface or enum named Symfony\Contracts\Tests\Service\Service2 does not exist (see https://psalm.dev/019)

Check failure on line 39 in src/Symfony/Contracts/Tests/Service/LegacyTestService.php

View workflow job for this annotation

GitHub Actions / Psalm

UndefinedClass

src/Symfony/Contracts/Tests/Service/LegacyTestService.php:39:33: UndefinedClass: Class, interface or enum named Symfony\Contracts\Tests\Service\Service2 does not exist (see https://psalm.dev/019)
{
return $this->container->get(__METHOD__);
}

#[SubscribedService]
public function nullableService(): ?Service2

Check failure on line 45 in src/Symfony/Contracts/Tests/Service/LegacyTestService.php

View workflow job for this annotation

GitHub Actions / Psalm

UndefinedClass

src/Symfony/Contracts/Tests/Service/LegacyTestService.php:45:40: UndefinedClass: Class, interface or enum named Symfony\Contracts\Tests\Service\Service2 does not exist (see https://psalm.dev/019)

Check failure on line 45 in src/Symfony/Contracts/Tests/Service/LegacyTestService.php

View workflow job for this annotation

GitHub Actions / Psalm

UndefinedClass

src/Symfony/Contracts/Tests/Service/LegacyTestService.php:45:40: UndefinedClass: Class, interface or enum named Symfony\Contracts\Tests\Service\Service2 does not exist (see https://psalm.dev/019)
{
return $this->container->get(__METHOD__);
}

#[SubscribedService(attributes: new Required())]
public function withAttribute(): ?Service2

Check failure on line 51 in src/Symfony/Contracts/Tests/Service/LegacyTestService.php

View workflow job for this annotation

GitHub Actions / Psalm

UndefinedClass

src/Symfony/Contracts/Tests/Service/LegacyTestService.php:51:38: UndefinedClass: Class, interface or enum named Symfony\Contracts\Tests\Service\Service2 does not exist (see https://psalm.dev/019)

Check failure on line 51 in src/Symfony/Contracts/Tests/Service/LegacyTestService.php

View workflow job for this annotation

GitHub Actions / Psalm

UndefinedClass

src/Symfony/Contracts/Tests/Service/LegacyTestService.php:51:38: UndefinedClass: Class, interface or enum named Symfony\Contracts\Tests\Service\Service2 does not exist (see https://psalm.dev/019)
{
return $this->container->get(__METHOD__);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@
$container = new class([]) implements ContainerInterface {
use ServiceLocatorTrait;
};
$service = new class() extends ParentWithMagicCall {

Check failure on line 57 in src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php

View workflow job for this annotation

GitHub Actions / Psalm

MissingDependency

src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php:57:24: MissingDependency: Symfony\Contracts\Tests\Service\_home_runner_work_symfony_symfony_src_Symfony_Contracts_Tests_Service_ServiceSubscriberTraitTest_php_57_1783 depends on class or interface symfony\contracts\tests\service\parentwithmagiccall that does not exist (see https://psalm.dev/157)

Check failure on line 57 in src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php

View workflow job for this annotation

GitHub Actions / Psalm

UndefinedClass

src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php:57:40: UndefinedClass: Class, interface or enum named Symfony\Contracts\Tests\Service\ParentWithMagicCall does not exist (see https://psalm.dev/019)

Check failure on line 57 in src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php

View workflow job for this annotation

GitHub Actions / Psalm

MissingDependency

src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php:57:24: MissingDependency: Symfony\Contracts\Tests\Service\_home_runner_work_symfony_symfony_src_Symfony_Contracts_Tests_Service_ServiceSubscriberTraitTest_php_57_1783 depends on class or interface symfony\contracts\tests\service\parentwithmagiccall that does not exist (see https://psalm.dev/157)

Check failure on line 57 in src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php

View workflow job for this annotation

GitHub Actions / Psalm

UndefinedClass

src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php:57:40: UndefinedClass: Class, interface or enum named Symfony\Contracts\Tests\Service\ParentWithMagicCall does not exist (see https://psalm.dev/019)
use ServiceSubscriberTrait;

private $container;
};

$this->assertNull($service->setContainer($container));
Expand All @@ -69,6 +71,8 @@
};
$service = new class() {
use ServiceSubscriberTrait;

private $container;
};

$this->assertNull($service->setContainer($container));
Expand Down