Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 3, 2021
2 parents 747e1ad + 3236599 commit 67428eb
Show file tree
Hide file tree
Showing 67 changed files with 638 additions and 106 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"illuminate/view": "self.version"
},
"require-dev": {
"aws/aws-sdk-php": "^3.155",
"aws/aws-sdk-php": "^3.186.4",
"doctrine/dbal": "^2.6|^3.0",
"filp/whoops": "^2.8",
"guzzlehttp/guzzle": "^6.5.5|^7.0.1",
Expand Down Expand Up @@ -128,7 +128,7 @@
"ext-pcntl": "Required to use all features of the queue worker.",
"ext-posix": "Required to use all features of the queue worker.",
"ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0).",
"aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.155).",
"aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.186.4).",
"brianium/paratest": "Required to run tests in parallel (^6.0).",
"doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.6|^3.0).",
"filp/whoops": "Required for friendly error pages in development (^2.8).",
Expand Down
3 changes: 1 addition & 2 deletions src/Illuminate/Bus/Batch.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Illuminate\Support\Arr;
use Illuminate\Support\Collection;
use JsonSerializable;
use ReturnTypeWillChange;
use Throwable;

class Batch implements Arrayable, JsonSerializable
Expand Down Expand Up @@ -460,7 +459,7 @@ public function toArray()
*
* @return array
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->toArray();
Expand Down
4 changes: 4 additions & 0 deletions src/Illuminate/Cache/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ public function setEventDispatcher(Dispatcher $events)
* @param string $key
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($key)
{
return $this->has($key);
Expand All @@ -614,6 +615,7 @@ public function offsetExists($key)
* @param string $key
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($key)
{
return $this->get($key);
Expand All @@ -626,6 +628,7 @@ public function offsetGet($key)
* @param mixed $value
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($key, $value)
{
$this->put($key, $value, $this->default);
Expand All @@ -637,6 +640,7 @@ public function offsetSet($key, $value)
* @param string $key
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($key)
{
$this->forget($key);
Expand Down
6 changes: 6 additions & 0 deletions src/Illuminate/Collections/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,7 @@ public function pad($size, $value)
*
* @return \ArrayIterator
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new ArrayIterator($this->items);
Expand All @@ -1433,6 +1434,7 @@ public function getIterator()
*
* @return int
*/
#[\ReturnTypeWillChange]
public function count()
{
return count($this->items);
Expand Down Expand Up @@ -1478,6 +1480,7 @@ public function toBase()
* @param mixed $key
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($key)
{
return isset($this->items[$key]);
Expand All @@ -1489,6 +1492,7 @@ public function offsetExists($key)
* @param mixed $key
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($key)
{
return $this->items[$key];
Expand All @@ -1501,6 +1505,7 @@ public function offsetGet($key)
* @param mixed $value
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($key, $value)
{
if (is_null($key)) {
Expand All @@ -1516,6 +1521,7 @@ public function offsetSet($key, $value)
* @param string $key
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($key)
{
unset($this->items[$key]);
Expand Down
2 changes: 2 additions & 0 deletions src/Illuminate/Collections/LazyCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,7 @@ public function pad($size, $value)
*
* @return \Traversable
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return $this->makeIterator($this->source);
Expand All @@ -1411,6 +1412,7 @@ public function getIterator()
*
* @return int
*/
#[\ReturnTypeWillChange]
public function count()
{
if (is_array($this->source)) {
Expand Down
3 changes: 1 addition & 2 deletions src/Illuminate/Collections/Traits/EnumeratesValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Illuminate\Support\HigherOrderCollectionProxy;
use Illuminate\Support\HigherOrderWhenProxy;
use JsonSerializable;
use ReturnTypeWillChange;
use Symfony\Component\VarDumper\VarDumper;
use Traversable;

Expand Down Expand Up @@ -834,7 +833,7 @@ public function toArray()
*
* @return array
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return array_map(function ($value) {
Expand Down
4 changes: 4 additions & 0 deletions src/Illuminate/Config/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public function all()
* @param string $key
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($key)
{
return $this->has($key);
Expand All @@ -149,6 +150,7 @@ public function offsetExists($key)
* @param string $key
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($key)
{
return $this->get($key);
Expand All @@ -161,6 +163,7 @@ public function offsetGet($key)
* @param mixed $value
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($key, $value)
{
$this->set($key, $value);
Expand All @@ -172,6 +175,7 @@ public function offsetSet($key, $value)
* @param string $key
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($key)
{
$this->set($key, null);
Expand Down
3 changes: 1 addition & 2 deletions src/Illuminate/Console/Scheduling/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Contracts\Mail\Mailer;
use Illuminate\Support\Arr;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Date;
use Illuminate\Support\Reflector;
use Illuminate\Support\Stringable;
Expand Down Expand Up @@ -322,7 +321,7 @@ public function runsInMaintenanceMode()
*/
protected function expressionPasses()
{
$date = Carbon::now();
$date = Date::now();

if ($this->timezone) {
$date->setTimezone($this->timezone);
Expand Down
15 changes: 14 additions & 1 deletion src/Illuminate/Console/Scheduling/ManagesFrequencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,23 @@ public function dailyAt($time)
* @return $this
*/
public function twiceDaily($first = 1, $second = 13)
{
return $this->twiceDailyAt($first, $second, 0);
}

/**
* Schedule the event to run twice daily at a given offset.
*
* @param int $first
* @param int $second
* @param int $offset
* @return $this
*/
public function twiceDailyAt($first = 1, $second = 13, $offset = 0)
{
$hours = $first.','.$second;

return $this->spliceIntoPosition(1, 0)
return $this->spliceIntoPosition(1, $offset)
->spliceIntoPosition(2, $hours);
}

Expand Down
4 changes: 4 additions & 0 deletions src/Illuminate/Container/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -1402,6 +1402,7 @@ public static function setInstance(ContainerContract $container = null)
* @param string $key
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($key)
{
return $this->bound($key);
Expand All @@ -1413,6 +1414,7 @@ public function offsetExists($key)
* @param string $key
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($key)
{
return $this->make($key);
Expand All @@ -1425,6 +1427,7 @@ public function offsetGet($key)
* @param mixed $value
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($key, $value)
{
$this->bind($key, $value instanceof Closure ? $value : function () use ($value) {
Expand All @@ -1438,6 +1441,7 @@ public function offsetSet($key, $value)
* @param string $key
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($key)
{
unset($this->bindings[$key], $this->instances[$key], $this->resolved[$key]);
Expand Down
2 changes: 2 additions & 0 deletions src/Illuminate/Container/RewindableGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function __construct(callable $generator, $count)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return ($this->generator)();
Expand All @@ -49,6 +50,7 @@ public function getIterator()
*
* @return int
*/
#[\ReturnTypeWillChange]
public function count()
{
if (is_callable($count = $this->count)) {
Expand Down
11 changes: 3 additions & 8 deletions src/Illuminate/Contracts/Support/MessageBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

namespace Illuminate\Contracts\Support;

interface MessageBag extends Arrayable
use Countable;

interface MessageBag extends Arrayable, Countable
{
/**
* Get the keys present in the message bag.
Expand Down Expand Up @@ -97,11 +99,4 @@ public function isEmpty();
* @return bool
*/
public function isNotEmpty();

/**
* Get the number of messages in the container.
*
* @return int
*/
public function count();
}
6 changes: 5 additions & 1 deletion src/Illuminate/Database/Concerns/BuildsQueries.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,11 @@ protected function paginateUsingCursor($perPage, $columns = ['*'], $cursorName =
if (! is_null($cursor)) {
$addCursorConditions = function (self $builder, $previousColumn, $i) use (&$addCursorConditions, $cursor, $orders) {
if (! is_null($previousColumn)) {
$builder->where($previousColumn, '=', $cursor->parameter($previousColumn));
$builder->where(
$this->getOriginalColumnNameForCursorPagination($this, $previousColumn),
'=',
$cursor->parameter($previousColumn)
);
}

$builder->where(function (self $builder) use ($addCursorConditions, $cursor, $orders, $i) {
Expand Down
3 changes: 1 addition & 2 deletions src/Illuminate/Database/Eloquent/Casts/ArrayObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use ArrayObject as BaseArrayObject;
use Illuminate\Contracts\Support\Arrayable;
use JsonSerializable;
use ReturnTypeWillChange;

class ArrayObject extends BaseArrayObject implements Arrayable, JsonSerializable
{
Expand Down Expand Up @@ -34,7 +33,7 @@ public function toArray()
*
* @return array
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->getArrayCopy();
Expand Down
Loading

0 comments on commit 67428eb

Please sign in to comment.