[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 declare(strict_types=1); 4 5 namespace ProxyManager\Signature\Exception; 6 7 use ReflectionClass; 8 use UnexpectedValueException; 9 10 /** 11 * Exception for invalid provided signatures 12 * 13 * @author Marco Pivetta <ocramius@gmail.com> 14 * @license MIT 15 */ 16 class InvalidSignatureException extends UnexpectedValueException implements ExceptionInterface 17 { 18 public static function fromInvalidSignature( 19 ReflectionClass $class, 20 array $parameters, 21 string $signature, 22 string $expected 23 ) : self { 24 return new self(sprintf( 25 'Found signature "%s" for class "%s" does not correspond to expected signature "%s" for %d parameters', 26 $signature, 27 $class->getName(), 28 $expected, 29 count($parameters) 30 )); 31 } 32 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |