Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 1 addition & 25 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,10 @@ parameters:
count: 1
path: src/Cryptography/DoctrineCipherKeyStore.php

-
message: '#^Offset ''crypto_iv'' does not exist on array\{id\: non\-empty\-string, subject_id\: non\-empty\-string, crypto_key\: non\-empty\-string, crypto_method\: non\-empty\-string, created_at\: non\-empty\-string\}\.$#'
identifier: offsetAccess.notFound
count: 1
path: src/Cryptography/ExtensionDoctrineCipherKeyStore.php

-
message: '#^Parameter \#1 \$string of function base64_decode expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Cryptography/ExtensionDoctrineCipherKeyStore.php

-
message: '#^Parameter \#2 \$subjectId of class Patchlevel\\Hydrator\\Extension\\Cryptography\\Cipher\\CipherKey constructor expects non\-empty\-string, string given\.$#'
identifier: argument.type
count: 1
path: src/Cryptography/ExtensionDoctrineCipherKeyStore.php

-
message: '#^Parameter \#3 \$key of class Patchlevel\\Hydrator\\Extension\\Cryptography\\Cipher\\CipherKey constructor expects non\-empty\-string, string given\.$#'
identifier: argument.type
count: 1
path: src/Cryptography/ExtensionDoctrineCipherKeyStore.php

-
message: '#^Parameter \#4 \$method of class Patchlevel\\Hydrator\\Extension\\Cryptography\\Cipher\\CipherKey constructor expects non\-empty\-string, string given\.$#'
identifier: argument.type
count: 1
count: 2
path: src/Cryptography/ExtensionDoctrineCipherKeyStore.php

-
Expand Down
2 changes: 1 addition & 1 deletion src/Cryptography/ExtensionDoctrineCipherKeyStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ public function currentKeyFor(string $subjectId): CipherKey

return new CipherKey(
$result['id'],
$result['subject_id'],
base64_decode($result['crypto_key']),
$result['crypto_method'],
base64_decode($result['crypto_iv']),
$this->dateTimeType->convertToPHPValue($result['created_at'], $this->connection->getDatabasePlatform()),
);
}
Expand Down
Loading