Ver código fonte

Wesmiler 人人车 初始化项目 0816

APPLE 3 anos atrás
pai
commit
e17924481e

+ 3 - 3
vendor/lcobucci/jwt/src/Claim/GreaterOrEqualsTo.php

@@ -11,14 +11,14 @@ use Lcobucci\JWT\Claim;
 use Lcobucci\JWT\ValidationData;
 
 /**
- * Validatable claim that checks if value is greater or equals the given data
+ * Validatable claim that checks if value is lesser or equals to the given data
  *
  * @deprecated This class will be removed on v4
  *
  * @author Luís Otávio Cobucci Oblonczyk <lcobucci@gmail.com>
  * @since 2.0.0
  */
-class GreaterOrEqualsTo extends Basic implements Claim, Validatable
+class LesserOrEqualsTo extends Basic implements Claim, Validatable
 {
     /**
      * {@inheritdoc}
@@ -26,7 +26,7 @@ class GreaterOrEqualsTo extends Basic implements Claim, Validatable
     public function validate(ValidationData $data)
     {
         if ($data->has($this->getName())) {
-            return $this->getValue() >= $data->get($this->getName());
+            return $this->getValue() <= $data->get($this->getName());
         }
 
         return true;