@@ -84,7 +84,7 @@ public function acquire(bool $blocking = false): bool
8484 try {
8585 $ this ->store ->save ($ this ->key );
8686 break ;
87- } catch (LockConflictedException $ e ) {
87+ } catch (LockConflictedException ) {
8888 usleep ((100 + random_int (-10 , 10 )) * 1000 );
8989 }
9090 }
@@ -105,7 +105,7 @@ public function acquire(bool $blocking = false): bool
105105 if ($ this ->key ->isExpired ()) {
106106 try {
107107 $ this ->release ();
108- } catch (\Exception $ e ) {
108+ } catch (\Exception ) {
109109 // swallow exception to not hide the original issue
110110 }
111111 throw new LockExpiredException (sprintf ('Failed to store the "%s" lock. ' , $ this ->key ));
@@ -145,7 +145,7 @@ public function acquireRead(bool $blocking = false): bool
145145 try {
146146 $ this ->store ->saveRead ($ this ->key );
147147 break ;
148- } catch (LockConflictedException $ e ) {
148+ } catch (LockConflictedException ) {
149149 usleep ((100 + random_int (-10 , 10 )) * 1000 );
150150 }
151151 }
@@ -166,7 +166,7 @@ public function acquireRead(bool $blocking = false): bool
166166 if ($ this ->key ->isExpired ()) {
167167 try {
168168 $ this ->release ();
169- } catch (\Exception $ e ) {
169+ } catch (\Exception ) {
170170 // swallow exception to not hide the original issue
171171 }
172172 throw new LockExpiredException (sprintf ('Failed to store the "%s" lock. ' , $ this ->key ));
@@ -208,7 +208,7 @@ public function refresh(float $ttl = null)
208208 if ($ this ->key ->isExpired ()) {
209209 try {
210210 $ this ->release ();
211- } catch (\Exception $ e ) {
211+ } catch (\Exception ) {
212212 // swallow exception to not hide the original issue
213213 }
214214 throw new LockExpiredException (sprintf ('Failed to put off the expiration of the "%s" lock within the specified time. ' , $ this ->key ));
0 commit comments