Add ability to change the size of the buffer to send the content of the message body #440
Annotations
10 warnings
src/HttpApplicationRunner.php#L66
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 = [], string $configDirectory = 'config', string $vendorDirectory = 'vendor', string $configMergePlanFile = '.merge-plan.php', private ?LoggerInterface $logger = null, private ?int $bufferSize = null)
+ 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 = [], string $configDirectory = 'config', string $vendorDirectory = 'vendor', string $configMergePlanFile = '.merge-plan.php', private ?LoggerInterface $logger = null, private ?int $bufferSize = null)
{
parent::__construct($rootPath, $debug, $checkEvents, $environment, $bootstrapGroup, $eventsGroup, $diGroup, $diProvidersGroup, $diDelegatesGroup, $diTagsGroup, $paramsGroup, $nestedParamsGroups, $nestedEventsGroups, $configModifiers, $configDirectory, $vendorDirectory, $configMergePlanFile);
}
|
src/HttpApplicationRunner.php#L67
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 = [], string $configDirectory = 'config', string $vendorDirectory = 'vendor', string $configMergePlanFile = '.merge-plan.php', private ?LoggerInterface $logger = null, private ?int $bufferSize = null)
+ 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 = [], string $configDirectory = 'config', string $vendorDirectory = 'vendor', string $configMergePlanFile = '.merge-plan.php', private ?LoggerInterface $logger = null, private ?int $bufferSize = null)
{
parent::__construct($rootPath, $debug, $checkEvents, $environment, $bootstrapGroup, $eventsGroup, $diGroup, $diProvidersGroup, $diDelegatesGroup, $diTagsGroup, $paramsGroup, $nestedParamsGroups, $nestedEventsGroups, $configModifiers, $configDirectory, $vendorDirectory, $configMergePlanFile);
}
|
src/HttpApplicationRunner.php#L76
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 = [], string $configDirectory = 'config', string $vendorDirectory = 'vendor', string $configMergePlanFile = '.merge-plan.php', private ?LoggerInterface $logger = null, private ?int $bufferSize = null)
+ 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 = [], string $configDirectory = 'config', string $vendorDirectory = 'vendor', string $configMergePlanFile = '.merge-plan.php', private ?LoggerInterface $logger = null, private ?int $bufferSize = null)
{
parent::__construct($rootPath, $debug, $checkEvents, $environment, $bootstrapGroup, $eventsGroup, $diGroup, $diProvidersGroup, $diDelegatesGroup, $diTagsGroup, $paramsGroup, $nestedParamsGroups, $nestedEventsGroups, $configModifiers, $configDirectory, $vendorDirectory, $configMergePlanFile);
}
|
src/HttpApplicationRunner.php#L77
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 = [], string $configDirectory = 'config', string $vendorDirectory = 'vendor', string $configMergePlanFile = '.merge-plan.php', private ?LoggerInterface $logger = null, private ?int $bufferSize = null)
+ 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 = [], string $configDirectory = 'config', string $vendorDirectory = 'vendor', string $configMergePlanFile = '.merge-plan.php', private ?LoggerInterface $logger = null, private ?int $bufferSize = null)
{
parent::__construct($rootPath, $debug, $checkEvents, $environment, $bootstrapGroup, $eventsGroup, $diGroup, $diProvidersGroup, $diDelegatesGroup, $diTagsGroup, $paramsGroup, $nestedParamsGroups, $nestedEventsGroups, $configModifiers, $configDirectory, $vendorDirectory, $configMergePlanFile);
}
|
src/HttpApplicationRunner.php#L133
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.
|
src/HttpApplicationRunner.php#L144
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);
|
src/HttpApplicationRunner.php#L145
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);
/**
|
src/HttpApplicationRunner.php#L208
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
if ($this->debug) {
$registered->debug();
}
- $registered->register();
+
}
}
|
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);
}
}
|
src/RequestFactory.php#L86
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);
}
}
|
This job succeeded
Loading