Skip to content

Commit 3c246a6

Browse files
authored
PHPLIB-1119: Update to Psalm 5 (#1131)
* Update to psalm 5 * Enable reporting about unused baseline entries * Remove dangerous instantiation Instantiating static in non-final classes makes assumptions about child class constructors, which is unsafe. * Fix missing return types * Fix more psalm errors
1 parent 1c6f730 commit 3c246a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/examples/csfle-explicit_encryption.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141

4242
/* Using the client configured without encryption, find the document and observe
4343
* that the field is not automatically decrypted. */
44+
45+
/** @var object{encryptedField: Binary} $document */
4446
$document = $collection->findOne();
4547

4648
print_r($document);

0 commit comments

Comments
 (0)