File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616use Mcp \Server \NativeClock ;
1717use Psr \Clock \ClockInterface ;
18- use Symfony \Component \Uid \Exception \InvalidArgumentException ;
1918use Symfony \Component \Uid \Uuid ;
2019
2120/**
@@ -140,7 +139,7 @@ public function gc(): array
140139 @unlink ($ path );
141140 try {
142141 $ deleted [] = Uuid::fromString ($ entry );
143- } catch (InvalidArgumentException $ e ) {
142+ } catch (\ InvalidArgumentException | \ Throwable $ e ) {
144143 // ignore non-UUID file names
145144 }
146145 }
@@ -177,7 +176,7 @@ public function getAllSessionIds(): array
177176
178177 try {
179178 $ sessionIds [] = Uuid::fromString ($ entry );
180- } catch (InvalidArgumentException $ e ) {
179+ } catch (\ InvalidArgumentException | \ Throwable $ e ) {
181180 // ignore non-UUID sessions
182181 }
183182 }
Original file line number Diff line number Diff line change 1414namespace Mcp \Server \Session ;
1515
1616use Psr \SimpleCache \CacheInterface ;
17- use Symfony \Component \Uid \Exception \InvalidArgumentException ;
1817use Symfony \Component \Uid \Uuid ;
1918
2019/**
@@ -106,7 +105,7 @@ public function getAllSessionIds(): array
106105 if ($ this ->exists ($ uuid )) {
107106 $ validSessionIds [] = $ uuid ;
108107 }
109- } catch (InvalidArgumentException $ e ) {
108+ } catch (\ InvalidArgumentException | \ Throwable $ e ) {
110109 // Skip invalid UUIDs
111110 }
112111 }
You can’t perform that action at this time.
0 commit comments