Skip to content

Commit

Permalink
Fix Psalm type assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Oct 15, 2020
1 parent ed1048a commit 94fc99f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/LocalCACertBuilder.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
namespace ParagonIE\Certainty;

use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\Psr7\Response;
use ParagonIE\Certainty\Exception\CertaintyException;
use ParagonIE\Certainty\Exception\CryptoException;
Expand Down Expand Up @@ -72,9 +73,11 @@ class LocalCACertBuilder extends Bundle
* @return self
*
* @throws CertaintyException
* @psalm-suppress UnsafeInstantiation
*/
public static function fromBundle(Bundle $old)
{
/** @var self $new */
$new = new static(
$old->getFilePath(),
$old->getSha256Sum(),
Expand Down Expand Up @@ -132,6 +135,9 @@ public function appendCACertFile($path = '')
* @return string
*
* @throws CertaintyException
* @throws EncodingException
* @throws InvalidResponseException
* @throws GuzzleException
* @throws \SodiumException
*/
protected function commitToChronicle($sha256sum, $signature)
Expand Down

0 comments on commit 94fc99f

Please sign in to comment.