@@ -50,15 +50,15 @@ public function __construct(ClientInterface $client, string $distributionId, str
5050 /**
5151 * {@inheritdoc}
5252 */
53- public function clearAll ()
53+ public function clearAll (): void
5454 {
5555 $ this ->addPath ('/* ' );
5656 }
5757
5858 /**
5959 * {@inheritdoc}
6060 */
61- public function clearUrl (string $ url )
61+ public function clearUrl (string $ url ): void
6262 {
6363 $ path = parse_url ($ url , PHP_URL_PATH );
6464
@@ -72,7 +72,7 @@ public function clearUrl(string $url)
7272 /**
7373 * {@inheritdoc}
7474 */
75- public function clearUrls ($ urls )
75+ public function clearUrls ($ urls ): void
7676 {
7777 if (is_array ($ urls ) || is_string ($ urls )) {
7878 $ urls = new Collection ($ urls );
@@ -90,7 +90,7 @@ public function clearUrls($urls)
9090 /**
9191 * Invalidate the given paths.
9292 */
93- public function invalidatePaths (array $ paths )
93+ public function invalidatePaths (array $ paths ): void
9494 {
9595 $ concretePaths = array_filter ($ paths , function (string $ path ) {
9696 return !str_ends_with ($ path , '* ' );
@@ -110,7 +110,7 @@ public function invalidatePaths(array $paths)
110110 /**
111111 * {@inheritdoc}
112112 */
113- public function sendClearRequest (?callable $ guard = null )
113+ public function sendClearRequest (?callable $ guard = null ): void
114114 {
115115 if (empty ($ this ->invalidationPaths )) {
116116 return ;
@@ -146,7 +146,7 @@ protected function getService(): string
146146 /**
147147 * Add the given path to the list.
148148 */
149- private function addPath (string $ path )
149+ private function addPath (string $ path ): void
150150 {
151151 if (in_array ($ path , ['* ' , '/* ' ])) {
152152 $ this ->invalidationPaths = ['/* ' ];
@@ -242,7 +242,7 @@ private function generateInvalidationPayload(array $paths): string
242242 /**
243243 * Send an invalidation request.
244244 */
245- private function sendInvalidation (array $ paths )
245+ private function sendInvalidation (array $ paths ): void
246246 {
247247 $ attempts = 0 ;
248248 $ maxAttempts = 3 ;
0 commit comments