We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbc1283 commit 75853e1Copy full SHA for 75853e1
lib/Sync/functions.php
@@ -4,8 +4,10 @@
4
5
use Amp\Serialization\SerializationException as SerializerException;
6
7
-// Alias must be defined in an always-loaded file as catch blocks do not trigger the autoloader.
8
-\class_alias(SerializerException::class, SerializationException::class);
+if (!\class_exists(SerializationException::class)) {
+ // Alias must be defined in an always-loaded file as catch blocks do not trigger the autoloader.
9
+ \class_alias(SerializerException::class, SerializationException::class);
10
+}
11
12
/**
13
* @param \Throwable $exception
0 commit comments