Skip to content

Fix #232: Make fallback extension configurable, deprecate `ViewInterf… #716

Fix #232: Make fallback extension configurable, deprecate `ViewInterf…

Fix #232: Make fallback extension configurable, deprecate `ViewInterf… #716

Triggered via push July 13, 2023 10:02
Status Success
Total duration 1m 41s
Artifacts

mutation.yml

on: push
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
mutation / PHP 8.1-ubuntu-latest: src/Cache/CachedContent.php#L66
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ * * @return string The rendered cached content. */ - public function cache(string $content, DateInterval|int|null $ttl = 60, Dependency|null $dependency = null, float $beta = 1.0) : string + public function cache(string $content, DateInterval|int|null $ttl = 59, Dependency|null $dependency = null, float $beta = 1.0) : string { /** @psalm-suppress MixedArgument */ return $this->replaceDynamicPlaceholders($this->cache->getOrSet($this->cacheKey(), static fn(): string => $content, $ttl, $dependency, $beta));
mutation / PHP 8.1-ubuntu-latest: src/Cache/CachedContent.php#L66
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ * * @return string The rendered cached content. */ - public function cache(string $content, DateInterval|int|null $ttl = 60, Dependency|null $dependency = null, float $beta = 1.0) : string + public function cache(string $content, DateInterval|int|null $ttl = 61, Dependency|null $dependency = null, float $beta = 1.0) : string { /** @psalm-suppress MixedArgument */ return $this->replaceDynamicPlaceholders($this->cache->getOrSet($this->cacheKey(), static fn(): string => $content, $ttl, $dependency, $beta));
mutation / PHP 8.1-ubuntu-latest: src/Cache/CachedContent.php#L68
Escaped Mutant for Mutator "OneZeroFloat": --- Original +++ New @@ @@ * * @return string The rendered cached content. */ - public function cache(string $content, DateInterval|int|null $ttl = 60, Dependency|null $dependency = null, float $beta = 1.0) : string + public function cache(string $content, DateInterval|int|null $ttl = 60, Dependency|null $dependency = null, float $beta = 0.0) : string { /** @psalm-suppress MixedArgument */ return $this->replaceDynamicPlaceholders($this->cache->getOrSet($this->cacheKey(), static fn(): string => $content, $ttl, $dependency, $beta));
mutation / PHP 8.1-ubuntu-latest: src/PhpTemplateRenderer.php#L33
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ }; $obInitialLevel = ob_get_level(); ob_start(); - ob_implicit_flush(false); + ob_implicit_flush(true); try { /** @psalm-suppress PossiblyInvalidFunctionCall,PossiblyNullFunctionCall */ $renderer->bindTo($view)($template, $parameters);
mutation / PHP 8.1-ubuntu-latest: src/PhpTemplateRenderer.php#L33
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ }; $obInitialLevel = ob_get_level(); ob_start(); - ob_implicit_flush(false); + try { /** @psalm-suppress PossiblyInvalidFunctionCall,PossiblyNullFunctionCall */ $renderer->bindTo($view)($template, $parameters);
mutation / PHP 8.1-ubuntu-latest: src/State/WebViewState.php#L639
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ if (!is_string($key)) { throw new InvalidArgumentException(sprintf('JS variable name should be string. Got %s.', get_debug_type($key))); } - if (!array_key_exists(1, $config)) { + if (!array_key_exists(2, $config)) { throw new InvalidArgumentException('Do not set JS variable value.'); } /** @var mixed */
mutation / PHP 8.1-ubuntu-latest: src/View.php#L63
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ public function beginPage() : void { ob_start(); - ob_implicit_flush(false); + ob_implicit_flush(true); $this->eventDispatcher->dispatch(new PageBegin($this)); } /**
mutation / PHP 8.1-ubuntu-latest: src/View.php#L63
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ public function beginPage() : void { ob_start(); - ob_implicit_flush(false); + $this->eventDispatcher->dispatch(new PageBegin($this)); } /**
mutation / PHP 8.1-ubuntu-latest: src/ViewTrait.php#L215
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ * * @return string The fallback view file extension. */ - public function getFallbackExtension() : string + protected function getFallbackExtension() : string { return $this->fallbackExtension; }
mutation / PHP 8.1-ubuntu-latest: src/ViewTrait.php#L456
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ throw new ViewNotFoundException("The view file \"{$viewFile}\" does not exist."); } $output = ''; - $this->viewFiles[] = ['resolved' => $viewFile, 'requested' => $requestedFile]; + $this->viewFiles[] = ['requested' => $requestedFile]; if ($this->beforeRender($viewFile, $parameters)) { $ext = pathinfo($viewFile, PATHINFO_EXTENSION); $renderer = $this->renderers[$ext] ?? new PhpTemplateRenderer();