Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
litvinjuan committed May 1, 2024
2 parents 042fd0e + b671d74 commit 1c27000
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/AfipCmsSigner.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AfipCmsSigner

private ?string $private_key_passphrase;

public function __construct(string $certificate, string $private_key, string $private_key_passphrase = null)
public function __construct(string $certificate, string $private_key, ?string $private_key_passphrase = null)
{
$this->certificate = $certificate;
$this->private_key = $private_key;
Expand Down
2 changes: 1 addition & 1 deletion src/AfipConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AfipConfiguration

private AfipCmsSigner $signer;

public function __construct(string $cuit = null, string $certificate = null, string $private_key = null, string $private_key_passphrase = null, bool $production_mode = true)
public function __construct(?string $cuit = null, ?string $certificate = null, ?string $private_key = null, ?string $private_key_passphrase = null, bool $production_mode = true)
{
$this->cuit = $cuit ?? config('afip.cuit');
$this->certificate = $certificate ?? config('afip.certificate');
Expand Down
6 changes: 3 additions & 3 deletions src/LaravelAfip.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@

class LaravelAfip
{
public function auth(AfipConfiguration $configuration = null): AuthenticationWebService
public function auth(?AfipConfiguration $configuration = null): AuthenticationWebService
{
return new AuthenticationWebService($configuration);
}

public function billing(AfipConfiguration $configuration = null): ElectronicBillingWebService
public function billing(?AfipConfiguration $configuration = null): ElectronicBillingWebService
{
return new ElectronicBillingWebService($configuration);
}

public function padron(AfipConfiguration $configuration = null): PadronWebService
public function padron(?AfipConfiguration $configuration = null): PadronWebService
{
return new PadronWebService($configuration);
}
Expand Down
2 changes: 1 addition & 1 deletion src/WebServices/AuthenticationWebService.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class AuthenticationWebService

private AfipClient $client;

public function __construct(AfipConfiguration $configuration = null)
public function __construct(?AfipConfiguration $configuration = null)
{
$this->configuration = $configuration ?? new AfipConfiguration();

Expand Down
2 changes: 1 addition & 1 deletion src/WebServices/ElectronicBillingWebService.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ElectronicBillingWebService

private AfipClient $client;

public function __construct(AfipConfiguration $configuration = null)
public function __construct(?AfipConfiguration $configuration = null)
{
$this->configuration = $configuration ?? new AfipConfiguration();

Expand Down
2 changes: 1 addition & 1 deletion src/WebServices/PadronWebService.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class PadronWebService

private AfipClient $padron13Client;

public function __construct(AfipConfiguration $configuration = null)
public function __construct(?AfipConfiguration $configuration = null)
{
$this->configuration = $configuration ?? new AfipConfiguration();

Expand Down

0 comments on commit 1c27000

Please sign in to comment.