Skip to content

Commit

Permalink
Fix Psalm nits
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Sep 27, 2019
1 parent 4648476 commit c0813ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Fetch.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,13 @@ public function setChronicle($url, $publicKey)
/**
* @param int $index
* @param string $reason
* @return void
* @throws EncodingException
* @throws FilesystemException
*/
protected function markBundleAsBad($index = 0, $reason = '')
{
/** @var array<int, array<string, string>> $data */
$data = $this->loadCaCertsFile();
$now = (new \DateTime())->format(\DateTime::ATOM);
$data[$index]['bad-bundle'] = 'Marked bad on ' . $now . ' for reason: ' . $reason;
Expand Down

0 comments on commit c0813ee

Please sign in to comment.