Add attributes support & improve MatchingResult
#821
Annotations
1 error and 10 warnings
|
src/Attribute/Delete.php#L27
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
* It is useful to avoid invoking one of the parent group middleware for
* a certain route.
*/
- public function __construct(string $pattern, ?string $name = null, array $middlewares = [], array $defaults = [], array $hosts = [], bool $override = false, array $disabledMiddlewares = [])
+ public function __construct(string $pattern, ?string $name = null, array $middlewares = [], array $defaults = [], array $hosts = [], bool $override = true, array $disabledMiddlewares = [])
{
parent::__construct(methods: [Method::DELETE], pattern: $pattern, name: $name, middlewares: $middlewares, defaults: $defaults, hosts: $hosts, override: $override, disabledMiddlewares: $disabledMiddlewares);
}
}
|
src/Attribute/Get.php#L27
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
* It is useful to avoid invoking one of the parent group middleware for
* a certain route.
*/
- public function __construct(string $pattern, ?string $name = null, array $middlewares = [], array $defaults = [], array $hosts = [], bool $override = false, array $disabledMiddlewares = [])
+ public function __construct(string $pattern, ?string $name = null, array $middlewares = [], array $defaults = [], array $hosts = [], bool $override = true, array $disabledMiddlewares = [])
{
parent::__construct(methods: [Method::GET], pattern: $pattern, name: $name, middlewares: $middlewares, defaults: $defaults, hosts: $hosts, override: $override, disabledMiddlewares: $disabledMiddlewares);
}
}
|
src/Attribute/Head.php#L27
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
* It is useful to avoid invoking one of the parent group middleware for
* a certain route.
*/
- public function __construct(string $pattern, ?string $name = null, array $middlewares = [], array $defaults = [], array $hosts = [], bool $override = false, array $disabledMiddlewares = [])
+ public function __construct(string $pattern, ?string $name = null, array $middlewares = [], array $defaults = [], array $hosts = [], bool $override = true, array $disabledMiddlewares = [])
{
parent::__construct(methods: [Method::HEAD], pattern: $pattern, name: $name, middlewares: $middlewares, defaults: $defaults, hosts: $hosts, override: $override, disabledMiddlewares: $disabledMiddlewares);
}
}
|
src/Attribute/Options.php#L27
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
* It is useful to avoid invoking one of the parent group middleware for
* a certain route.
*/
- public function __construct(string $pattern, ?string $name = null, array $middlewares = [], array $defaults = [], array $hosts = [], bool $override = false, array $disabledMiddlewares = [])
+ public function __construct(string $pattern, ?string $name = null, array $middlewares = [], array $defaults = [], array $hosts = [], bool $override = true, array $disabledMiddlewares = [])
{
parent::__construct(methods: [Method::OPTIONS], pattern: $pattern, name: $name, middlewares: $middlewares, defaults: $defaults, hosts: $hosts, override: $override, disabledMiddlewares: $disabledMiddlewares);
}
}
|
src/Attribute/Patch.php#L27
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
* It is useful to avoid invoking one of the parent group middleware for
* a certain route.
*/
- public function __construct(string $pattern, ?string $name = null, array $middlewares = [], array $defaults = [], array $hosts = [], bool $override = false, array $disabledMiddlewares = [])
+ public function __construct(string $pattern, ?string $name = null, array $middlewares = [], array $defaults = [], array $hosts = [], bool $override = true, array $disabledMiddlewares = [])
{
parent::__construct(methods: [Method::PATCH], pattern: $pattern, name: $name, middlewares: $middlewares, defaults: $defaults, hosts: $hosts, override: $override, disabledMiddlewares: $disabledMiddlewares);
}
}
|
src/Attribute/Post.php#L27
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
* It is useful to avoid invoking one of the parent group middleware for
* a certain route.
*/
- public function __construct(string $pattern, ?string $name = null, array $middlewares = [], array $defaults = [], array $hosts = [], bool $override = false, array $disabledMiddlewares = [])
+ public function __construct(string $pattern, ?string $name = null, array $middlewares = [], array $defaults = [], array $hosts = [], bool $override = true, array $disabledMiddlewares = [])
{
parent::__construct(methods: [Method::POST], pattern: $pattern, name: $name, middlewares: $middlewares, defaults: $defaults, hosts: $hosts, override: $override, disabledMiddlewares: $disabledMiddlewares);
}
}
|
src/Attribute/Put.php#L27
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
* It is useful to avoid invoking one of the parent group middleware for
* a certain route.
*/
- public function __construct(string $pattern, ?string $name = null, array $middlewares = [], array $defaults = [], array $hosts = [], bool $override = false, array $disabledMiddlewares = [])
+ public function __construct(string $pattern, ?string $name = null, array $middlewares = [], array $defaults = [], array $hosts = [], bool $override = true, array $disabledMiddlewares = [])
{
parent::__construct(methods: [Method::PUT], pattern: $pattern, name: $name, middlewares: $middlewares, defaults: $defaults, hosts: $hosts, override: $override, disabledMiddlewares: $disabledMiddlewares);
}
}
|
src/Debug/DebugRoutesCommand.php#L31
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
protected function configure() : void
{
- $this->setDescription('Show information about registered routes')->addArgument('route', InputArgument::IS_ARRAY, 'Route name');
+
}
/**
* @psalm-suppress MixedArgument, MixedAssignment, MixedArrayAccess
|
src/Debug/DebugRoutesCommand.php#L41
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
protected function execute(InputInterface $input, OutputInterface $output) : int
{
- $this->debugger->stop();
+
$io = new SymfonyStyle($input, $output);
if ($input->hasArgument('route') && !empty($input->getArgument('route'))) {
/**
|
src/Debug/DebugRoutesCommand.php#L45
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
{
$this->debugger->stop();
$io = new SymfonyStyle($input, $output);
- if ($input->hasArgument('route') && !empty($input->getArgument('route'))) {
+ if ($input->hasArgument('route') && empty($input->getArgument('route'))) {
/**
* @var string[] $routes
*/
|
The logs for this run have expired and are no longer available.
Loading