@@ -159,7 +159,7 @@ public function getUriFactory()
159159 *
160160 * @return void
161161 */
162- public function addPlugin (Plugin $ plugin )
162+ public function addPlugin (Plugin $ plugin ): void
163163 {
164164 $ this ->plugins [] = $ plugin ;
165165 $ this ->pluginClient = null ;
@@ -172,7 +172,7 @@ public function addPlugin(Plugin $plugin)
172172 *
173173 * @return void
174174 */
175- public function removePlugin (string $ fqcn )
175+ public function removePlugin (string $ fqcn ): void
176176 {
177177 foreach ($ this ->plugins as $ idx => $ plugin ) {
178178 if ($ plugin instanceof $ fqcn ) {
@@ -190,7 +190,7 @@ public function removePlugin(string $fqcn)
190190 *
191191 * @return void
192192 */
193- public function addCache (CacheItemPoolInterface $ cachePool , array $ config = [])
193+ public function addCache (CacheItemPoolInterface $ cachePool , array $ config = []): void
194194 {
195195 if (!isset ($ config ['cache_key_generator ' ])) {
196196 $ config ['cache_key_generator ' ] = new HeaderCacheKeyGenerator (['Authorization ' , 'Cookie ' , 'Accept ' , 'Content-type ' ]);
@@ -205,7 +205,7 @@ public function addCache(CacheItemPoolInterface $cachePool, array $config = [])
205205 *
206206 * @return void
207207 */
208- public function removeCache ()
208+ public function removeCache (): void
209209 {
210210 $ this ->cachePlugin = null ;
211211 $ this ->pluginClient = null ;
0 commit comments