Skip to content

Commit

Permalink
Merge pull request #35 from lstrojny/patch-1
Browse files Browse the repository at this point in the history
Conditionally set BC alias to support PHP 7.4+ preloading semantics
  • Loading branch information
Ocramius authored Oct 12, 2020
2 parents 1fe855e + 7f6ab61 commit 876b28d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion namespace-bc-aliases.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<?php

class_alias(\Roave\DoctrineSimpleCache\Exception\CacheException::class, \Roave\DoctrineSimpleCache\CacheException::class);
if (!class_exists(\Roave\DoctrineSimpleCache\CacheException::class, false)) {
class_alias(\Roave\DoctrineSimpleCache\Exception\CacheException::class, \Roave\DoctrineSimpleCache\CacheException::class);
}

0 comments on commit 876b28d

Please sign in to comment.