File tree Expand file tree Collapse file tree 2 files changed +6
-17
lines changed Expand file tree Collapse file tree 2 files changed +6
-17
lines changed Original file line number Diff line number Diff line change 11# Change Log
22
3+ ## 2.0 (unreleased)
4+
5+ ### Removed
6+ - Deprecated option ` debug_plugins ` has been removed from ` PluginClient `
7+
38## 1.8.2 (unreleased)
49
510### Changed
Original file line number Diff line number Diff line change @@ -109,28 +109,12 @@ public function sendAsyncRequest(RequestInterface $request)
109109 */
110110 private function configure (array $ options = [])
111111 {
112- if (isset ($ options ['debug_plugins ' ])) {
113- @trigger_error ('The "debug_plugins" option is deprecated since 1.5 and will be removed in 2.0. ' , E_USER_DEPRECATED );
114- }
115-
116112 $ resolver = new OptionsResolver ();
117113 $ resolver ->setDefaults ([
118114 'max_restarts ' => 10 ,
119- 'debug_plugins ' => [],
120115 ]);
121116
122- $ resolver
123- ->setAllowedTypes ('debug_plugins ' , 'array ' )
124- ->setAllowedValues ('debug_plugins ' , function (array $ plugins ) {
125- foreach ($ plugins as $ plugin ) {
126- // Make sure each object passed with the `debug_plugins` is an instance of Plugin.
127- if (!$ plugin instanceof Plugin) {
128- return false ;
129- }
130- }
131-
132- return true ;
133- });
117+ $ resolver ->setAllowedTypes ('max_restarts ' , 'int ' );
134118
135119 return $ resolver ->resolve ($ options );
136120 }
You can’t perform that action at this time.
0 commit comments