Skip to content

Commit f0cdd95

Browse files
committed
Add allowed classes for UnserializeApi #2821
1 parent 63ea5eb commit f0cdd95

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main/inc/lib/UnserializeApi.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/* For licensing terms, see /license.txt */
33

44
use Brumann\Polyfill\Unserialize;
5+
use Fhaculty\Graph\Edge\Base;
56

67
/**
78
* Class UnserializeApi.
@@ -29,6 +30,10 @@ public static function unserialize($type, $serialized, $ignoreErrors = false)
2930
\Fhaculty\Graph\Set\VerticesMap::class,
3031
\Fhaculty\Graph\Set\Vertices::class,
3132
\Fhaculty\Graph\Set\Edges::class,
33+
\Fhaculty\Graph\Vertex::class,
34+
\Fhaculty\Graph\Edge\Base::class,
35+
\Fhaculty\Graph\Edge\Directed::class,
36+
\Fhaculty\Graph\Edge\Undirected::class,
3237
];
3338
break;
3439
case 'course':

0 commit comments

Comments
 (0)