Skip to content

Commit 7f8a2cc

Browse files
committed
small fixes
1 parent 321320c commit 7f8a2cc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ai-command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
require_once $ai_command_autoloader;
1616
}
1717

18-
WP_CLI::add_command( 'ai', function ( $args, $assoc_args ) {
18+
WP_CLI::add_command( 'ai', static function ( $args, $assoc_args ) {
1919
$server = new MCP\Server();
2020
$client = new MCP\Client($server);
2121

src/Entity/Tool.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace WP_CLI\AiCommand\Entity;
66

7+
use InvalidArgumentException;
8+
79
final class Tool
810
{
911

0 commit comments

Comments
 (0)