Skip to content

Commit

Permalink
Merge pull request #667 from fyrye/patch-1
Browse files Browse the repository at this point in the history
Support composer classmap-authoritative option
  • Loading branch information
lcobucci authored Feb 16, 2021
2 parents ff92156 + d246711 commit 511629a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions compat/class-aliases.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

class_exists(\Lcobucci\JWT\Token\Plain::class);
class_exists(\Lcobucci\JWT\Token\Signature::class);

class_exists(\Lcobucci\JWT\Token\Plain::class, false) || class_alias(\Lcobucci\JWT\Token::class, \Lcobucci\JWT\Token\Plain::class);
class_exists(\Lcobucci\JWT\Token\Signature::class, false) || class_alias(\Lcobucci\JWT\Signature::class, \Lcobucci\JWT\Token\Signature::class);
2 changes: 1 addition & 1 deletion src/Token/Plain.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
use Lcobucci\JWT\Token;
use function class_alias;

class_alias(Token::class, Plain::class);
class_exists(Plain::class, false) || class_alias(Token::class, Plain::class);
2 changes: 1 addition & 1 deletion src/Token/Signature.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
use Lcobucci\JWT\Signature as SignatureImpl;
use function class_alias;

class_alias(SignatureImpl::class, Signature::class);
class_exists(Signature::class, false) || class_alias(SignatureImpl::class, Signature::class);

0 comments on commit 511629a

Please sign in to comment.