[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/lcobucci/jwt/src/Signer/Key/ -> FileCouldNotBeRead.php (source)

   1  <?php
   2  
   3  namespace Lcobucci\JWT\Signer\Key;
   4  
   5  use Lcobucci\JWT\Exception;
   6  use InvalidArgumentException;
   7  
   8  if (PHP_MAJOR_VERSION === 7) {
   9      final class FileCouldNotBeRead extends InvalidArgumentException implements Exception
  10      {
  11          /** @return self */
  12          public static function onPath(string $path, \Throwable $cause = null)
  13          {
  14              return new self(
  15                  'The path "' . $path . '" does not contain a valid key file',
  16                  0,
  17                  $cause
  18              );
  19          }
  20      }
  21  } else {
  22      final class FileCouldNotBeRead extends InvalidArgumentException implements Exception
  23      {
  24          /**
  25           * @param string $path
  26           * @param \Exception|null $cause
  27           *
  28           * @return self
  29           */
  30          public static function onPath($path, \Exception $cause = null)
  31          {
  32              return new self(
  33                  'The path "' . $path . '" does not contain a valid key file',
  34                  0,
  35                  $cause
  36              );
  37          }
  38      }
  39  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer