Skip to content

Fix PHPStan

Fix PHPStan #68

Triggered via push June 19, 2024 17:44
Status Cancelled
Total duration 1m 53s
Artifacts 1

ci.yaml

on: push
Matrix: Tests
Matrix: Coding standard
Matrix: Static analysis
Matrix: Test for mutants
Matrix: Code coverage finish
Status check - CI
3s
Status check - CI
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 18 warnings
Tests (windows-latest, 7.4, false)
Canceling since a higher priority waiting request for 'CI-refs/heads/v1.x' exists
Tests (macos-latest, 8.0, false)
Canceling since a higher priority waiting request for 'CI-refs/heads/v1.x' exists
Tests (macos-latest, 7.4, false)
Canceling since a higher priority waiting request for 'CI-refs/heads/v1.x' exists
Tests (macos-latest, 8.1, false)
Canceling since a higher priority waiting request for 'CI-refs/heads/v1.x' exists
Tests (windows-latest, 8.0, false)
Canceling since a higher priority waiting request for 'CI-refs/heads/v1.x' exists
Tests (windows-latest, 8.1, false)
Canceling since a higher priority waiting request for 'CI-refs/heads/v1.x' exists
Static analysis (ubuntu-latest, 8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Coding standard (ubuntu-latest, 8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 8.0, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 7.4, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 8.1, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 8.2, --ignore-platform-req=php+, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 7.4, --prefer-lowest --prefer-stable, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test for mutants (ubuntu-latest, 8.1): src/Auth/DI/HttpAuthExtension.php#L25
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ { public function getConfigSchema() : Schema { - return Expect::structure(['enabled' => Expect::bool(false), 'realm' => Expect::anyOf(Expect::string(), Expect::null())->default(false), 'errorResponses' => Expect::anyOf(Expect::listOf(Expect::string())->min(1), Expect::null()), 'users' => Expect::arrayOf(Expect::string(), Expect::string()), 'exclude' => Expect::structure(['paths' => Expect::listOf(Expect::string())])]); + return Expect::structure(['enabled' => Expect::bool(false), 'realm' => Expect::anyOf(Expect::string(), Expect::null())->default(false), 'errorResponses' => Expect::anyOf(Expect::listOf(Expect::string())->min(0), Expect::null()), 'users' => Expect::arrayOf(Expect::string(), Expect::string()), 'exclude' => Expect::structure(['paths' => Expect::listOf(Expect::string())])]); } public function loadConfiguration() : void {
Test for mutants (ubuntu-latest, 8.1): src/Auth/DI/HttpAuthExtension.php#L25
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ { public function getConfigSchema() : Schema { - return Expect::structure(['enabled' => Expect::bool(false), 'realm' => Expect::anyOf(Expect::string(), Expect::null())->default(false), 'errorResponses' => Expect::anyOf(Expect::listOf(Expect::string())->min(1), Expect::null()), 'users' => Expect::arrayOf(Expect::string(), Expect::string()), 'exclude' => Expect::structure(['paths' => Expect::listOf(Expect::string())])]); + return Expect::structure(['enabled' => Expect::bool(false), 'realm' => Expect::anyOf(Expect::string(), Expect::null())->default(false), 'errorResponses' => Expect::anyOf(Expect::listOf(Expect::string())->min(2), Expect::null()), 'users' => Expect::arrayOf(Expect::string(), Expect::string()), 'exclude' => Expect::structure(['paths' => Expect::listOf(Expect::string())])]); } public function loadConfiguration() : void {
Test for mutants (ubuntu-latest, 8.1): src/Auth/DI/HttpAuthExtension.php#L37
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function loadConfiguration() : void { - parent::loadConfiguration(); + $builder = $this->getContainerBuilder(); $config = $this->config; if (!$config->enabled) {
Test for mutants (ubuntu-latest, 8.1): src/Auth/DI/HttpAuthExtension.php#L73
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function beforeCompile() : void { - parent::beforeCompile(); + $builder = $this->getContainerBuilder(); $config = $this->config; if (!$config->enabled) {
Test for mutants (ubuntu-latest, 8.1): src/Auth/DI/HttpAuthExtension.php#L85
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ return; } $initialize = $this->getInitialization(); - $initialize->addBody('$this->getService(?)->authenticate($this->getService(?), $this->getService(?));', [$this->prefix('authenticator'), $builder->getByType(IRequest::class, true), $builder->getByType(IResponse::class, true)]); + $initialize->addBody('$this->getService(?)->authenticate($this->getService(?), $this->getService(?));', [$this->prefix('authenticator'), $builder->getByType(IRequest::class, false), $builder->getByType(IResponse::class, true)]); } }
Test for mutants (ubuntu-latest, 8.1): src/Auth/DI/HttpAuthExtension.php#L86
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ return; } $initialize = $this->getInitialization(); - $initialize->addBody('$this->getService(?)->authenticate($this->getService(?), $this->getService(?));', [$this->prefix('authenticator'), $builder->getByType(IRequest::class, true), $builder->getByType(IResponse::class, true)]); + $initialize->addBody('$this->getService(?)->authenticate($this->getService(?), $this->getService(?));', [$this->prefix('authenticator'), $builder->getByType(IRequest::class, true), $builder->getByType(IResponse::class, false)]); } }
Test for mutants (ubuntu-latest, 8.1): src/Tester/TestResponse.php#L56
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { $name = self::formatName($name); if ($value === null) { - $this->deleteHeader($name); + } else { $this->headers[$name] = [$value]; }
Test for mutants (ubuntu-latest, 8.1): src/Tester/TestResponse.php#L116
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function setExpiration(?string $expire) : self { - $this->setHeader('Pragma', null); + if ($expire === null) { // no cache $this->setHeader('Cache-Control', 's-maxage=0, max-age=0, must-revalidate');
Test for mutants (ubuntu-latest, 8.1): src/Tester/TestResponse.php#L125
Escaped Mutant for Mutator "Minus": --- Original +++ New @@ @@ return $this; } $time = new DateTimeImmutable($expire); - $this->setHeader('Cache-Control', 'max-age=' . ($time->format('U') - time())); + $this->setHeader('Cache-Control', 'max-age=' . ($time->format('U') + time())); $this->setHeader('Expires', Helpers::formatDate($time)); return $this; }
Test for mutants (ubuntu-latest, 8.1): src/Tester/TestResponse.php#L125
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ return $this; } $time = new DateTimeImmutable($expire); - $this->setHeader('Cache-Control', 'max-age=' . ($time->format('U') - time())); + $this->setHeader('Cache-Control', 'max-age='); $this->setHeader('Expires', Helpers::formatDate($time)); return $this; }
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "Logs - Mutations". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Artifacts

Produced during runtime
Name Size
Logs - Mutations
9 KB