mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-01 12:39:49 +09:00
changes
This commit is contained in:
20
vendor/knplabs/github-api/lib/Github/Exception/MissingArgumentException.php
vendored
Normal file
20
vendor/knplabs/github-api/lib/Github/Exception/MissingArgumentException.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Github\Exception;
|
||||
|
||||
/**
|
||||
* MissingArgumentException.
|
||||
*
|
||||
* @author Joseph Bielawski <stloyd@gmail.com>
|
||||
*/
|
||||
class MissingArgumentException extends ErrorException
|
||||
{
|
||||
public function __construct($required, $code = 0, $previous = null)
|
||||
{
|
||||
if (is_string($required)) {
|
||||
$required = [$required];
|
||||
}
|
||||
|
||||
parent::__construct(sprintf('One or more of required ("%s") parameters is missing!', implode('", "', $required)), $code, $previous);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user