Add RouteAttributeInterface
(#221)
#827
Annotations
1 error and 10 warnings
|
src/Attribute/Delete.php#L30
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 = [])
{
$this->route = new Route(methods: [Method::DELETE], pattern: $pattern, name: $name, middlewares: $middlewares, defaults: $defaults, hosts: $hosts, override: $override, disabledMiddlewares: $disabledMiddlewares);
}
|
src/Attribute/Get.php#L30
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 = [])
{
$this->route = new Route(methods: [Method::GET], pattern: $pattern, name: $name, middlewares: $middlewares, defaults: $defaults, hosts: $hosts, override: $override, disabledMiddlewares: $disabledMiddlewares);
}
|
src/Attribute/Head.php#L30
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 = [])
{
$this->route = new Route(methods: [Method::HEAD], pattern: $pattern, name: $name, middlewares: $middlewares, defaults: $defaults, hosts: $hosts, override: $override, disabledMiddlewares: $disabledMiddlewares);
}
|
src/Attribute/Options.php#L30
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 = [])
{
$this->route = new Route(methods: [Method::OPTIONS], pattern: $pattern, name: $name, middlewares: $middlewares, defaults: $defaults, hosts: $hosts, override: $override, disabledMiddlewares: $disabledMiddlewares);
}
|
src/Attribute/Patch.php#L30
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 = [])
{
$this->route = new Route(methods: [Method::PATCH], pattern: $pattern, name: $name, middlewares: $middlewares, defaults: $defaults, hosts: $hosts, override: $override, disabledMiddlewares: $disabledMiddlewares);
}
|
src/Attribute/Post.php#L30
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 = [])
{
$this->route = new Route(methods: [Method::POST], pattern: $pattern, name: $name, middlewares: $middlewares, defaults: $defaults, hosts: $hosts, override: $override, disabledMiddlewares: $disabledMiddlewares);
}
|
src/Attribute/Put.php#L30
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 = [])
{
$this->route = new Route(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