Skip to content

Commit

Permalink
Merge pull request #18 from mon-petit-placement/fix/allowed-values
Browse files Browse the repository at this point in the history
fix: types errors
  • Loading branch information
Celine68 authored Oct 4, 2023
2 parents 58adf95 + 9e41702 commit 28a90ab
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Model/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct()
$this->content = null;
$this->url = null;
$this->fileName = null;
$this->signatureFields = null;
$this->signatureFields = [];
$this->checkBoxTexts = null;
$this->metaData = null;
$this->title = null;
Expand Down
2 changes: 1 addition & 1 deletion Model/Signer.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static function configureData(OptionsResolver $resolver): void
return RegistrationRequest::createFromArray($value);
})
->setDefault('validationSessionId', null)->setAllowedTypes('validationSessionId', ['null', 'string'])
->setDefault('redirectPolicy', null)->setAllowedValues('redirectPolicy', ['null', 'dashboard', 'quick'])
->setDefault('redirectPolicy', null)->setAllowedValues('redirectPolicy', [null, 'dashboard', 'quick'])
->setDefault('redirectWait', 5)->setAllowedTypes('redirectWait', ['int'])->setNormalizer('redirectWait', function (Options $options, $value) {
if ('quick' === $options['redirectPolicy']) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion Model/TransactionInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TransactionInfo

protected ?string $description;

protected InitiatorInfo $initiatorInfo;
protected ?InitiatorInfo $initiatorInfo;

protected ?bool $eachField;

Expand Down
1 change: 0 additions & 1 deletion Requester/RegistrationAuthority.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Mpp\UniversignBundle\Model\MatchingResult;
use Mpp\UniversignBundle\Model\ValidationRequest;
use Mpp\UniversignBundle\Model\ValidatorResult;
use PhpXmlRpc\Encoder;
use PhpXmlRpc\Exception;
use Psr\Log\LoggerInterface;
use Symfony\Bundle\FrameworkBundle\Routing\Router;
Expand Down
1 change: 0 additions & 1 deletion Requester/Signer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Mpp\UniversignBundle\Model\TransactionRequest;
use Mpp\UniversignBundle\Model\TransactionResponse;
use Mpp\UniversignBundle\Model\XmlRpc\Base64;
use PhpXmlRpc\Encoder;
use PhpXmlRpc\Exception;
use Psr\Log\LoggerInterface;
use Symfony\Bundle\FrameworkBundle\Routing\Router;
Expand Down

0 comments on commit 28a90ab

Please sign in to comment.