Improve CI #422
Annotations
10 warnings
mutation / PHP 8.3-ubuntu-latest:
src/HttpApplicationRunner.php#L61
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
* @psalm-param list<string> $nestedEventsGroups
* @psalm-param list<object> $configModifiers
*/
- public function __construct(string $rootPath, bool $debug = false, bool $checkEvents = false, ?string $environment = null, string $bootstrapGroup = 'bootstrap-web', string $eventsGroup = 'events-web', string $diGroup = 'di-web', string $diProvidersGroup = 'di-providers-web', string $diDelegatesGroup = 'di-delegates-web', string $diTagsGroup = 'di-tags-web', string $paramsGroup = 'params-web', array $nestedParamsGroups = ['params'], array $nestedEventsGroups = ['events'], array $configModifiers = [])
+ public function __construct(string $rootPath, bool $debug = true, bool $checkEvents = false, ?string $environment = null, string $bootstrapGroup = 'bootstrap-web', string $eventsGroup = 'events-web', string $diGroup = 'di-web', string $diProvidersGroup = 'di-providers-web', string $diDelegatesGroup = 'di-delegates-web', string $diTagsGroup = 'di-tags-web', string $paramsGroup = 'params-web', array $nestedParamsGroups = ['params'], array $nestedEventsGroups = ['events'], array $configModifiers = [])
{
parent::__construct($rootPath, $debug, $checkEvents, $environment, $bootstrapGroup, $eventsGroup, $diGroup, $diProvidersGroup, $diDelegatesGroup, $diTagsGroup, $paramsGroup, $nestedParamsGroups, $nestedEventsGroups, $configModifiers);
}
|
mutation / PHP 8.3-ubuntu-latest:
src/HttpApplicationRunner.php#L62
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
* @psalm-param list<string> $nestedEventsGroups
* @psalm-param list<object> $configModifiers
*/
- public function __construct(string $rootPath, bool $debug = false, bool $checkEvents = false, ?string $environment = null, string $bootstrapGroup = 'bootstrap-web', string $eventsGroup = 'events-web', string $diGroup = 'di-web', string $diProvidersGroup = 'di-providers-web', string $diDelegatesGroup = 'di-delegates-web', string $diTagsGroup = 'di-tags-web', string $paramsGroup = 'params-web', array $nestedParamsGroups = ['params'], array $nestedEventsGroups = ['events'], array $configModifiers = [])
+ public function __construct(string $rootPath, bool $debug = false, bool $checkEvents = true, ?string $environment = null, string $bootstrapGroup = 'bootstrap-web', string $eventsGroup = 'events-web', string $diGroup = 'di-web', string $diProvidersGroup = 'di-providers-web', string $diDelegatesGroup = 'di-delegates-web', string $diTagsGroup = 'di-tags-web', string $paramsGroup = 'params-web', array $nestedParamsGroups = ['params'], array $nestedEventsGroups = ['events'], array $configModifiers = [])
{
parent::__construct($rootPath, $debug, $checkEvents, $environment, $bootstrapGroup, $eventsGroup, $diGroup, $diProvidersGroup, $diDelegatesGroup, $diTagsGroup, $paramsGroup, $nestedParamsGroups, $nestedEventsGroups, $configModifiers);
}
|
mutation / PHP 8.3-ubuntu-latest:
src/HttpApplicationRunner.php#L71
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
* @psalm-param list<string> $nestedEventsGroups
* @psalm-param list<object> $configModifiers
*/
- public function __construct(string $rootPath, bool $debug = false, bool $checkEvents = false, ?string $environment = null, string $bootstrapGroup = 'bootstrap-web', string $eventsGroup = 'events-web', string $diGroup = 'di-web', string $diProvidersGroup = 'di-providers-web', string $diDelegatesGroup = 'di-delegates-web', string $diTagsGroup = 'di-tags-web', string $paramsGroup = 'params-web', array $nestedParamsGroups = ['params'], array $nestedEventsGroups = ['events'], array $configModifiers = [])
+ public function __construct(string $rootPath, bool $debug = false, bool $checkEvents = false, ?string $environment = null, string $bootstrapGroup = 'bootstrap-web', string $eventsGroup = 'events-web', string $diGroup = 'di-web', string $diProvidersGroup = 'di-providers-web', string $diDelegatesGroup = 'di-delegates-web', string $diTagsGroup = 'di-tags-web', string $paramsGroup = 'params-web', array $nestedParamsGroups = [], array $nestedEventsGroups = ['events'], array $configModifiers = [])
{
parent::__construct($rootPath, $debug, $checkEvents, $environment, $bootstrapGroup, $eventsGroup, $diGroup, $diProvidersGroup, $diDelegatesGroup, $diTagsGroup, $paramsGroup, $nestedParamsGroups, $nestedEventsGroups, $configModifiers);
}
|
mutation / PHP 8.3-ubuntu-latest:
src/HttpApplicationRunner.php#L72
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
* @psalm-param list<string> $nestedEventsGroups
* @psalm-param list<object> $configModifiers
*/
- public function __construct(string $rootPath, bool $debug = false, bool $checkEvents = false, ?string $environment = null, string $bootstrapGroup = 'bootstrap-web', string $eventsGroup = 'events-web', string $diGroup = 'di-web', string $diProvidersGroup = 'di-providers-web', string $diDelegatesGroup = 'di-delegates-web', string $diTagsGroup = 'di-tags-web', string $paramsGroup = 'params-web', array $nestedParamsGroups = ['params'], array $nestedEventsGroups = ['events'], array $configModifiers = [])
+ public function __construct(string $rootPath, bool $debug = false, bool $checkEvents = false, ?string $environment = null, string $bootstrapGroup = 'bootstrap-web', string $eventsGroup = 'events-web', string $diGroup = 'di-web', string $diProvidersGroup = 'di-providers-web', string $diDelegatesGroup = 'di-delegates-web', string $diTagsGroup = 'di-tags-web', string $paramsGroup = 'params-web', array $nestedParamsGroups = ['params'], array $nestedEventsGroups = [], array $configModifiers = [])
{
parent::__construct($rootPath, $debug, $checkEvents, $environment, $bootstrapGroup, $eventsGroup, $diGroup, $diProvidersGroup, $diDelegatesGroup, $diTagsGroup, $paramsGroup, $nestedParamsGroups, $nestedEventsGroups, $configModifiers);
}
|
mutation / PHP 8.3-ubuntu-latest:
src/HttpApplicationRunner.php#L120
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$startTime = microtime(true);
// Register temporary error handler to catch error while container is building.
$temporaryErrorHandler = $this->createTemporaryErrorHandler();
- $this->registerErrorHandler($temporaryErrorHandler);
+
$container = $this->getContainer();
// Register error handler with real container-configured dependencies.
/** @var ErrorHandler $actualErrorHandler */
|
mutation / PHP 8.3-ubuntu-latest:
src/HttpApplicationRunner.php#L129
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
/** @var ErrorHandler $actualErrorHandler */
$actualErrorHandler = $container->get(ErrorHandler::class);
$this->registerErrorHandler($actualErrorHandler, $temporaryErrorHandler);
- $this->runBootstrap();
+
$this->checkEvents();
/** @var Application $application */
$application = $container->get(Application::class);
|
mutation / PHP 8.3-ubuntu-latest:
src/HttpApplicationRunner.php#L130
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$actualErrorHandler = $container->get(ErrorHandler::class);
$this->registerErrorHandler($actualErrorHandler, $temporaryErrorHandler);
$this->runBootstrap();
- $this->checkEvents();
+
/** @var Application $application */
$application = $container->get(Application::class);
/**
|
mutation / PHP 8.3-ubuntu-latest:
src/HttpApplicationRunner.php#L168
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if ($this->temporaryErrorHandler !== null) {
return $this->temporaryErrorHandler;
}
- $logger = new Logger([new FileTarget("{$this->rootPath}/runtime/logs/app.log")]);
+ $logger = new Logger([]);
return new ErrorHandler($logger, new HtmlRenderer());
}
/**
|
mutation / PHP 8.3-ubuntu-latest:
src/HttpApplicationRunner.php#L191
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
if ($this->debug) {
$registered->debug();
}
- $registered->register();
+
}
}
|
mutation / PHP 8.3-ubuntu-latest:
src/RequestFactory.php#L85
Escaped Mutant for Mutator "PregMatchRemoveCaret":
--- Original
+++ New
@@ @@
// Parse body
if ($method === 'POST') {
$contentType = $request->getHeaderLine('content-type');
- if (preg_match('~^application/x-www-form-urlencoded($| |;)~', $contentType) || preg_match('~^multipart/form-data($| |;)~', $contentType)) {
+ if (preg_match('~application/x-www-form-urlencoded($| |;)~', $contentType) || preg_match('~^multipart/form-data($| |;)~', $contentType)) {
$request = $request->withParsedBody($_POST);
}
}
|