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

Commit d5fedc4

Browse files
committed
Fixed "method should not be called statically" errors
1 parent c6ac2fb commit d5fedc4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Developer/Encryption/FieldLevelEncryption.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static function encryptPayload($payload, $config, $params = null) {
5656
* @return The updated payload
5757
* @throws EncryptionException
5858
*/
59-
public function decryptPayload($payload, $config, $params = null) {
59+
public static function decryptPayload($payload, $config, $params = null) {
6060
try {
6161
// Parse the given payload
6262
$payloadJsonObject = json_decode($payload);

src/Developer/Encryption/FieldLevelEncryptionParams.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private static function toDsigXmlPrivateKey($raw) {
175175
/**
176176
* @throws EncryptionException
177177
*/
178-
private function getOrComputeEncryptionCertificateFingerprint($config) {
178+
private static function getOrComputeEncryptionCertificateFingerprint($config) {
179179
try {
180180
$providedCertificateFingerprintValue = $config->encryptionCertificateFingerprint;
181181
if (!empty($providedCertificateFingerprintValue)) {

src/Developer/Utils/StringUtils.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
class StringUtils {
55

6-
public function startsWith($haystack, $needle) {
6+
public static function startsWith($haystack, $needle) {
77
return empty($needle) || strrpos($haystack, $needle, -strlen($haystack)) !== false;
88
}
99

10-
public function endsWith($haystack, $needle) {
10+
public static function endsWith($haystack, $needle) {
1111
if (empty($needle)) {
1212
return true;
1313
}

0 commit comments

Comments
 (0)