Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitfa2563b

Browse files
committed
Revert "fix: Console/.../InvokableCommandTest - PHP doesn't like to call non-static method by class-name only"
This reverts commit39a264d.
1 parentbab863f commitfa2563b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/Symfony/Component/Console/Tests/Command/InvokableCommandTest.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class InvokableCommandTest extends TestCase
3737
publicfunctiontestCommandInputArgumentDefinition()
3838
{
3939
$command =newCommand('foo');
40-
$command->setCode(staticfunction (
40+
$command->setCode(function (
4141
#[Argument(name:'very-first-name')]string$name,
4242
#[Argument] ?string$firstName,
4343
#[Argument]string$lastName ='',
@@ -80,7 +80,7 @@ public function testCommandInputArgumentDefinition()
8080
publicfunctiontestCommandInputOptionDefinition()
8181
{
8282
$command =newCommand('foo');
83-
$command->setCode(staticfunction (
83+
$command->setCode(function (
8484
#[Option(name:'idle')] ?int$timeout =null,
8585
#[Option]string$type ='USER_TYPE',
8686
#[Option(shortcut:'v')]bool$verbose =false,
@@ -484,7 +484,7 @@ public function testHelpersInjection()
484484
$command->run(newArrayInput([]),newNullOutput());
485485
}
486486

487-
publicstaticfunctiongetSuggestedRoles(CompletionInput$input):array
487+
publicfunctiongetSuggestedRoles(CompletionInput$input):array
488488
{
489489
return ['ROLE_ADMIN','ROLE_USER'];
490490
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp