Skip to content

Commit 876b28d

Browse files
authored
Merge pull request #35 from lstrojny/patch-1
Conditionally set BC alias to support PHP 7.4+ preloading semantics
2 parents 1fe855e + 7f6ab61 commit 876b28d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

namespace-bc-aliases.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<?php
22

3-
class_alias(\Roave\DoctrineSimpleCache\Exception\CacheException::class, \Roave\DoctrineSimpleCache\CacheException::class);
3+
if (!class_exists(\Roave\DoctrineSimpleCache\CacheException::class, false)) {
4+
class_alias(\Roave\DoctrineSimpleCache\Exception\CacheException::class, \Roave\DoctrineSimpleCache\CacheException::class);
5+
}

0 commit comments

Comments
 (0)