Skip to content

Commit e3bd9ce

Browse files
lint
1 parent 29d873b commit e3bd9ce

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44

55
composer.lock
66
vendor
7+
/.idea

demo/src/MCP/Tools/CurrentTimeTool.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace App\MCP\Tools;
1313

14-
use DateTime;
15-
use DateTimeZone;
1614
use Symfony\AI\McpSdk\Capability\Tool\MetadataInterface;
1715
use Symfony\AI\McpSdk\Capability\Tool\ToolCall;
1816
use Symfony\AI\McpSdk\Capability\Tool\ToolCallResult;
@@ -25,7 +23,7 @@ public function call(ToolCall $input): ToolCallResult
2523
$format = $input->arguments['format'] ?? 'Y-m-d H:i:s';
2624

2725
return new ToolCallResult(
28-
(new DateTime('now', new DateTimeZone('UTC')))->format($format)
26+
(new \DateTime('now', new \DateTimeZone('UTC')))->format($format)
2927
);
3028
}
3129

0 commit comments

Comments
 (0)