Update actions/checkout action to v4 #569
Annotations
10 warnings
src/ProxyManager/Exception/FileNotWritableException.php#L44
Escaped Mutant:
--- Original
+++ New
@@ @@
}
public static function fromPrevious(FileWriterException $previous) : self
{
- return new self($previous->getMessage(), 0, $previous);
+ return new self($previous->getMessage(), -1, $previous);
}
}
|
src/ProxyManager/Exception/FileNotWritableException.php#L44
Escaped Mutant:
--- Original
+++ New
@@ @@
}
public static function fromPrevious(FileWriterException $previous) : self
{
- return new self($previous->getMessage(), 0, $previous);
+ return new self($previous->getMessage(), 1, $previous);
}
}
|
src/ProxyManager/Factory/AbstractBaseFactory.php#L65
Escaped Mutant:
--- Original
+++ New
@@ @@
assert(is_a($generatedClassName, $className, true));
return $generatedClassName;
}
- $proxyParameters = ['className' => $className, 'factory' => static::class, 'proxyManagerVersion' => Version::getVersion(), 'proxyOptions' => $proxyOptions];
+ $proxyParameters = ['factory' => static::class, 'proxyManagerVersion' => Version::getVersion(), 'proxyOptions' => $proxyOptions];
$proxyClassName = $this->configuration->getClassNameInflector()->getProxyClassName($className, $proxyParameters);
if (!class_exists($proxyClassName)) {
$this->generateProxyClass($proxyClassName, $className, $proxyParameters, $proxyOptions);
|
src/ProxyManager/Factory/RemoteObjectFactory.php#L66
Escaped Mutant:
--- Original
+++ New
@@ @@
}
protected function getGenerator() : ProxyGeneratorInterface
{
- return $this->generator ?? ($this->generator = new RemoteObjectGenerator());
+ return ($this->generator = new RemoteObjectGenerator()) ?? $this->generator;
}
}
|
src/ProxyManager/Generator/MagicMethodGenerator.php#L28
Escaped Mutant:
--- Original
+++ New
@@ @@
public function __construct(ReflectionClass $originalClass, string $name, array $parameters = [])
{
parent::__construct($name, $parameters, self::FLAG_PUBLIC);
- $this->setReturnsReference(strtolower($name) === '__get');
+ $this->setReturnsReference($name === '__get');
if (!$originalClass->hasMethod($name)) {
return;
}
|
src/ProxyManager/Generator/MethodGenerator.php#L24
Escaped Mutant:
--- Original
+++ New
@@ @@
{
/** @var static $method */
$method = parent::copyMethodSignature($reflectionMethod);
- $method->setInterface(false);
+
$method->setBody('');
return $method;
}
|
src/ProxyManager/Generator/MethodGenerator.php#L25
Escaped Mutant:
--- Original
+++ New
@@ @@
/** @var static $method */
$method = parent::copyMethodSignature($reflectionMethod);
$method->setInterface(false);
- $method->setBody('');
+
return $method;
}
/**
|
src/ProxyManager/Generator/Util/IdentifierSuffixer.php#L39
Escaped Mutant:
--- Original
+++ New
@@ @@
{
/** @var string|null $salt */
static $salt;
- $salt ??= self::loadBaseHashSalt();
+ $salt = self::loadBaseHashSalt();
$suffix = substr(sha1($name . $salt), 0, 5);
if (!preg_match(self::VALID_IDENTIFIER_FORMAT, $name)) {
return self::DEFAULT_IDENTIFIER . $suffix;
|
src/ProxyManager/Generator/Util/IdentifierSuffixer.php#L39
Escaped Mutant:
--- Original
+++ New
@@ @@
{
/** @var string|null $salt */
static $salt;
- $salt ??= self::loadBaseHashSalt();
+ $salt = self::loadBaseHashSalt();
$suffix = substr(sha1($name . $salt), 0, 5);
if (!preg_match(self::VALID_IDENTIFIER_FORMAT, $name)) {
return self::DEFAULT_IDENTIFIER . $suffix;
|
src/ProxyManager/ProxyGenerator/AccessInterceptor/MethodGenerator/SetMethodPrefixInterceptor.php#L30
Escaped Mutant:
--- Original
+++ New
@@ @@
{
parent::__construct('setMethodPrefixInterceptor');
$interceptor = new ParameterGenerator('prefixInterceptor');
- $interceptor->setType(Closure::class);
+
$interceptor->setDefaultValue(null);
$this->setParameter(new ParameterGenerator('methodName', 'string'));
$this->setParameter($interceptor);
|
The logs for this run have expired and are no longer available.
Loading