Laravel version update

Laravel version update
This commit is contained in:
Manish Verma
2018-08-06 18:48:58 +05:30
parent d143048413
commit 126fbb0255
13678 changed files with 1031482 additions and 778530 deletions

View File

@@ -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');