Skip to content

Commit

Permalink
Catch without unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Jun 8, 2024
1 parent 38ef66d commit c0b60dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Blueprint/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static function forProperties(string $class, array $properties): array
foreach ($properties as $property => $value) {
try {
$properties[$property] = static::forProperty($class, $property, $value);
} catch (ReflectionException $e) {
} catch (ReflectionException) {
// the property does not exist
unset($properties[$property]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Cms/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ public function validatePassword(
if (($details['reason'] ?? null) !== 'rate-limited') {
try {
$this->track($email);
} catch (Throwable $e) {
} catch (Throwable) {
// $e is overwritten with the exception
// from the track method if there's one
}
Expand Down
2 changes: 1 addition & 1 deletion src/Cms/Blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public static function parse(array|string|null $input): array
}

$input = $yaml;
} catch (Throwable $e) {
} catch (Throwable) {
// the next 2 lines remain after removing block.converter
// @codeCoverageIgnoreEnd
$parser = new Parsley((string)$input, new BlockSchema());
Expand Down

0 comments on commit c0b60dd

Please sign in to comment.