File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ abstract class Coder implements CoderInterface
14
14
public function encode (string $ decoded ): string
15
15
{
16
16
try {
17
- return $ this ->doEncode ($ decoded );
17
+ return @ $ this ->doEncode ($ decoded );
18
18
} catch (Exception \CoderCouldNotEncodeData $ exception ) {
19
19
throw $ exception ;
20
20
} catch (Throwable $ reason ) {
@@ -25,7 +25,7 @@ public function encode(string $decoded): string
25
25
public function decode (string $ encoded ): string
26
26
{
27
27
try {
28
- return $ this ->doDecode ($ encoded );
28
+ return @ $ this ->doDecode ($ encoded );
29
29
} catch (Exception \CoderCouldNotDecodeData $ exception ) {
30
30
throw $ exception ;
31
31
} catch (Throwable $ reason ) {
@@ -34,11 +34,15 @@ public function decode(string $encoded): string
34
34
}
35
35
36
36
/**
37
+ * @note errors will be silenced
38
+ *
37
39
* @throws Throwable
38
40
*/
39
41
abstract protected function doEncode (string $ decoded ): string ;
40
42
41
43
/**
44
+ * @note errors will be silenced
45
+ *
42
46
* @throws Throwable
43
47
*/
44
48
abstract protected function doDecode (string $ encoded ): string ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ abstract class Serializer implements SerializerInterface
14
14
public function serialize (mixed $ serializable ): string
15
15
{
16
16
try {
17
- return $ this ->doSerialize ($ serializable );
17
+ return @ $ this ->doSerialize ($ serializable );
18
18
} catch (Exception \SerializerCouldNotSerializeData $ exception ) {
19
19
throw $ exception ;
20
20
} catch (Throwable $ reason ) {
@@ -25,7 +25,7 @@ public function serialize(mixed $serializable): string
25
25
public function unserialize (string $ serialized ): mixed
26
26
{
27
27
try {
28
- return $ this ->doUnserialize ($ serialized );
28
+ return @ $ this ->doUnserialize ($ serialized );
29
29
} catch (Exception \SerializerCouldNotUnserializeData $ exception ) {
30
30
throw $ exception ;
31
31
} catch (Throwable $ reason ) {
@@ -34,11 +34,15 @@ public function unserialize(string $serialized): mixed
34
34
}
35
35
36
36
/**
37
+ * @note errors will be silenced
38
+ *
37
39
* @throws Throwable
38
40
*/
39
41
abstract protected function doSerialize (mixed $ serializable ): string ;
40
42
41
43
/**
44
+ * @note errors will be silenced
45
+ *
42
46
* @throws Throwable
43
47
*/
44
48
abstract protected function doUnserialize (string $ serialized ): mixed ;
You can’t perform that action at this time.
0 commit comments