From 2f2318fca250581395dc9d8fed0227d5458639aa Mon Sep 17 00:00:00 2001 From: George Steel Date: Mon, 15 May 2023 22:09:53 +0100 Subject: [PATCH] Replace some baseline entries with inline suppressions for maintainer convenience Signed-off-by: George Steel --- psalm-baseline.xml | 14 -------------- src/Compress/Snappy.php | 2 ++ src/Encrypt.php | 1 + src/File/Decrypt.php | 2 ++ src/File/Encrypt.php | 2 ++ 5 files changed, 7 insertions(+), 14 deletions(-) diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 9a1955be..3892efd1 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -293,10 +293,6 @@ $options - - snappy_compress($content) - snappy_uncompress($content) - @@ -476,10 +472,6 @@ - - Encrypt - Encrypt\EncryptionAlgorithmInterface - ! is_string($value) @@ -685,9 +677,6 @@ Filter\Decrypt parent::filter($content) - - Decrypt - @@ -744,9 +733,6 @@ Filter\Encrypt parent::filter($content) - - Encrypt - diff --git a/src/Compress/Snappy.php b/src/Compress/Snappy.php index 39c7d394..c764d892 100644 --- a/src/Compress/Snappy.php +++ b/src/Compress/Snappy.php @@ -16,6 +16,8 @@ * * @deprecated Since 2.28. This adapter will be removed in version 3.0 of this component. Other compression formats * remain available. + * + * @psalm-suppress UndefinedFunction */ class Snappy implements CompressionAlgorithmInterface { diff --git a/src/Encrypt.php b/src/Encrypt.php index d71aaaa8..11612b3d 100644 --- a/src/Encrypt.php +++ b/src/Encrypt.php @@ -28,6 +28,7 @@ * ... * } * @extends AbstractFilter + * @psalm-suppress DeprecatedInterface */ class Encrypt extends AbstractFilter { diff --git a/src/File/Decrypt.php b/src/File/Decrypt.php index 9cef96b1..5a140a8b 100644 --- a/src/File/Decrypt.php +++ b/src/File/Decrypt.php @@ -19,6 +19,8 @@ * * @deprecated Since 2.24.0. This filter will be removed in 3.0. You are encouraged to use an alternative encryption * library and write your own filter. + * + * @psalm-suppress DeprecatedInterface */ class Decrypt extends Filter\Decrypt { diff --git a/src/File/Encrypt.php b/src/File/Encrypt.php index c01cb4ce..811883c2 100644 --- a/src/File/Encrypt.php +++ b/src/File/Encrypt.php @@ -19,6 +19,8 @@ * * @deprecated Since 2.24.0. This filter will be removed in 3.0. You are encouraged to use an alternative encryption * library and write your own filter. + * + * @psalm-suppress DeprecatedInterface */ class Encrypt extends Filter\Encrypt {