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 1
1
# Change Log
2
2
3
+ ## 2.0 (unreleased)
4
+
5
+ ### Removed
6
+ - Deprecated option ` debug_plugins ` has been removed from ` PluginClient `
7
+
3
8
## 1.8.2 (unreleased)
4
9
5
10
### Changed
Original file line number Diff line number Diff line change @@ -109,28 +109,12 @@ public function sendAsyncRequest(RequestInterface $request)
109
109
*/
110
110
private function configure (array $ options = [])
111
111
{
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
-
116
112
$ resolver = new OptionsResolver ();
117
113
$ resolver ->setDefaults ([
118
114
'max_restarts ' => 10 ,
119
- 'debug_plugins ' => [],
120
115
]);
121
116
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 ' );
134
118
135
119
return $ resolver ->resolve ($ options );
136
120
}
You can’t perform that action at this time.
0 commit comments