Skip to content

Commit

Permalink
Merge branch '6.x'
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
#	src/Illuminate/Database/QueryException.php
#	src/Illuminate/Foundation/Application.php
  • Loading branch information
driesvints committed Dec 5, 2019
2 parents 3f23441 + 5b1b367 commit e95bf0e
Show file tree
Hide file tree
Showing 197 changed files with 847 additions and 812 deletions.
21 changes: 17 additions & 4 deletions CHANGELOG-6.x.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
# Release Notes for 6.x

## [Unreleased](https://github.com/laravel/framework/compare/v6.6.0...6.x)
## [Unreleased](https://github.com/laravel/framework/compare/v6.6.1...6.x)

### TODO
- Force usage getting timestamps columns ([#30697](https://github.com/laravel/framework/pull/30697))
- Revert adding head method to router ([#30710](https://github.com/laravel/framework/pull/30710))
- Allow commands to overwrite their input and output handlers ([#30706](https://github.com/laravel/framework/pull/30706))
- Support retryAfter Option on Queued Listeners ([#30743](https://github.com/laravel/framework/pull/30743))


## [v6.6.1 (2019-12-03)](https://github.com/laravel/framework/compare/v6.6.0...v6.6.1)

### Added
- Added `setInput()` and `setOutput()` methods to `Illuminate\Console\Command` ([#30706](https://github.com/laravel/framework/pull/30706))

### Fixed
- Fixed RouteUrlGenerator with empty string for required parameter ([#30714](https://github.com/laravel/framework/pull/30714))

### Changed
- Force usage getting timestamps columns in model ([#30697](https://github.com/laravel/framework/pull/30697))

### Reverted
- Revert [Added `Illuminate\Routing\Router::head()`](https://github.com/laravel/framework/pull/30646) ([#30710](https://github.com/laravel/framework/pull/30710))


## [v6.6.0 (2019-11-26)](https://github.com/laravel/framework/compare/v6.5.2...v6.6.0)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@
"league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^1.0).",
"league/flysystem-cached-adapter": "Required to use the Flysystem cache (^1.0).",
"league/flysystem-sftp": "Required to use the Flysystem SFTP driver (^1.0).",
"psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0)",
"moontoast/math": "Required to use ordered UUIDs (^1.1).",
"pda/pheanstalk": "Required to use the beanstalk queue driver (^4.0).",
"psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).",
"pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^4.0).",
"symfony/cache": "Required to PSR-6 cache bridge (^5.0).",
"symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^1.2).",
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Auth/Access/Gate.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function define($ability, $callback)
*
* @param string $name
* @param string $class
* @param array|null $abilities
* @param array|null $abilities
* @return $this
*/
public function resource($name, $class, array $abilities = null)
Expand Down Expand Up @@ -379,7 +379,7 @@ public function raw($ability, $arguments = [])
*
* @param \Illuminate\Contracts\Auth\Authenticatable|null $user
* @param \Closure|string|array $class
* @param string|null $method
* @param string|null $method
* @return bool
*/
protected function canBeCalledWithUser($user, $class, $method = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Access/HandlesAuthorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ trait HandlesAuthorization
* Create a new access response.
*
* @param string|null $message
* @param mixed $code
* @param mixed $code
* @return \Illuminate\Auth\Access\Response
*/
protected function allow($message = null, $code = null)
Expand Down
8 changes: 4 additions & 4 deletions src/Illuminate/Auth/Access/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public function __construct($allowed, $message = '', $code = null)
/**
* Create a new "allow" Response.
*
* @param string|null $message
* @param mixed $code
* @param string|null $message
* @param mixed $code
* @return \Illuminate\Auth\Access\Response
*/
public static function allow($message = null, $code = null)
Expand All @@ -57,8 +57,8 @@ public static function allow($message = null, $code = null)
/**
* Create a new "deny" Response.
*
* @param string|null $message
* @param mixed $code
* @param string|null $message
* @param mixed $code
* @return \Illuminate\Auth\Access\Response
*/
public static function deny($message = null, $code = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Events/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Login
/**
* Create a new event instance.
*
* @param string $guard
* @param string $guard
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @param bool $remember
* @return void
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Events/Logout.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Logout
/**
* Create a new event instance.
*
* @param string $guard
* @param string $guard
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @return void
*/
Expand Down
4 changes: 1 addition & 3 deletions src/Illuminate/Auth/GenericUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ public function getAuthIdentifierName()
*/
public function getAuthIdentifier()
{
$name = $this->getAuthIdentifierName();

return $this->attributes[$name];
return $this->attributes[$this->getAuthIdentifierName()];
}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Illuminate/Auth/Passwords/PasswordBroker.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function getUser(array $credentials)
/**
* Create a new password reset token for the given user.
*
* @param \Illuminate\Contracts\Auth\CanResetPassword $user
* @param \Illuminate\Contracts\Auth\CanResetPassword $user
* @return string
*/
public function createToken(CanResetPasswordContract $user)
Expand All @@ -153,7 +153,7 @@ public function createToken(CanResetPasswordContract $user)
/**
* Delete password reset tokens of the given user.
*
* @param \Illuminate\Contracts\Auth\CanResetPassword $user
* @param \Illuminate\Contracts\Auth\CanResetPassword $user
* @return void
*/
public function deleteToken(CanResetPasswordContract $user)
Expand All @@ -164,8 +164,8 @@ public function deleteToken(CanResetPasswordContract $user)
/**
* Validate the given password reset token.
*
* @param \Illuminate\Contracts\Auth\CanResetPassword $user
* @param string $token
* @param \Illuminate\Contracts\Auth\CanResetPassword $user
* @param string $token
* @return bool
*/
public function tokenExists(CanResetPasswordContract $user, $token)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Passwords/PasswordBrokerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function setDefaultDriver($name)
* Dynamically call the default driver instance.
*
* @param string $method
* @param array $parameters
* @param array $parameters
* @return mixed
*/
public function __call($method, $parameters)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/RequestGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class RequestGuard implements Guard
*
* @param callable $callback
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Contracts\Auth\UserProvider|null $provider
* @param \Illuminate\Contracts\Auth\UserProvider|null $provider
* @return void
*/
public function __construct(callable $callback, Request $request, UserProvider $provider = null)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Auth/SessionGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ protected function failedBasicResponse()
* Attempt to authenticate a user using the given credentials.
*
* @param array $credentials
* @param bool $remember
* @param bool $remember
* @return bool
*/
public function attempt(array $credentials = [], $remember = false)
Expand Down Expand Up @@ -381,7 +381,7 @@ protected function hasValidCredentials($user, $credentials)
* Log the given user ID into the application.
*
* @param mixed $id
* @param bool $remember
* @param bool $remember
* @return \Illuminate\Contracts\Auth\Authenticatable|false
*/
public function loginUsingId($id, $remember = false)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Broadcasting/BroadcastManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public function setDefaultDriver($name)
/**
* Register a custom driver creator Closure.
*
* @param string $driver
* @param string $driver
* @param \Closure $callback
* @return $this
*/
Expand All @@ -313,7 +313,7 @@ public function extend($driver, Closure $callback)
* Dynamically call the default driver instance.
*
* @param string $method
* @param array $parameters
* @param array $parameters
* @return mixed
*/
public function __call($method, $parameters)
Expand Down
8 changes: 4 additions & 4 deletions src/Illuminate/Cache/ApcStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function get($key)
* Store an item in the cache for a given number of seconds.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @param int $seconds
* @return bool
*/
Expand All @@ -65,7 +65,7 @@ public function put($key, $value, $seconds)
* Increment the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @return int|bool
*/
public function increment($key, $value = 1)
Expand All @@ -77,7 +77,7 @@ public function increment($key, $value = 1)
* Decrement the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @return int|bool
*/
public function decrement($key, $value = 1)
Expand All @@ -89,7 +89,7 @@ public function decrement($key, $value = 1)
* Store an item in the cache indefinitely.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @return bool
*/
public function forever($key, $value)
Expand Down
8 changes: 4 additions & 4 deletions src/Illuminate/Cache/ApcWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public function get($key)
* Store an item in the cache.
*
* @param string $key
* @param mixed $value
* @param int $seconds
* @param mixed $value
* @param int $seconds
* @return array|bool
*/
public function put($key, $value, $seconds)
Expand All @@ -49,7 +49,7 @@ public function put($key, $value, $seconds)
* Increment the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @return int|bool
*/
public function increment($key, $value)
Expand All @@ -61,7 +61,7 @@ public function increment($key, $value)
* Decrement the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @return int|bool
*/
public function decrement($key, $value)
Expand Down
14 changes: 7 additions & 7 deletions src/Illuminate/Cache/ArrayStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function get($key)
* Store an item in the cache for a given number of seconds.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @param int $seconds
* @return bool
*/
Expand All @@ -70,7 +70,7 @@ public function put($key, $value, $seconds)
* Increment the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @return int
*/
public function increment($key, $value = 1)
Expand All @@ -90,7 +90,7 @@ public function increment($key, $value = 1)
* Decrement the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @return int
*/
public function decrement($key, $value = 1)
Expand All @@ -102,7 +102,7 @@ public function decrement($key, $value = 1)
* Store an item in the cache indefinitely.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @return bool
*/
public function forever($key, $value)
Expand Down Expand Up @@ -174,9 +174,9 @@ protected function toTimestamp($seconds)
/**
* Get a lock instance.
*
* @param string $name
* @param int $seconds
* @param string|null $owner
* @param string $name
* @param int $seconds
* @param string|null $owner
* @return \Illuminate\Contracts\Cache\Lock
*/
public function lock($name, $seconds = 0, $owner = null)
Expand Down
8 changes: 4 additions & 4 deletions src/Illuminate/Cache/DatabaseStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function get($key)
* Store an item in the cache for a given number of seconds.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @param int $seconds
* @return bool
*/
Expand All @@ -112,7 +112,7 @@ public function put($key, $value, $seconds)
* Increment the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @return int|bool
*/
public function increment($key, $value = 1)
Expand All @@ -126,7 +126,7 @@ public function increment($key, $value = 1)
* Decrement the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @return int|bool
*/
public function decrement($key, $value = 1)
Expand Down Expand Up @@ -197,7 +197,7 @@ protected function getTime()
* Store an item in the cache indefinitely.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @return bool
*/
public function forever($key, $value)
Expand Down
8 changes: 4 additions & 4 deletions src/Illuminate/Cache/FileStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function get($key)
* Store an item in the cache for a given number of seconds.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @param int $seconds
* @return bool
*/
Expand Down Expand Up @@ -85,7 +85,7 @@ protected function ensureCacheDirectoryExists($path)
* Increment the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @return int
*/
public function increment($key, $value = 1)
Expand All @@ -101,7 +101,7 @@ public function increment($key, $value = 1)
* Decrement the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @return int
*/
public function decrement($key, $value = 1)
Expand All @@ -113,7 +113,7 @@ public function decrement($key, $value = 1)
* Store an item in the cache indefinitely.
*
* @param string $key
* @param mixed $value
* @param mixed $value
* @return bool
*/
public function forever($key, $value)
Expand Down
Loading

0 comments on commit e95bf0e

Please sign in to comment.