Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/8.x' into 8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 20, 2021
2 parents ec7a532 + f79b684 commit fbf25e1
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Collections/Collection.php
Expand Up @@ -262,7 +262,7 @@ public function diffKeysUsing($items, callable $callback)
/**
* Retrieve duplicate items from the collection.
*
* @param callable|null $callback
* @param callable|string|null $callback
* @param bool $strict
* @return static
*/
Expand Down Expand Up @@ -290,7 +290,7 @@ public function duplicates($callback = null, $strict = false)
/**
* Retrieve duplicate items from the collection using strict comparison.
*
* @param callable|null $callback
* @param callable|string|null $callback
* @return static
*/
public function duplicatesStrict($callback = null)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Collections/Enumerable.php
Expand Up @@ -211,7 +211,7 @@ public function diffKeysUsing($items, callable $callback);
/**
* Retrieve duplicate items.
*
* @param callable|null $callback
* @param callable|string|null $callback
* @param bool $strict
* @return static
*/
Expand All @@ -220,7 +220,7 @@ public function duplicates($callback = null, $strict = false);
/**
* Retrieve duplicate items using strict comparison.
*
* @param callable|null $callback
* @param callable|string|null $callback
* @return static
*/
public function duplicatesStrict($callback = null);
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Collections/LazyCollection.php
Expand Up @@ -316,7 +316,7 @@ public function diffKeysUsing($items, callable $callback)
/**
* Retrieve duplicate items.
*
* @param callable|null $callback
* @param callable|string|null $callback
* @param bool $strict
* @return static
*/
Expand All @@ -328,7 +328,7 @@ public function duplicates($callback = null, $strict = false)
/**
* Retrieve duplicate items using strict comparison.
*
* @param callable|null $callback
* @param callable|string|null $callback
* @return static
*/
public function duplicatesStrict($callback = null)
Expand Down
5 changes: 5 additions & 0 deletions src/Illuminate/Database/Console/DbCommand.php
Expand Up @@ -3,6 +3,7 @@
namespace Illuminate\Database\Console;

use Illuminate\Console\Command;
use Illuminate\Support\ConfigurationUrlParser;
use Symfony\Component\Process\Process;
use UnexpectedValueException;

Expand Down Expand Up @@ -57,6 +58,10 @@ public function getConnection()
throw new UnexpectedValueException("Invalid database connection [{$db}].");
}

if (! empty($connection['url'])) {
$connection = (new ConfigurationUrlParser)->parseConfiguration($connection);
}

return $connection;
}

Expand Down
15 changes: 15 additions & 0 deletions src/Illuminate/Foundation/Bus/DispatchesJobs.php
Expand Up @@ -22,9 +22,24 @@ protected function dispatch($job)
*
* @param mixed $job
* @return mixed
*
* @deprecated Will be removed in a future Laravel version.
*/
public function dispatchNow($job)
{
return app(Dispatcher::class)->dispatchNow($job);
}

/**
* Dispatch a command to its appropriate handler in the current process.
*
* Queueable jobs will be dispatched to the "sync" queue.
*
* @param mixed $job
* @return mixed
*/
public function dispatchSync($job)
{
return app(Dispatcher::class)->dispatchSync($job);
}
}

0 comments on commit fbf25e1

Please sign in to comment.