Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit ebd343d

Browse files
committed
Fixed "Parameter must implement Countable" (PHP 7.x)
1 parent d5fedc4 commit ebd343d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Developer/Encryption/FieldLevelEncryptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ public function testEncryptPayload_ShouldNotAddEncryptionParamsToPayload_WhenFie
639639
$this->assertFalse(property_exists($encryptedPayloadObject, 'data'));
640640
$encryptedData = $encryptedPayloadObject->encryptedData;
641641
$this->assertNotEmpty($encryptedData);
642-
$this->assertEquals(1, sizeof($encryptedData)); // 'encryptedValue' only
642+
$this->assertEquals(1, count((array)$encryptedData)); // 'encryptedValue' only
643643
}
644644

645645
public function testDecryptPayload_Nominal() {

0 commit comments

Comments
 (0)