Laravel version update
Laravel version update
This commit is contained in:
16
vendor/aws/aws-sdk-php/src/History.php
vendored
16
vendor/aws/aws-sdk-php/src/History.php
vendored
@@ -11,7 +11,7 @@ use Aws\Exception\AwsException;
|
||||
class History implements \Countable, \IteratorAggregate
|
||||
{
|
||||
private $maxEntries;
|
||||
private $entries;
|
||||
private $entries = array();
|
||||
|
||||
/**
|
||||
* @param int $maxEntries Maximum number of entries to store.
|
||||
@@ -77,11 +77,13 @@ class History implements \Countable, \IteratorAggregate
|
||||
|
||||
if (isset($last['result'])) {
|
||||
return $last['result'];
|
||||
} elseif (isset($last['exception'])) {
|
||||
return $last['exception'];
|
||||
} else {
|
||||
throw new \LogicException('No return value for last entry.');
|
||||
}
|
||||
|
||||
if (isset($last['exception'])) {
|
||||
return $last['exception'];
|
||||
}
|
||||
|
||||
throw new \LogicException('No return value for last entry.');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -115,7 +117,9 @@ class History implements \Countable, \IteratorAggregate
|
||||
{
|
||||
if (!isset($this->entries[$ticket])) {
|
||||
throw new \InvalidArgumentException('Invalid history ticket');
|
||||
} elseif (isset($this->entries[$ticket]['result'])
|
||||
}
|
||||
|
||||
if (isset($this->entries[$ticket]['result'])
|
||||
|| isset($this->entries[$ticket]['exception'])
|
||||
) {
|
||||
throw new \LogicException('History entry is already finished');
|
||||
|
||||
Reference in New Issue
Block a user