Skip to content

Commit

Permalink
chore(autoloader): Dump autoloader
Browse files Browse the repository at this point in the history
Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
nextcloud-command authored and nickvergessen committed Oct 29, 2024
1 parent 846dacf commit f23dee0
Show file tree
Hide file tree
Showing 518 changed files with 2,904 additions and 909 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ bin
# ignore docs and tests
*/*/tests

aws/aws-crt-php/format-check.py
aws/aws-sdk-php/.changes

brick/math/random-tests.php
Expand Down
4 changes: 4 additions & 0 deletions aws/aws-sdk-php/src/ARCZonalShift/ARCZonalShiftClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @method \GuzzleHttp\Promise\Promise createPracticeRunConfigurationAsync(array $args = [])
* @method \Aws\Result deletePracticeRunConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise deletePracticeRunConfigurationAsync(array $args = [])
* @method \Aws\Result getAutoshiftObserverNotificationStatus(array $args = [])
* @method \GuzzleHttp\Promise\Promise getAutoshiftObserverNotificationStatusAsync(array $args = [])
* @method \Aws\Result getManagedResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise getManagedResourceAsync(array $args = [])
* @method \Aws\Result listAutoshifts(array $args = [])
Expand All @@ -21,6 +23,8 @@
* @method \GuzzleHttp\Promise\Promise listZonalShiftsAsync(array $args = [])
* @method \Aws\Result startZonalShift(array $args = [])
* @method \GuzzleHttp\Promise\Promise startZonalShiftAsync(array $args = [])
* @method \Aws\Result updateAutoshiftObserverNotificationStatus(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateAutoshiftObserverNotificationStatusAsync(array $args = [])
* @method \Aws\Result updatePracticeRunConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise updatePracticeRunConfigurationAsync(array $args = [])
* @method \Aws\Result updateZonalAutoshiftConfiguration(array $args = [])
Expand Down
6 changes: 6 additions & 0 deletions aws/aws-sdk-php/src/AccessAnalyzer/AccessAnalyzerClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @method \GuzzleHttp\Promise\Promise checkAccessNotGrantedAsync(array $args = [])
* @method \Aws\Result checkNoNewAccess(array $args = [])
* @method \GuzzleHttp\Promise\Promise checkNoNewAccessAsync(array $args = [])
* @method \Aws\Result checkNoPublicAccess(array $args = [])
* @method \GuzzleHttp\Promise\Promise checkNoPublicAccessAsync(array $args = [])
* @method \Aws\Result createAccessPreview(array $args = [])
* @method \GuzzleHttp\Promise\Promise createAccessPreviewAsync(array $args = [])
* @method \Aws\Result createAnalyzer(array $args = [])
Expand All @@ -23,6 +25,8 @@
* @method \GuzzleHttp\Promise\Promise deleteAnalyzerAsync(array $args = [])
* @method \Aws\Result deleteArchiveRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteArchiveRuleAsync(array $args = [])
* @method \Aws\Result generateFindingRecommendation(array $args = [])
* @method \GuzzleHttp\Promise\Promise generateFindingRecommendationAsync(array $args = [])
* @method \Aws\Result getAccessPreview(array $args = [])
* @method \GuzzleHttp\Promise\Promise getAccessPreviewAsync(array $args = [])
* @method \Aws\Result getAnalyzedResource(array $args = [])
Expand All @@ -33,6 +37,8 @@
* @method \GuzzleHttp\Promise\Promise getArchiveRuleAsync(array $args = [])
* @method \Aws\Result getFinding(array $args = [])
* @method \GuzzleHttp\Promise\Promise getFindingAsync(array $args = [])
* @method \Aws\Result getFindingRecommendation(array $args = [])
* @method \GuzzleHttp\Promise\Promise getFindingRecommendationAsync(array $args = [])
* @method \Aws\Result getFindingV2(array $args = [])
* @method \GuzzleHttp\Promise\Promise getFindingV2Async(array $args = [])
* @method \Aws\Result getGeneratedPolicy(array $args = [])
Expand Down
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/Api/ApiProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function __invoke($type, $service, $version)
* @param string $modelsDir Directory containing service models.
* @param array $manifest The API version manifest data.
*/
private function __construct($modelsDir, array $manifest = null)
private function __construct($modelsDir, ?array $manifest = null)
{
$this->manifest = $manifest;
$this->modelsDir = rtrim($modelsDir, '/');
Expand Down
10 changes: 10 additions & 0 deletions aws/aws-sdk-php/src/Api/DateTimeResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
class DateTimeResult extends \DateTime implements \JsonSerializable
{
private const ISO8601_NANOSECOND_REGEX = '/^(.*\.\d{6})(\d{1,3})(Z|[+-]\d{2}:\d{2})?$/';

/**
* Create a new DateTimeResult from a unix timestamp.
* The Unix epoch (or Unix time or POSIX time or Unix
Expand Down Expand Up @@ -60,6 +62,14 @@ public static function fromISO8601($iso8601Timestamp)
throw new ParserException('Invalid timestamp value passed to DateTimeResult::fromISO8601');
}

// Prior to 8.0.10, nanosecond precision is not supported
// Reduces to microsecond precision if nanosecond precision is detected
if (PHP_VERSION_ID < 80010
&& preg_match(self::ISO8601_NANOSECOND_REGEX, $iso8601Timestamp, $matches)
) {
$iso8601Timestamp = $matches[1] . ($matches[3] ?? '');
}

return new DateTimeResult($iso8601Timestamp);
}

Expand Down
4 changes: 2 additions & 2 deletions aws/aws-sdk-php/src/Api/ErrorParser/AbstractErrorParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class AbstractErrorParser
/**
* @param Service $api
*/
public function __construct(Service $api = null)
public function __construct(?Service $api = null)
{
$this->api = $api;
}
Expand All @@ -47,7 +47,7 @@ protected function extractPayload(
protected function populateShape(
array &$data,
ResponseInterface $response,
CommandInterface $command = null
?CommandInterface $command = null
) {
$data['body'] = [];

Expand Down
4 changes: 2 additions & 2 deletions aws/aws-sdk-php/src/Api/ErrorParser/JsonRpcErrorParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ class JsonRpcErrorParser extends AbstractErrorParser

private $parser;

public function __construct(Service $api = null, JsonParser $parser = null)
public function __construct(?Service $api = null, ?JsonParser $parser = null)
{
parent::__construct($api);
$this->parser = $parser ?: new JsonParser();
}

public function __invoke(
ResponseInterface $response,
CommandInterface $command = null
?CommandInterface $command = null
) {
$data = $this->genericHandler($response);

Expand Down
4 changes: 2 additions & 2 deletions aws/aws-sdk-php/src/Api/ErrorParser/RestJsonErrorParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ class RestJsonErrorParser extends AbstractErrorParser

private $parser;

public function __construct(Service $api = null, JsonParser $parser = null)
public function __construct(?Service $api = null, ?JsonParser $parser = null)
{
parent::__construct($api);
$this->parser = $parser ?: new JsonParser();
}

public function __invoke(
ResponseInterface $response,
CommandInterface $command = null
?CommandInterface $command = null
) {
$data = $this->genericHandler($response);

Expand Down
4 changes: 2 additions & 2 deletions aws/aws-sdk-php/src/Api/ErrorParser/XmlErrorParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ class XmlErrorParser extends AbstractErrorParser

protected $parser;

public function __construct(Service $api = null, XmlParser $parser = null)
public function __construct(?Service $api = null, ?XmlParser $parser = null)
{
parent::__construct($api);
$this->parser = $parser ?: new XmlParser();
}

public function __invoke(
ResponseInterface $response,
CommandInterface $command = null
?CommandInterface $command = null
) {
$code = (string) $response->getStatusCode();

Expand Down
16 changes: 16 additions & 0 deletions aws/aws-sdk-php/src/Api/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Operation extends AbstractModel
private $errors;
private $staticContextParams = [];
private $contextParams;
private $operationContextParams = [];

public function __construct(array $definition, ShapeMap $shapeMap)
{
Expand All @@ -28,6 +29,10 @@ public function __construct(array $definition, ShapeMap $shapeMap)
$this->staticContextParams = $definition['staticContextParams'];
}

if (isset($definition['operationContextParams'])) {
$this->operationContextParams = $definition['operationContextParams'];
}

parent::__construct($definition, $shapeMap);
$this->contextParams = $this->setContextParams();
}
Expand Down Expand Up @@ -124,6 +129,17 @@ public function getContextParams()
return $this->contextParams;
}

/**
* Gets definition of modeled dynamic values used
* for endpoint resolution
*
* @return array
*/
public function getOperationContextParams(): array
{
return $this->operationContextParams;
}

private function setContextParams()
{
$members = $this->getInput()->getMembers();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ public function key()
return $this->key;
}

/**
* @return void
*/
#[\ReturnTypeWillChange]
public function next()
{
Expand All @@ -202,6 +205,9 @@ public function next()
}
}

/**
* @return void
*/
#[\ReturnTypeWillChange]
public function rewind()
{
Expand Down
15 changes: 15 additions & 0 deletions aws/aws-sdk-php/src/Api/Parser/EventParsingIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,30 +50,45 @@ private function chooseDecodingIterator($stream)
}
}

/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->parseEvent($this->decodingIterator->current());
}

/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->decodingIterator->key();
}

/**
* @return void
*/
#[\ReturnTypeWillChange]
public function next()
{
$this->decodingIterator->next();
}

/**
* @return void
*/
#[\ReturnTypeWillChange]
public function rewind()
{
$this->decodingIterator->rewind();
}

/**
* @return bool
*/
#[\ReturnTypeWillChange]
public function valid()
{
Expand Down
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/Api/Parser/JsonRpcParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class JsonRpcParser extends AbstractParser
* @param Service $api Service description
* @param JsonParser $parser JSON body builder
*/
public function __construct(Service $api, JsonParser $parser = null)
public function __construct(Service $api, ?JsonParser $parser = null)
{
parent::__construct($api);
$this->parser = $parser ?: new JsonParser();
Expand Down
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/Api/Parser/QueryParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class QueryParser extends AbstractParser
*/
public function __construct(
Service $api,
XmlParser $xmlParser = null,
?XmlParser $xmlParser = null,
$honorResultWrapper = true
) {
parent::__construct($api);
Expand Down
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/Api/Parser/RestJsonParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RestJsonParser extends AbstractRestParser
* @param Service $api Service description
* @param JsonParser $parser JSON body builder
*/
public function __construct(Service $api, JsonParser $parser = null)
public function __construct(Service $api, ?JsonParser $parser = null)
{
parent::__construct($api);
$this->parser = $parser ?: new JsonParser();
Expand Down
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/Api/Parser/RestXmlParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RestXmlParser extends AbstractRestParser
* @param Service $api Service description
* @param XmlParser $parser XML body parser
*/
public function __construct(Service $api, XmlParser $parser = null)
public function __construct(Service $api, ?XmlParser $parser = null)
{
parent::__construct($api);
$this->parser = $parser ?: new XmlParser();
Expand Down
4 changes: 1 addition & 3 deletions aws/aws-sdk-php/src/Api/Serializer/Ec2ParamBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ protected function format_list(
&$query
) {
// Handle empty list serialization
if (!$value) {
$query[$prefix] = false;
} else {
if (!empty($value)) {
$items = $shape->getMember();
foreach ($value as $k => $v) {
$this->format($items, $v, $prefix . '.' . ($k + 1), $query);
Expand Down
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/Api/Serializer/JsonRpcSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class JsonRpcSerializer
public function __construct(
Service $api,
$endpoint,
JsonBody $jsonFormatter = null
?JsonBody $jsonFormatter = null
) {
$this->endpoint = $endpoint;
$this->api = $api;
Expand Down
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/Api/Serializer/QuerySerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class QuerySerializer
public function __construct(
Service $api,
$endpoint,
callable $paramBuilder = null
?callable $paramBuilder = null
) {
$this->api = $api;
$this->endpoint = $endpoint;
Expand Down
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/Api/Serializer/RestJsonSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class RestJsonSerializer extends RestSerializer
public function __construct(
Service $api,
$endpoint,
JsonBody $jsonFormatter = null
?JsonBody $jsonFormatter = null
) {
parent::__construct($api, $endpoint);
$this->contentType = JsonBody::getContentType($api);
Expand Down
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/Api/Serializer/RestXmlSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class RestXmlSerializer extends RestSerializer
public function __construct(
Service $api,
$endpoint,
XmlBody $xmlBody = null
?XmlBody $xmlBody = null
) {
parent::__construct($api, $endpoint);
$this->xmlBody = $xmlBody ?: new XmlBody($api);
Expand Down
5 changes: 3 additions & 2 deletions aws/aws-sdk-php/src/Api/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static function createSerializer(Service $api, $endpoint)
* @return callable
* @throws \UnexpectedValueException
*/
public static function createErrorParser($protocol, Service $api = null)
public static function createErrorParser($protocol, ?Service $api = null)
{
static $mapping = [
'json' => ErrorParser\JsonRpcErrorParser::class,
Expand Down Expand Up @@ -284,7 +284,7 @@ public function getOperation($name)
$this->definition['operations'][$name],
$this->shapeMap
);
} else if ($this->modifiedModel) {
} elseif ($this->modifiedModel) {
$this->operations[$name] = new Operation(
$this->definition['operations'][$name],
$this->shapeMap
Expand Down Expand Up @@ -517,6 +517,7 @@ public function getDefinition()
public function setDefinition($definition)
{
$this->definition = $definition;
$this->shapeMap = new ShapeMap($definition['shapes']);
$this->modifiedModel = true;
}

Expand Down
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/Api/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Validator
* "max", and "pattern". If a key is not
* provided, the constraint will assume false.
*/
public function __construct(array $constraints = null)
public function __construct(?array $constraints = null)
{
static $assumedFalseValues = [
'required' => false,
Expand Down
4 changes: 4 additions & 0 deletions aws/aws-sdk-php/src/AppConfig/AppConfigClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
* @method \GuzzleHttp\Promise\Promise deleteExtensionAssociationAsync(array $args = [])
* @method \Aws\Result deleteHostedConfigurationVersion(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteHostedConfigurationVersionAsync(array $args = [])
* @method \Aws\Result getAccountSettings(array $args = [])
* @method \GuzzleHttp\Promise\Promise getAccountSettingsAsync(array $args = [])
* @method \Aws\Result getApplication(array $args = [])
* @method \GuzzleHttp\Promise\Promise getApplicationAsync(array $args = [])
* @method \Aws\Result getConfiguration(array $args = [])
Expand Down Expand Up @@ -77,6 +79,8 @@
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
* @method \Aws\Result untagResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
* @method \Aws\Result updateAccountSettings(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateAccountSettingsAsync(array $args = [])
* @method \Aws\Result updateApplication(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateApplicationAsync(array $args = [])
* @method \Aws\Result updateConfigurationProfile(array $args = [])
Expand Down
Loading

0 comments on commit f23dee0

Please sign in to comment.