Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6f2e19e

Browse files
committed
Leverage non-capturing catches
1 parent 3de75f1 commit 6f2e19e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

PropertyAccessor.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ public function isReadable(object|array $objectOrArray, string|PropertyPathInter
236236
$this->readPropertiesUntil($zval, $propertyPath, $propertyPath->getLength(), $this->ignoreInvalidIndices);
237237

238238
return true;
239-
} catch (AccessException $e) {
239+
} catch (AccessException) {
240240
return false;
241-
} catch (UnexpectedTypeException $e) {
241+
} catch (UnexpectedTypeException) {
242242
return false;
243243
}
244244
}
@@ -274,9 +274,9 @@ public function isWritable(object|array $objectOrArray, string|PropertyPathInter
274274
}
275275

276276
return true;
277-
} catch (AccessException $e) {
277+
} catch (AccessException) {
278278
return false;
279-
} catch (UnexpectedTypeException $e) {
279+
} catch (UnexpectedTypeException) {
280280
return false;
281281
}
282282
}

0 commit comments

Comments
 (0)