diff -Nru php-illuminate-support-5.7.15/Collection.php php-illuminate-support-5.7.27/Collection.php --- php-illuminate-support-5.7.15/Collection.php 2018-11-15 13:49:08.000000000 +0000 +++ php-illuminate-support-5.7.27/Collection.php 2019-02-12 07:57:07.000000000 +0000 @@ -248,7 +248,7 @@ */ public function some($key, $operator = null, $value = null) { - return $this->contains($key, $operator, $value); + return $this->contains(...func_get_args()); } /** @@ -312,6 +312,7 @@ /** * Dump the collection and end the script. * + * @param mixed ...$args * @return void */ public function dd(...$args) @@ -560,7 +561,7 @@ */ public function unlessEmpty(callable $callback, callable $default = null) { - return $this->unless($this->isEmpty(), $callback, $default); + return $this->whenNotEmpty($callback, $default); } /** @@ -572,7 +573,7 @@ */ public function unlessNotEmpty(callable $callback, callable $default = null) { - return $this->unless($this->isNotEmpty(), $callback, $default); + return $this->whenEmpty($callback, $default); } /** @@ -679,6 +680,32 @@ } /** + * Filter items such that the value of the given key is between the given values. + * + * @param string $key + * @param array $values + * @return static + */ + public function whereBetween($key, $values) + { + return $this->where($key, '>=', reset($values))->where($key, '<=', end($values)); + } + + /** + * Filter items such that the value of the given key is not between the given values. + * + * @param string $key + * @param array $values + * @return static + */ + public function whereNotBetween($key, $values) + { + return $this->filter(function ($item) use ($key, $values) { + return data_get($item, $key) < reset($values) || data_get($item, $key) > end($values); + }); + } + + /** * Filter items by the given key value pair. * * @param string $key @@ -800,7 +827,7 @@ /** * Group an associative array by a field or using a callback. * - * @param callable|string $groupBy + * @param array|callable|string $groupBy * @param bool $preserveKeys * @return static */ @@ -1319,7 +1346,7 @@ /** * Push all of the given items onto the collection. * - * @param \Traversable|array $source + * @param iterable $source * @return static */ public function concat($source) diff -Nru php-illuminate-support-5.7.15/debian/changelog php-illuminate-support-5.7.27/debian/changelog --- php-illuminate-support-5.7.15/debian/changelog 2018-12-01 23:10:16.000000000 +0000 +++ php-illuminate-support-5.7.27/debian/changelog 2019-02-22 19:09:09.000000000 +0000 @@ -1,3 +1,11 @@ +php-illuminate-support (5.7.27-1) unstable; urgency=medium + + * New upstream version. + + Fixes incompatibilities with SQLite in Eloquent. + * Bump Standards-Version (no changes needed). + + -- Dominik George Fri, 22 Feb 2019 20:09:09 +0100 + php-illuminate-support (5.7.15-1) unstable; urgency=medium * New upstream version. diff -Nru php-illuminate-support-5.7.15/debian/control php-illuminate-support-5.7.27/debian/control --- php-illuminate-support-5.7.15/debian/control 2018-09-29 11:20:57.000000000 +0000 +++ php-illuminate-support-5.7.27/debian/control 2019-02-22 19:09:09.000000000 +0000 @@ -4,7 +4,7 @@ Maintainer: Teckids Debian Task Force Uploaders: Thorsten Glaser , Dominik George Build-Depends: debhelper (>= 11~), pkg-php-tools (>= 1.7~), phpab -Standards-Version: 4.2.1 +Standards-Version: 4.3.0 Homepage: https://github.com/illuminate/support Vcs-Git: https://salsa.debian.org/tdtf-team/php-illuminate-support.git Vcs-Browser: https://salsa.debian.org/tdtf-team/php-illuminate-support diff -Nru php-illuminate-support-5.7.15/Facades/Facade.php php-illuminate-support-5.7.27/Facades/Facade.php --- php-illuminate-support-5.7.15/Facades/Facade.php 2018-11-15 13:49:08.000000000 +0000 +++ php-illuminate-support-5.7.27/Facades/Facade.php 2019-02-12 07:57:07.000000000 +0000 @@ -2,6 +2,7 @@ namespace Illuminate\Support\Facades; +use Closure; use Mockery; use RuntimeException; use Mockery\MockInterface; @@ -23,6 +24,19 @@ protected static $resolvedInstance; /** + * Run a Closure when the facade has been resolved. + * + * @param \Closure $callback + * @return void + */ + public static function resolved(Closure $callback) + { + static::$app->afterResolving(static::getFacadeAccessor(), function ($service) use ($callback) { + $callback($service); + }); + } + + /** * Convert the facade into a Mockery spy. * * @return \Mockery\MockInterface diff -Nru php-illuminate-support-5.7.15/Facades/Session.php php-illuminate-support-5.7.27/Facades/Session.php --- php-illuminate-support-5.7.15/Facades/Session.php 2018-11-15 13:49:08.000000000 +0000 +++ php-illuminate-support-5.7.27/Facades/Session.php 2019-02-12 07:57:07.000000000 +0000 @@ -12,6 +12,7 @@ * @method static bool exists(string|array $key) * @method static bool has(string|array $key) * @method static mixed get(string $key, $default = null) + * @method static mixed pull(string $key, $default = null) * @method static void put(string|array $key, $value = null) * @method static string token() * @method static mixed remove(string $key) diff -Nru php-illuminate-support-5.7.15/Facades/URL.php php-illuminate-support-5.7.27/Facades/URL.php --- php-illuminate-support-5.7.15/Facades/URL.php 2018-11-15 13:49:08.000000000 +0000 +++ php-illuminate-support-5.7.27/Facades/URL.php 2019-02-12 07:57:07.000000000 +0000 @@ -12,8 +12,8 @@ * @method static string route(string $name, $parameters = [], bool $absolute = true) * @method static string action(string $action, $parameters = [], bool $absolute = true) * @method static \Illuminate\Contracts\Routing\UrlGenerator setRootControllerNamespace(string $rootNamespace) - * @method static string signedRoute(string $name, array $parameters = [], \DateTimeInterface|int $expiration = null) - * @method static string temporarySignedRoute(string $name, \DateTimeInterface|int $expiration, array $parameters = []) + * @method static string signedRoute(string $name, array $parameters = [], \DateTimeInterface|\DateInterval|int $expiration = null) + * @method static string temporarySignedRoute(string $name, \DateTimeInterface|\DateInterval|int $expiration, array $parameters = []) * @method static string hasValidSignature(\Illuminate\Http\Request $request, bool $absolute) * @method static void defaults(array $defaults) * diff -Nru php-illuminate-support-5.7.15/Fluent.php php-illuminate-support-5.7.27/Fluent.php --- php-illuminate-support-5.7.15/Fluent.php 2018-11-15 13:49:08.000000000 +0000 +++ php-illuminate-support-5.7.27/Fluent.php 2019-02-12 07:57:07.000000000 +0000 @@ -10,16 +10,16 @@ class Fluent implements ArrayAccess, Arrayable, Jsonable, JsonSerializable { /** - * All of the attributes set on the container. + * All of the attributes set on the fluent instance. * * @var array */ protected $attributes = []; /** - * Create a new fluent container instance. + * Create a new fluent instance. * - * @param array|object $attributes + * @param array|object $attributes * @return void */ public function __construct($attributes = []) @@ -30,7 +30,7 @@ } /** - * Get an attribute from the container. + * Get an attribute from the fluent instance. * * @param string $key * @param mixed $default @@ -46,7 +46,7 @@ } /** - * Get the attributes from the container. + * Get the attributes from the fluent instance. * * @return array */ @@ -56,7 +56,7 @@ } /** - * Convert the Fluent instance to an array. + * Convert the fluent instance to an array. * * @return array */ @@ -76,7 +76,7 @@ } /** - * Convert the Fluent instance to JSON. + * Convert the fluent instance to JSON. * * @param int $options * @return string @@ -132,7 +132,7 @@ } /** - * Handle dynamic calls to the container to set attributes. + * Handle dynamic calls to the fluent instance to set attributes. * * @param string $method * @param array $parameters diff -Nru php-illuminate-support-5.7.15/helpers.php php-illuminate-support-5.7.27/helpers.php --- php-illuminate-support-5.7.15/helpers.php 2018-11-15 13:49:08.000000000 +0000 +++ php-illuminate-support-5.7.27/helpers.php 2019-02-12 07:57:07.000000000 +0000 @@ -443,7 +443,7 @@ * Get an item from an array or object using "dot" notation. * * @param mixed $target - * @param string|array $key + * @param string|array|int $key * @param mixed $default * @return mixed */ diff -Nru php-illuminate-support-5.7.15/LICENSE.md php-illuminate-support-5.7.27/LICENSE.md --- php-illuminate-support-5.7.15/LICENSE.md 1970-01-01 00:00:00.000000000 +0000 +++ php-illuminate-support-5.7.27/LICENSE.md 2019-02-12 07:57:07.000000000 +0000 @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Taylor Otwell + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff -Nru php-illuminate-support-5.7.15/MessageBag.php php-illuminate-support-5.7.27/MessageBag.php --- php-illuminate-support-5.7.15/MessageBag.php 2018-11-15 13:49:08.000000000 +0000 +++ php-illuminate-support-5.7.27/MessageBag.php 2019-02-12 07:57:07.000000000 +0000 @@ -51,7 +51,7 @@ } /** - * Add a message to the bag. + * Add a message to the message bag. * * @param string $key * @param string $message @@ -81,7 +81,7 @@ } /** - * Merge a new array of messages into the bag. + * Merge a new array of messages into the message bag. * * @param \Illuminate\Contracts\Support\MessageProvider|array $messages * @return $this @@ -140,7 +140,7 @@ } /** - * Get the first message from the bag for a given key. + * Get the first message from the message bag for a given key. * * @param string $key * @param string $format @@ -156,7 +156,7 @@ } /** - * Get all of the messages from the bag for a given key. + * Get all of the messages from the message bag for a given key. * * @param string $key * @param string $format @@ -164,9 +164,9 @@ */ public function get($key, $format = null) { - // If the message exists in the container, we will transform it and return - // the message. Otherwise, we'll check if the key is implicit & collect - // all the messages that match a given key and output it as an array. + // If the message exists in the message bag, we will transform it and return + // the message. Otherwise, we will check if the key is implicit & collect + // all the messages that match the given key and output it as an array. if (array_key_exists($key, $this->messages)) { return $this->transform( $this->messages[$key], $this->checkFormat($format), $key @@ -201,7 +201,7 @@ } /** - * Get all of the messages for every key in the bag. + * Get all of the messages for every key in the message bag. * * @param string $format * @return array @@ -220,7 +220,7 @@ } /** - * Get all of the unique messages for every key in the bag. + * Get all of the unique messages for every key in the message bag. * * @param string $format * @return array @@ -261,7 +261,7 @@ } /** - * Get the raw messages in the container. + * Get the raw messages in the message bag. * * @return array */ @@ -271,7 +271,7 @@ } /** - * Get the raw messages in the container. + * Get the raw messages in the message bag. * * @return array */ @@ -344,7 +344,7 @@ } /** - * Get the number of messages in the container. + * Get the number of messages in the message bag. * * @return int */ diff -Nru php-illuminate-support-5.7.15/Str.php php-illuminate-support-5.7.27/Str.php --- php-illuminate-support-5.7.15/Str.php 2018-11-15 13:49:08.000000000 +0000 +++ php-illuminate-support-5.7.27/Str.php 2019-02-12 07:57:07.000000000 +0000 @@ -428,7 +428,7 @@ $title = str_replace('@', $separator.'at'.$separator, $title); // Remove all characters that are not the separator, letters, numbers, or whitespace. - $title = preg_replace('![^'.preg_quote($separator).'\pL\pN\s]+!u', '', mb_strtolower($title)); + $title = preg_replace('![^'.preg_quote($separator).'\pL\pN\s]+!u', '', static::lower($title)); // Replace all separator characters and whitespace by a single separator $title = preg_replace('!['.preg_quote($separator).'\s]+!u', $separator, $title); diff -Nru php-illuminate-support-5.7.15/Testing/Fakes/EventFake.php php-illuminate-support-5.7.27/Testing/Fakes/EventFake.php --- php-illuminate-support-5.7.15/Testing/Fakes/EventFake.php 2018-11-15 13:49:08.000000000 +0000 +++ php-illuminate-support-5.7.27/Testing/Fakes/EventFake.php 2019-02-12 07:57:07.000000000 +0000 @@ -211,7 +211,7 @@ if ($this->shouldFakeEvent($name, $payload)) { $this->events[$name][] = func_get_args(); } else { - $this->dispatcher->dispatch($event, $payload, $halt); + return $this->dispatcher->dispatch($event, $payload, $halt); } } diff -Nru php-illuminate-support-5.7.15/Testing/Fakes/MailFake.php php-illuminate-support-5.7.27/Testing/Fakes/MailFake.php --- php-illuminate-support-5.7.15/Testing/Fakes/MailFake.php 2018-11-15 13:49:08.000000000 +0000 +++ php-illuminate-support-5.7.27/Testing/Fakes/MailFake.php 2019-02-12 07:57:07.000000000 +0000 @@ -263,7 +263,7 @@ } /** - * Send a new message when only a raw text part. + * Send a new message with only a raw text part. * * @param string $text * @param \Closure|string $callback diff -Nru php-illuminate-support-5.7.15/Testing/Fakes/QueueFake.php php-illuminate-support-5.7.27/Testing/Fakes/QueueFake.php --- php-illuminate-support-5.7.15/Testing/Fakes/QueueFake.php 2018-11-15 13:49:08.000000000 +0000 +++ php-illuminate-support-5.7.27/Testing/Fakes/QueueFake.php 2019-02-12 07:57:07.000000000 +0000 @@ -328,6 +328,16 @@ } /** + * Get the jobs that have been pushed. + * + * @return array + */ + public function pushedJobs() + { + return $this->jobs; + } + + /** * Get the connection name for the queue. * * @return string