Skip to content

Commit bb06d26

Browse files
committed
Shrink baseline after fallback verification moved into lib
1 parent 06de5a1 commit bb06d26

2 files changed

Lines changed: 1 addition & 43 deletions

File tree

phpstan-baseline.neon

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -438,48 +438,6 @@ parameters:
438438
count: 1
439439
path: src/SelfManage/Update/FetchPieReleaseFromGitHub.php
440440

441-
-
442-
message: '#^Cannot access offset ''extensions'' on array\|false\.$#'
443-
identifier: offsetAccess.nonOffsetAccessible
444-
count: 1
445-
path: src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php
446-
447-
-
448-
message: '#^Cannot access offset ''issuer'' on array\|false\.$#'
449-
identifier: offsetAccess.nonOffsetAccessible
450-
count: 2
451-
path: src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php
452-
453-
-
454-
message: '#^Cannot access offset ''subject'' on array\|false\.$#'
455-
identifier: offsetAccess.nonOffsetAccessible
456-
count: 1
457-
path: src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php
458-
459-
-
460-
message: '#^Parameter \#1 \$callback of function array_map expects \(callable\(mixed\)\: mixed\)\|null, Closure\(array\)\: Php\\Pie\\SelfManage\\Verify\\Attestation given\.$#'
461-
identifier: argument.type
462-
count: 1
463-
path: src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php
464-
465-
-
466-
message: '#^Parameter \#1 \$issuer of static method Php\\Pie\\SelfManage\\Verify\\FailedToVerifyRelease\:\:fromIssuerCertificateVerificationFailed\(\) expects array\<string, string\>\|string, mixed given\.$#'
467-
identifier: argument.type
468-
count: 1
469-
path: src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php
470-
471-
-
472-
message: '#^Parameter \#1 \$issuer of static method Php\\Pie\\SelfManage\\Verify\\FailedToVerifyRelease\:\:fromNoIssuerCertificateInTrustedRoot\(\) expects array\<string, string\>\|string, mixed given\.$#'
473-
identifier: argument.type
474-
count: 1
475-
path: src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php
476-
477-
-
478-
message: '#^Parameter \#1 \$string of function trim expects string, string\|false given\.$#'
479-
identifier: argument.type
480-
count: 1
481-
path: src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php
482-
483441
-
484442
message: '#^Dead catch \- Php\\Pie\\SelfManage\\Verify\\GithubCliNotAvailable is never thrown in the try block\.$#'
485443
identifier: catch.neverThrown

test/unit/SelfManage/Verify/FallbackVerificationUsingOpenSslTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function setUp(): void
6565
$this->output = new BufferedOutput();
6666

6767
$trustedRootFilePath = tempnam(sys_get_temp_dir(), 'pie_test_trusted_root_file_path');
68-
assert(is_string($trustedRootFilePath) && $trustedRootFilePath !== '');
68+
assert(is_string($trustedRootFilePath));
6969
$this->trustedRootFilePath = $trustedRootFilePath;
7070

7171
$this->verifier = new FallbackVerificationUsingOpenSsl(new VerifyAttestationWithOpenSsl($this->trustedRootFilePath, self::TEST_GITHUB_URL, $this->httpDownloader, $this->authHelper));

0 commit comments

Comments
 (0)