Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7627d35

Browse filesBrowse files
committed
minor #15576 [Testing] update deprecation (jeremyFreeAgent)
This PR was merged into the 5.3 branch. Discussion ---------- [Testing] update deprecation ```deprecated since Symfony 5.3, use static::getContainer() instead``` Commits ------- e958c21 [Testing] update deprecation
2 parents eb89325 + e958c21 commit 7627d35
Copy full SHA for 7627d35

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎testing.rst

Copy file name to clipboardExpand all lines: testing.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ to simulate a login request::
609609
public function testVisitingWhileLoggedIn()
610610
{
611611
$client = static::createClient();
612-
$userRepository = static::$container->get(UserRepository::class);
612+
$userRepository = static::getContainer()->get(UserRepository::class);
613613

614614
// retrieve the test user
615615
$testUser = $userRepository->findOneByEmail('john.doe@example.com');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.