55use Psr \Container \ContainerInterface ;
66use Spatie \Backtrace \Arguments \ArgumentReducers ;
77use Spatie \Backtrace \Arguments \Reducers \ArgumentReducer ;
8- use Spatie \ErrorSolutions \Contracts \HasSolutionsForThrowable ;
98use Spatie \FlareClient \AttributesProviders \GitAttributesProvider ;
109use Spatie \FlareClient \Contracts \FlareCollectType ;
1110use Spatie \FlareClient \Contracts \Recorders \Recorder ;
1211use Spatie \FlareClient \Enums \CollectType ;
1312use Spatie \FlareClient \FlareMiddleware \AddConsoleInformation ;
1413use Spatie \FlareClient \FlareMiddleware \AddGitInformation ;
1514use Spatie \FlareClient \FlareMiddleware \AddRequestInformation ;
16- use Spatie \FlareClient \FlareMiddleware \AddSolutions ;
1715use Spatie \FlareClient \FlareMiddleware \FlareMiddleware ;
1816use Spatie \FlareClient \Recorders \ApplicationRecorder \ApplicationRecorder ;
1917use Spatie \FlareClient \Recorders \CacheRecorder \CacheRecorder ;
@@ -40,9 +38,6 @@ class CollectsResolver
4038 /** @var array<class-string<Recorder>, array<string, mixed>> */
4139 protected array $ recorders = [];
4240
43- /** @var array<class-string<HasSolutionsForThrowable>> */
44- protected array $ solutionProviders = [];
45-
4641 /** @var array<callable(Resource, ContainerInterface):Resource> */
4742 protected array $ resourceModifiers = [];
4843
@@ -55,7 +50,7 @@ class CollectsResolver
5550
5651 protected bool $ collectErrorsWithTraces = false ;
5752
58- /** @return array{middlewares: array<class-string<FlareMiddleware>, array>, recorders: array<class-string<Recorder>, array>, solutionProviders: array<class-string<HasSolutionsForThrowable>>, resourceModifiers: array<callable(Resource, ContainerInterface):Resource>, collectStackFrameArguments: bool, argumentReducers: array<class-string<ArgumentReducer>|ArgumentReducer>|ArgumentReducers, forcePHPStackFrameArgumentsIniSetting: bool, collectErrorsWithTraces:bool} */
53+ /** @return array{middlewares: array<class-string<FlareMiddleware>, array>, recorders: array<class-string<Recorder>, array>, resourceModifiers: array<callable(Resource, ContainerInterface):Resource>, collectStackFrameArguments: bool, argumentReducers: array<class-string<ArgumentReducer>|ArgumentReducer>|ArgumentReducers, forcePHPStackFrameArgumentsIniSetting: bool, collectErrorsWithTraces:bool} */
5954 public function execute (
6055 array $ collects ,
6156 ): array {
@@ -81,7 +76,6 @@ public function execute(
8176 CollectType::Cache => $ this ->cache ($ options ),
8277 CollectType::Glows => $ this ->glows ($ options ),
8378 CollectType::Logs => $ this ->logs ($ options ),
84- CollectType::Solutions => $ this ->solutions ($ options ),
8579 CollectType::Dumps => $ this ->dumps ($ options ),
8680 CollectType::Queries => $ this ->queries ($ options ),
8781 CollectType::Transactions => $ this ->transactions ($ options ),
@@ -102,7 +96,6 @@ public function execute(
10296 return [
10397 'middlewares ' => $ this ->middlewares ,
10498 'recorders ' => $ this ->recorders ,
105- 'solutionProviders ' => $ this ->solutionProviders ,
10699 'collectStackFrameArguments ' => $ this ->collectStackFrameArguments ,
107100 'argumentReducers ' => $ this ->argumentReducers ,
108101 'forcePHPStackFrameArgumentsIniSetting ' => $ this ->forcePHPStackFrameArgumentsIniSetting ,
@@ -190,12 +183,6 @@ protected function logs(array $options): void
190183 ]));
191184 }
192185
193- protected function solutions (array $ solutions ): void
194- {
195- $ this ->addMiddleware ($ solutions ['middleware ' ] ?? AddSolutions::class);
196- $ this ->solutionProviders = $ solutions ['solution_providers ' ] ?? [];
197- }
198-
199186 protected function dumps (array $ options ): void
200187 {
201188 $ this ->addRecorder (
0 commit comments