Bump actions/dependency-review-action from 4 to 5 (#279) #93
Annotations
10 warnings
|
Execute Infection:
src/Factory.php#L70
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
private static function populateOTP(OTPInterface $otp, Url $data): void
{
self::populateParameters($otp, $data);
- $result = explode(':', rawurldecode(substr($data->getPath(), 1)));
+ $result = explode(':', rawurldecode(substr($data->getPath(), 0)));
if (count($result) < 2) {
$otp->setIssuerIncludedAsParameter(false);
|
|
Execute Infection:
src/Factory.php#L34
Escaped Mutant for Mutator "Identical":
@@ @@
$throwable
);
}
- if ($clock === null) {
+ if ($clock !== null) {
trigger_deprecation(
'spomky-labs/otphp',
'11.3.0',
|
|
Execute Infection:
src/Factory.php#L26
Escaped Mutant for Mutator "LogicalOrNegation":
@@ @@
{
try {
$parsed_url = Url::fromString($uri);
- $parsed_url->getScheme() === 'otpauth' || throw new InvalidProvisioningUriException('Invalid scheme.');
+ !($parsed_url->getScheme() === 'otpauth' || throw new InvalidProvisioningUriException('Invalid scheme.'));
} catch (Throwable $throwable) {
throw new InvalidProvisioningUriException(
'Not a valid OTP provisioning URI',
|
|
Execute Infection:
src/Factory.php#L26
Escaped Mutant for Mutator "Throw_":
@@ @@
{
try {
$parsed_url = Url::fromString($uri);
- $parsed_url->getScheme() === 'otpauth' || throw new InvalidProvisioningUriException('Invalid scheme.');
+ $parsed_url->getScheme() === 'otpauth' || new InvalidProvisioningUriException('Invalid scheme.');
} catch (Throwable $throwable) {
throw new InvalidProvisioningUriException(
'Not a valid OTP provisioning URI',
|
|
Execute Infection:
src/Exception/ParameterNotFoundException.php#L18
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
public function __construct(
string $message,
public readonly string $parameterName = '',
- int $code = 0,
+ int $code = 1,
?Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
|
|
Execute Infection:
src/Exception/ParameterNotFoundException.php#L18
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
public function __construct(
string $message,
public readonly string $parameterName = '',
- int $code = 0,
+ int $code = -1,
?Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
|
|
Execute Infection:
src/Exception/InvalidParameterException.php#L20
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
string $message,
public readonly string $parameterName = '',
public readonly mixed $parameterValue = null,
- int $code = 0,
+ int $code = 1,
?Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
|
|
Execute Infection:
src/Exception/InvalidParameterException.php#L20
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
string $message,
public readonly string $parameterName = '',
public readonly mixed $parameterValue = null,
- int $code = 0,
+ int $code = -1,
?Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
|
|
Execute Infection:
src/Exception/InvalidLabelException.php#L20
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
string $message,
public readonly string $labelName = '',
public readonly mixed $labelValue = null,
- int $code = 0,
+ int $code = 1,
?Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
|
|
Execute Infection:
src/Exception/InvalidLabelException.php#L20
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
string $message,
public readonly string $labelName = '',
public readonly mixed $labelValue = null,
- int $code = 0,
+ int $code = -1,
?Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
|
background
wait
wait-all
cancel
parallel
Loading