Skip to content

Commit

Permalink
[5.4] Fix throws docblocks (#17254)
Browse files Browse the repository at this point in the history
* Fix throws docblocks

* Fix some other docblocks
  • Loading branch information
lucasmichot authored and GrahamCampbell committed Jan 10, 2017
1 parent 6b3a266 commit ee71fb2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Concerns/ManagesTransactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected function handleTransactionException($e, $currentAttempt, $maxAttempts)
* Start a new database transaction.
*
* @return void
* @throws Exception
* @throws \Exception
*/
public function beginTransaction()
{
Expand Down Expand Up @@ -132,7 +132,7 @@ protected function createSavepoint()
* @param \Exception $e
* @return void
*
* @throws Exception
* @throws \Exception
*/
protected function handleBeginTransactionException($e)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ public function toArray()
* @param int $options
* @return string
*
* @throws JsonEncodingException
* @throws \Illuminate\Database\Eloquent\JsonEncodingException
*/
public function toJson($options = 0)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/RouteUrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __construct($url, $request)
* @param bool $absolute
* @return string
*
* @throws UrlGenerationException
* @throws \Illuminate\Routing\Exceptions\UrlGenerationException
*/
public function to($route, $parameters = [], $absolute = false)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,7 @@ public static function proxy($method)
* @param string $key
* @return mixed
*
* @throws Exception
* @throws \Exception
*/
public function __get($key)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ function preg_replace_array($pattern, array $replacements, $subject)
* @param int $sleep
* @return mixed
*
* @throws Exception
* @throws \Exception
*/
function retry($times, callable $callback, $sleep = 0)
{
Expand Down

0 comments on commit ee71fb2

Please sign in to comment.