language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Foundation/Console/ServeCommand.php
@@ -149,7 +149,7 @@ protected function port() } /** - * Check if command has reached its max amount of port tries. + * Check if the command has reached its max amount of port tries. * * @return bool */
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Foundation/Http/Kernel.php
@@ -254,7 +254,7 @@ public function hasMiddleware($middleware) } /** - * Add a new middleware to beginning of the stack if it does not already exist. + * Add a new middleware to the beginning of the stack if it does not already exist. * * @param string $middleware * @return $this
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Http/Resources/Json/JsonResource.php
@@ -69,7 +69,7 @@ public static function make(...$parameters) } /** - * Create new anonymous resource collection. + * Create a new anonymous resource collection. * * @param mixed $resource * @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Http/Resources/MergeValue.php
@@ -15,7 +15,7 @@ class MergeValue public $data; /** - * Create new merge value instance. + * Create a new merge value instance. * * @param \Illuminate\Support\Collection|\JsonSerializable|array $data * @return void
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Mail/SendQueuedMailable.php
@@ -89,7 +89,7 @@ public function failed($e) } /** - * Get number of seconds before a released mailable will be available. + * Get the number of seconds before a released mailable will be available. * * @return mixed */
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Notifications/SendQueuedNotifications.php
@@ -128,7 +128,7 @@ public function failed($e) } /** - * Get number of seconds before a released notification will be available. + * Get the number of seconds before a released notification will be available. * * @return mixed */
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Pagination/AbstractPaginator.php
@@ -739,7 +739,7 @@ public function __call($method, $parameters) } /** - * Render the contents of the paginator when casting to string. + * Render the contents of the paginator when casting to a string. * * @return string */
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Queue/Middleware/RateLimited.php
@@ -99,7 +99,7 @@ protected function handleJob($job, $next, array $limits) } /** - * Do not release the job back to the queue if limit is exceeded. + * Do not release the job back to the queue if the limit is exceeded. * * @return $this */
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Queue/WorkerOptions.php
@@ -54,7 +54,7 @@ class WorkerOptions public $force; /** - * Indicates if the worker should stop when queue is empty. + * Indicates if the worker should stop when the queue is empty. * * @var bool */
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Redis/Connections/PhpRedisConnection.php
@@ -71,7 +71,7 @@ public function mget(array $keys) } /** - * Set the string value in argument as value of the key. + * Set the string value in the argument as the value of the key. * * @param string $key * @param mixed $value @@ -556,7 +556,7 @@ public function disconnect() ...
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Redis/Connectors/PhpRedisConnector.php
@@ -50,7 +50,7 @@ public function connectToCluster(array $config, array $clusterOptions, array $op } /** - * Build a single cluster seed string from array. + * Build a single cluster seed string from an array. * * @param array $server * @return string
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Routing/Console/ControllerMakeCommand.php
@@ -86,7 +86,7 @@ protected function getDefaultNamespace($rootNamespace) /** * Build the class with the given name. * - * Remove the base controller import if we are already in base namespace. + * Remove the base controller import if we are already in the base namespace. * * @param ...
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Support/DateFactory.php
@@ -217,7 +217,7 @@ public function __call($method, $parameters) return $dateClass::$method(...$parameters); } - // If that fails, create the date with the default class.. + // If that fails, create the date with the default class... $date = $defaultClassName::$method(...$...
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Support/Str.php
@@ -696,7 +696,7 @@ public static function studly($value) } /** - * Returns the portion of string specified by the start and length parameters. + * Returns the portion of the string specified by the start and length parameters. * * @param string $string * @param int $start
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Support/Stringable.php
@@ -607,7 +607,7 @@ public function studly() } /** - * Returns the portion of string specified by the start and length parameters. + * Returns the portion of the string specified by the start and length parameters. * * @param int $start * @param int|null $length
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Testing/PendingCommand.php
@@ -52,7 +52,7 @@ class PendingCommand protected $expectedExitCode; /** - * Determine if command has executed. + * Determine if the command has executed. * * @var bool */
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Validation/Concerns/FormatsMessages.php
@@ -116,7 +116,7 @@ protected function getFromLocalArray($attribute, $lowerRule, $source = null) } /** - * Get the custom error message from translator. + * Get the custom error message from the translator. * * @param string $key * @return string
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/Validation/ValidationData.php
@@ -8,7 +8,7 @@ class ValidationData { /** - * Initialize and gather data for given attribute. + * Initialize and gather data for the given attribute. * * @param string $attribute * @param array $masterData
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/View/Compilers/BladeCompiler.php
@@ -100,7 +100,7 @@ class BladeCompiler extends Compiler implements CompilerInterface protected $echoFormat = 'e(%s)'; /** - * Array of footer lines to be added to template. + * Array of footer lines to be added to the template. * * @var array */
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/View/Compilers/ComponentTagCompiler.php
@@ -48,7 +48,7 @@ class ComponentTagCompiler protected $boundAttributes = []; /** - * Create new component tag compiler. + * Create a new component tag compiler. * * @param array $aliases * @param array $namespaces
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php
@@ -7,7 +7,7 @@ trait CompilesConditionals { /** - * Identifier for the first case in switch statement. + * Identifier for the first case in the switch statement. * * @var bool */
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
src/Illuminate/View/Concerns/ManagesLayouts.php
@@ -175,7 +175,7 @@ public static function parentPlaceholder($section = '') } /** - * Check if section exists. + * Check if the section exists. * * @param string $name * @return bool
true
Other
laravel
framework
6319d94ccaf8169b103813a82139814573ddef09.json
Add missing articles (#36122)
tests/Foundation/Testing/WormholeTest.php
@@ -11,17 +11,17 @@ class WormholeTest extends TestCase { public function testCanTravelBackToPresent() { - // Preserve the timelines we want to compare the reality with.. + // Preserve the timelines we want to compare the reality with... $present = now(); $future = now()->addD...
true
Other
laravel
framework
6e90f9af9ed752f346c0bdba9cd0ea16ee13d6a8.json
Apply fixes from StyleCI (#36099)
src/Illuminate/Testing/ParallelRunner.php
@@ -149,4 +149,4 @@ protected function createApplication() return call_user_func($applicationResolver); } -} \ No newline at end of file +}
false
Other
laravel
framework
b1381f2d876ba4cec4dbdea84ae0fb6ccce0bb79.json
Remove unused import
src/Illuminate/Support/Stringable.php
@@ -6,7 +6,6 @@ use Illuminate\Support\Traits\Macroable; use Illuminate\Support\Traits\Tappable; use JsonSerializable; -use League\CommonMark\GithubFlavoredMarkdownConverter; use Symfony\Component\VarDumper\VarDumper; class Stringable implements JsonSerializable
false
Other
laravel
framework
a7c1bc22549c4450a6c41c638a37eb54261a573c.json
Fix style issue
src/Illuminate/Routing/Middleware/SubstituteBindings.php
@@ -40,7 +40,7 @@ public function handle($request, Closure $next) $this->router->substituteImplicitBindings($route); } catch (ModelNotFoundException $exception) { - if($route->getMissing()) { + if ($route->getMissing()) { return $route->getMissing()($reques...
false
Other
laravel
framework
6e79268aa8b0d242ab78a54bce304f0cc7735876.json
Fix PHP 8.0 showing as 8 (#36039)
.github/workflows/tests.yml
@@ -31,7 +31,7 @@ jobs: strategy: fail-fast: true matrix: - php: [7.2, 7.3, 7.4, 8.0] + php: ['7.2', '7.3', '7.4', '8.0'] stability: [prefer-lowest, prefer-stable] name: PHP ${{ matrix.php }} - ${{ matrix.stability }} @@ -78,7 +78,7 @@ jobs: strategy: fail-fa...
false
Other
laravel
framework
e72027960fd4d8ff281938edb4632e13e391b8fd.json
fix bus fake
src/Illuminate/Support/Testing/Fakes/BusFake.php
@@ -201,7 +201,13 @@ public function assertChained(array $expectedChain) if ($command instanceof Closure) { [$command, $callback] = [$this->firstClosureParameterType($command), $command]; } elseif (! is_string($command)) { - $command = get_class($command); + $instanc...
false
Other
laravel
framework
e5f217135464a7de2b11d6e11ca7e5940678ecf9.json
Fix styling issue
src/Illuminate/Routing/Router.php
@@ -671,7 +671,7 @@ protected function runRoute(Request $request, Route $route) $this->runRouteWithinStack($route, $request) ); } catch (ModelNotFoundException $exception) { - if($route->getElse()) { + if ($route->getElse()) { return $route->...
false
Other
laravel
framework
7f1138e362c6e124f4e1b327fc14d83eb80fffee.json
make Stringable Tappable
src/Illuminate/Support/Stringable.php
@@ -4,11 +4,12 @@ use Closure; use Illuminate\Support\Traits\Macroable; +use Illuminate\Support\Traits\Tappable; use Symfony\Component\VarDumper\VarDumper; class Stringable { - use Macroable; + use Tappable, Macroable; /** * The underlying string value.
false
Other
laravel
framework
6e6d699b05c2fe9447e26adaf26e154c8063a34d.json
Fix Filesystem type (#35979)
src/Illuminate/Database/PostgresConnection.php
@@ -10,6 +10,7 @@ use Illuminate\Database\Schema\Grammars\PostgresGrammar as SchemaGrammar; use Illuminate\Database\Schema\PostgresBuilder; use Illuminate\Database\Schema\PostgresSchemaState; +use Illuminate\Filesystem\Filesystem; use PDO; class PostgresConnection extends Connection @@ -77,7 +78,7 @@ protected f...
false
Other
laravel
framework
c6b8168e6cbbe339fdc3af5ccdded545779965df.json
Add limit bindings for having between + tests.
src/Illuminate/Database/Query/Builder.php
@@ -1791,7 +1791,7 @@ public function havingBetween($column, array $values, $boolean = 'and', $not = f $this->havings[] = compact('type', 'column', 'values', 'boolean', 'not'); - $this->addBinding($this->cleanBindings($values), 'having'); + $this->addBinding(array_slice($this->cleanBindings(A...
true
Other
laravel
framework
c6b8168e6cbbe339fdc3af5ccdded545779965df.json
Add limit bindings for having between + tests.
tests/Database/DatabaseQueryBuilderTest.php
@@ -654,6 +654,16 @@ public function testWhereBetweens() $this->assertSame('select * from "users" where "id" between ? and ?', $builder->toSql()); $this->assertEquals([0 => 1, 1 => 2], $builder->getBindings()); + $builder = $this->getBuilder(); + $builder->select('*')->from('users')->w...
true
Other
laravel
framework
8eaec037421aa9f3860da9d339986448b4c884eb.json
Add JobQueued event (Follows: https://github.com/laravel/framework/pull/32894)
src/Illuminate/Queue/Events/JobQueued.php
@@ -0,0 +1,29 @@ +<?php + +namespace Illuminate\Queue\Events; + +class JobQueued +{ + /** + * @var string|int|null + */ + public $jobId; + + /** + * @var string|object + */ + public $job; + + /** + * JobQueued constructor. + * + * @param string|int|null $jobId + * @param...
true
Other
laravel
framework
8eaec037421aa9f3860da9d339986448b4c884eb.json
Add JobQueued event (Follows: https://github.com/laravel/framework/pull/32894)
src/Illuminate/Queue/Queue.php
@@ -7,6 +7,7 @@ use Illuminate\Container\Container; use Illuminate\Contracts\Encryption\Encrypter; use Illuminate\Contracts\Queue\ShouldBeEncrypted; +use Illuminate\Queue\Events\JobQueued; use Illuminate\Support\Arr; use Illuminate\Support\InteractsWithTime; use Illuminate\Support\Str; @@ -284,13 +285,17 @@ prote...
true
Other
laravel
framework
8eaec037421aa9f3860da9d339986448b4c884eb.json
Add JobQueued event (Follows: https://github.com/laravel/framework/pull/32894)
tests/Queue/QueueBeanstalkdQueueTest.php
@@ -13,6 +13,16 @@ class QueueBeanstalkdQueueTest extends TestCase { + /** + * @var BeanstalkdQueue + */ + private $queue; + + /** + * @var Container|m\LegacyMockInterface|m\MockInterface + */ + private $container; + protected function tearDown(): void { m::close(); @@...
true
Other
laravel
framework
8eaec037421aa9f3860da9d339986448b4c884eb.json
Add JobQueued event (Follows: https://github.com/laravel/framework/pull/32894)
tests/Queue/QueueDatabaseQueueUnitTest.php
@@ -2,6 +2,7 @@ namespace Illuminate\Tests\Queue; +use Illuminate\Container\Container; use Illuminate\Database\Connection; use Illuminate\Queue\DatabaseQueue; use Illuminate\Queue\Queue; @@ -28,6 +29,7 @@ public function testPushProperlyPushesJobOntoDatabase() $queue = $this->getMockBuilder(DatabaseQ...
true
Other
laravel
framework
8eaec037421aa9f3860da9d339986448b4c884eb.json
Add JobQueued event (Follows: https://github.com/laravel/framework/pull/32894)
tests/Queue/QueueRedisQueueTest.php
@@ -2,6 +2,7 @@ namespace Illuminate\Tests\Queue; +use Illuminate\Container\Container; use Illuminate\Contracts\Redis\Factory; use Illuminate\Queue\LuaScripts; use Illuminate\Queue\Queue; @@ -28,11 +29,13 @@ public function testPushProperlyPushesJobOntoRedis() $queue = $this->getMockBuilder(RedisQueu...
true
Other
laravel
framework
8eaec037421aa9f3860da9d339986448b4c884eb.json
Add JobQueued event (Follows: https://github.com/laravel/framework/pull/32894)
tests/Queue/QueueSqsQueueTest.php
@@ -92,33 +92,39 @@ public function testDelayedPushWithDateTimeProperlyPushesJobOntoSqs() { $now = Carbon::now(); $queue = $this->getMockBuilder(SqsQueue::class)->onlyMethods(['createPayload', 'secondsUntil', 'getQueue'])->setConstructorArgs([$this->sqs, $this->queueName, $this->account])->getMoc...
true
Other
laravel
framework
8eaec037421aa9f3860da9d339986448b4c884eb.json
Add JobQueued event (Follows: https://github.com/laravel/framework/pull/32894)
tests/Queue/RedisQueueIntegrationTest.php
@@ -3,7 +3,9 @@ namespace Illuminate\Tests\Queue; use Illuminate\Container\Container; +use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Foundation\Testing\Concerns\InteractsWithRedis; +use Illuminate\Queue\Events\JobQueued; use Illuminate\Queue\Jobs\RedisJob; use Illuminate\Queue\RedisQueue; use Illum...
true
Other
laravel
framework
b9624ab7b3b3994a5e962d0f468fcf6c45a198d7.json
Consolidate CHANGELOG.md for 9.x (#35943)
CHANGELOG-6.x.md
@@ -1,1015 +0,0 @@ -# Release Notes for 6.x - -## [Unreleased](https://github.com/laravel/framework/compare/v6.20.10...6.x) - - -## [v6.20.10 (2021-01-12)](https://github.com/laravel/framework/compare/v6.20.9...v6.20.10) - -### Added -- Added new line to `DetectsLostConnections` ([#35790](https://github.com/laravel/fra...
true
Other
laravel
framework
b9624ab7b3b3994a5e962d0f468fcf6c45a198d7.json
Consolidate CHANGELOG.md for 9.x (#35943)
CHANGELOG-8.x.md
@@ -1,569 +0,0 @@ -# Release Notes for 8.x - -## [Unreleased](https://github.com/laravel/framework/compare/v8.22.0...8.x) - - -## [v8.22.0 (2021-01-12)](https://github.com/laravel/framework/compare/v8.21.0...v8.22.0) - -### Added -- Added new lines to `DetectsLostConnections` ([#35752](https://github.com/laravel/framew...
true
Other
laravel
framework
b9624ab7b3b3994a5e962d0f468fcf6c45a198d7.json
Consolidate CHANGELOG.md for 9.x (#35943)
CHANGELOG.md
@@ -0,0 +1,8 @@ +# Release Notes for 9.x + +## [Unreleased](https://github.com/laravel/framework/compare/v9.0.0...9.x) + + +## [v9.0.0 (2020-??-??)](https://github.com/laravel/framework/compare/v8.22.0...v9.0.0) + +Check the upgrade guide in the [Official Laravel Upgrade Documentation](https://laravel.com/docs/9.x/upgr...
true
Other
laravel
framework
1a146d2c170390def0b017146b21c9f8c21691ce.json
Fix empty email with attachments (#35941)
src/Illuminate/Mail/Mailer.php
@@ -325,7 +325,7 @@ protected function parseView($view) protected function addContent($message, $view, $plain, $raw, $data) { if (isset($view)) { - $message->setBody($this->renderView($view, $data), 'text/html'); + $message->setBody($this->renderView($view, $data) ?: ' ', 'text/...
false
Other
laravel
framework
f646f8a8c594e83217079763b8ac20c260828da4.json
Apply fixes from StyleCI (#35909)
tests/Support/SupportCollectionTest.php
@@ -3590,7 +3590,7 @@ public function testReduce($collection) $this->assertEquals(6, $data->reduce(function ($carry, $element) { return $carry += $element; })); - + $data = new $collection([ 'foo' => 'bar', 'baz' => 'qux',
false
Other
laravel
framework
f3d4dcb21dc66824611fdde95c8075b694825bf5.json
fix serialization of rate limited middleware
src/Illuminate/Queue/Middleware/RateLimited.php
@@ -120,4 +120,31 @@ protected function getTimeUntilNextRetry($key) { return $this->limiter->availableIn($key) + 3; } + + /** + * Prepare the object for serialization. + * + * @return array + */ + public function __serialize() + { + return [ + 'limiterName' ...
false
Other
laravel
framework
2996da8d616aa648ac7646001d318928ae4a41f6.json
add passthru methods to eloquent builder
src/Illuminate/Database/Eloquent/Builder.php
@@ -77,6 +77,7 @@ class Builder protected $passthru = [ 'insert', 'insertOrIgnore', 'insertGetId', 'insertUsing', 'getBindings', 'toSql', 'dump', 'dd', 'exists', 'doesntExist', 'count', 'min', 'max', 'avg', 'average', 'sum', 'getConnection', 'raw', 'getGrammar', + 'newQuery', 'getProcessor...
false
Other
laravel
framework
bd7aaa8ff0c37907ac66fcccfebc7d6e25a7402c.json
Fix bug with RetryCommand (#35828)
src/Illuminate/Queue/Console/RetryCommand.php
@@ -2,6 +2,7 @@ namespace Illuminate\Queue\Console; +use DateTimeInterface; use Illuminate\Console\Command; use Illuminate\Support\Arr; @@ -133,7 +134,11 @@ protected function refreshRetryUntil($payload) $instance = unserialize($payload['data']['command']); if (is_object($instance) && metho...
false
Other
laravel
framework
4415b94623358bfd1dc2e8f20e4deab0025d2d03.json
fix breaking change
src/Illuminate/Queue/Console/RetryCommand.php
@@ -126,6 +126,10 @@ protected function refreshRetryUntil($payload) { $payload = json_decode($payload, true); + if (! isset($payload['data']['command'])) { + return json_encode($payload); + } + $instance = unserialize($payload['data']['command']); if (is_obje...
false
Other
laravel
framework
74f1bdcd40000f8acf5e0b10f12370d50c5fea47.json
add array to URL action method argument (#35787)
src/Illuminate/Support/Facades/URL.php
@@ -5,7 +5,7 @@ /** * @method static \Illuminate\Contracts\Routing\UrlGenerator setRootControllerNamespace(string $rootNamespace) * @method static bool hasValidSignature(\Illuminate\Http\Request $request, bool $absolute = true) - * @method static string action(string $action, $parameters = [], bool $absolute = tru...
false
Other
laravel
framework
72596ae3612bb6dfa21468f8d7d77f6cc545890d.json
Refresh the retryUntil timer on job retry Signed-off-by: Kevin Ullyott <ullyott.kevin@gmail.com>
src/Illuminate/Queue/Console/RetryCommand.php
@@ -93,10 +93,25 @@ protected function getJobIdsByRanges(array $ranges) protected function retryJob($job) { $this->laravel['queue']->connection($job->connection)->pushRaw( - $this->resetAttempts($job->payload), $job->queue + $this->retryRefresh($job->payload), $job->queue ...
false
Other
laravel
framework
4ffe40fb169c6bcce9193ff56958eca41e64294f.json
add table prefix
src/Illuminate/Database/Console/DumpCommand.php
@@ -66,7 +66,7 @@ public function handle(ConnectionResolverInterface $connections, Dispatcher $dis protected function schemaState(Connection $connection) { return $connection->getSchemaState() - ->withMigrationTable(Config::get('database.migrations', 'migrations')) + ->w...
false
Other
laravel
framework
6364c5b8643e68317e4803062258f28d1583b21b.json
Fix Style CI
tests/View/ViewComponentAttributeBagTest.php
@@ -70,25 +70,25 @@ public function testAttributeRetrieval() 'test-extract-1' => 'extracted-1', 'test-extract-2' => 'extracted-2', 'test-discard-1' => 'discarded-1', - 'test-discard-2' => 'discarded-2' + 'test-discard-2' => 'discarded-2', ...
false
Other
laravel
framework
55125a86b153618879dd6b7abcb45859256e7305.json
Exclude assigned props from attributes array
src/Illuminate/View/Compilers/ComponentTagCompiler.php
@@ -231,6 +231,9 @@ protected function componentString(string $component, array $attributes) } return " @component('{$class}', '{$component}', [".$this->attributesToString($parameters, $escapeBound = false).']) +<?php if (isset($attributes) && $constructor = (new ReflectionClass('.$class.'::class))-...
true
Other
laravel
framework
55125a86b153618879dd6b7abcb45859256e7305.json
Exclude assigned props from attributes array
src/Illuminate/View/Compilers/Concerns/CompilesComponents.php
@@ -150,17 +150,18 @@ protected function compileEndComponentFirst() */ protected function compileProps($expression) { - return "<?php \$__props = \$attributes->only(array_keys{$expression}); ?> + return "<?php foreach(\$attributes->onlyProps{$expression} as \$__key => \$__value) { + \$\...
true
Other
laravel
framework
55125a86b153618879dd6b7abcb45859256e7305.json
Exclude assigned props from attributes array
src/Illuminate/View/ComponentAttributeBag.php
@@ -153,13 +153,35 @@ public function thatStartWith($string) return $this->whereStartsWith($string); } + /** + * Only include the given attribute from the attribute array. + * + * @param mixed|array $keys + * @return static + */ + public function onlyProps($keys) + { + ...
true
Other
laravel
framework
55125a86b153618879dd6b7abcb45859256e7305.json
Exclude assigned props from attributes array
tests/View/Blade/BladeComponentTagCompilerTest.php
@@ -41,8 +41,14 @@ public function testBasicComponentParsing() $result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<div><x-alert type="foo" limit="5" @click="foo" wire:click="changePlan(\'{{ $plan }}\')" required /><x-alert /></div>'); $this->assertSame("<div> @component(...
true
Other
laravel
framework
55125a86b153618879dd6b7abcb45859256e7305.json
Exclude assigned props from attributes array
tests/View/Blade/BladePropsTest.php
@@ -6,16 +6,17 @@ class BladePropsTest extends AbstractBladeTestCase { public function testPropsAreCompiled() { - $this->assertSame('<?php $__props = $attributes->only(array_keys([\'one\' => true, \'two\' => \'string\'])); ?> + $this->assertSame('<?php foreach($attributes->onlyProps([\'one\' =>...
true
Other
laravel
framework
55125a86b153618879dd6b7abcb45859256e7305.json
Exclude assigned props from attributes array
tests/View/ViewComponentAttributeBagTest.php
@@ -64,5 +64,31 @@ public function testAttributeRetrieval() ]); $this->assertSame('test-string="ok" test-true="test-true" test-0="0" test-0-string="0" test-empty-string=""', (string) $bag); + + $bag = (new ComponentAttributeBag) + ->merge([ + 'test-extract-1' => ...
true
Other
laravel
framework
13546a703c210298517b25307647778d4fe3ab9f.json
Update DetectsLostConnections.php (#35744) AWS Aurora serverless DB sometimes aborts queries while performing scaling. The error returned is: "SQLSTATE[HY000]: General error: 1105 The last transaction was aborted due to Seamless Scaling. Please retry."
src/Illuminate/Database/DetectsLostConnections.php
@@ -47,6 +47,7 @@ protected function causedByLostConnection(Throwable $e) 'SQLSTATE[HY000]: General error: 7 SSL SYSCALL error: EOF detected', 'SQLSTATE[HY000] [2002] Connection timed out', 'SSL: Connection timed out', + 'SQLSTATE[HY000]: General error: 1105 The last tr...
false
Other
laravel
framework
aae5c4acf3492ffac107ac2e466914e455623da8.json
convert time to seconds once (#35721)
src/Illuminate/Cache/Repository.php
@@ -292,17 +292,19 @@ public function setMultiple($values, $ttl = null) */ public function add($key, $value, $ttl = null) { + $seconds = null; + if ($ttl !== null) { - if ($this->getSeconds($ttl) <= 0) { + $seconds = $this->getSeconds($ttl); + + if ($seco...
false
Other
laravel
framework
8dc442578670197c05e80be90fb711c427f3c99c.json
Change command signature and add new interface
src/Illuminate/Bus/DatabaseBatchRepository.php
@@ -9,7 +9,7 @@ use Illuminate\Database\Query\Expression; use Illuminate\Support\Str; -class DatabaseBatchRepository implements BatchRepository +class DatabaseBatchRepository implements BatchRepository, Prunable { /** * The batch factory instance.
true
Other
laravel
framework
8dc442578670197c05e80be90fb711c427f3c99c.json
Change command signature and add new interface
src/Illuminate/Bus/Prunable.php
@@ -0,0 +1,16 @@ +<?php + +namespace Illuminate\Bus; + +use DateTimeInterface; + +interface Prunable +{ + /** + * Prune all of the entries older than the given date. + * + * @param DateTimeInterface $before + * @return int + */ + public function prune(DateTimeInterface $before); +}
true
Other
laravel
framework
8dc442578670197c05e80be90fb711c427f3c99c.json
Change command signature and add new interface
src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php
@@ -63,11 +63,11 @@ use Illuminate\Queue\Console\BatchesTableCommand; use Illuminate\Queue\Console\ClearCommand as QueueClearCommand; use Illuminate\Queue\Console\FailedTableCommand; -use Illuminate\Queue\Console\FlushBatchCommand as FlushBatchQueueCommand; use Illuminate\Queue\Console\FlushFailedCommand as FlushFa...
true
Other
laravel
framework
8dc442578670197c05e80be90fb711c427f3c99c.json
Change command signature and add new interface
src/Illuminate/Queue/Console/PruneBatchesCommand.php
@@ -4,16 +4,17 @@ use Carbon\Carbon; use Illuminate\Bus\BatchRepository; +use Illuminate\Bus\Prunable; use Illuminate\Console\Command; -class FlushBatchCommand extends Command +class PruneBatchesCommand extends Command { /** * The console command signature. * * @var string */ - p...
true
Other
laravel
framework
8dc442578670197c05e80be90fb711c427f3c99c.json
Change command signature and add new interface
src/Illuminate/Support/Testing/Fakes/BatchRepositoryFake.php
@@ -4,7 +4,6 @@ use Carbon\CarbonImmutable; use Closure; -use DateTimeInterface; use Illuminate\Bus\Batch; use Illuminate\Bus\BatchRepository; use Illuminate\Bus\PendingBatch; @@ -135,15 +134,4 @@ public function transaction(Closure $callback) { return $callback(); } - - /** - * Prune a...
true
Other
laravel
framework
910fad8cb2934f2c231f806b8b398ba95ef38dfe.json
Remove interface method and add import
src/Illuminate/Bus/BatchRepository.php
@@ -89,12 +89,4 @@ public function delete(string $batchId); * @return mixed */ public function transaction(Closure $callback); - - /** - * Prune all of the entries older than the given date. - * - * @param \DateTimeInterface $before - * @return int - */ - public function pru...
true
Other
laravel
framework
910fad8cb2934f2c231f806b8b398ba95ef38dfe.json
Remove interface method and add import
src/Illuminate/Bus/DatabaseBatchRepository.php
@@ -4,6 +4,7 @@ use Carbon\CarbonImmutable; use Closure; +use DateTimeInterface; use Illuminate\Database\Connection; use Illuminate\Database\Query\Expression; use Illuminate\Support\Str; @@ -246,12 +247,13 @@ public function transaction(Closure $callback) /** * Prune all of the entries older than the ...
true
Other
laravel
framework
910fad8cb2934f2c231f806b8b398ba95ef38dfe.json
Remove interface method and add import
src/Illuminate/Queue/Console/FlushBatchCommand.php
@@ -25,16 +25,22 @@ class FlushBatchCommand extends Command /** * Execute the console command. * - * @return int|null + * @return void */ public function handle() { - $hours = $this->option('hours'); + $count = 0; - $before = Carbon::now()->subHours($hours...
true
Other
laravel
framework
910fad8cb2934f2c231f806b8b398ba95ef38dfe.json
Remove interface method and add import
src/Illuminate/Support/Testing/Fakes/BatchRepositoryFake.php
@@ -4,6 +4,7 @@ use Carbon\CarbonImmutable; use Closure; +use DateTimeInterface; use Illuminate\Bus\Batch; use Illuminate\Bus\BatchRepository; use Illuminate\Bus\PendingBatch; @@ -138,10 +139,10 @@ public function transaction(Closure $callback) /** * Prune all of the entries older than the given date....
true
Other
laravel
framework
3b87b6f972de4445bed7458c810671f2bbc861cb.json
Add command to clean batches table
src/Illuminate/Bus/BatchRepository.php
@@ -89,4 +89,12 @@ public function delete(string $batchId); * @return mixed */ public function transaction(Closure $callback); + + /** + * Prune all of the entries older than the given date. + * + * @param \DateTimeInterface $before + * @return int + */ + public function pru...
true
Other
laravel
framework
3b87b6f972de4445bed7458c810671f2bbc861cb.json
Add command to clean batches table
src/Illuminate/Bus/DatabaseBatchRepository.php
@@ -243,6 +243,28 @@ public function transaction(Closure $callback) }); } + /** + * Prune all of the entries older than the given date. + * + * @param \DateTimeInterface $before + * @return int + */ + public function prune(\DateTimeInterface $before) + { + $query = ...
true
Other
laravel
framework
3b87b6f972de4445bed7458c810671f2bbc861cb.json
Add command to clean batches table
src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php
@@ -64,6 +64,7 @@ use Illuminate\Queue\Console\ClearCommand as QueueClearCommand; use Illuminate\Queue\Console\FailedTableCommand; use Illuminate\Queue\Console\FlushFailedCommand as FlushFailedQueueCommand; +use Illuminate\Queue\Console\FlushBatchCommand as FlushBatchQueueCommand; use Illuminate\Queue\Console\Forge...
true
Other
laravel
framework
3b87b6f972de4445bed7458c810671f2bbc861cb.json
Add command to clean batches table
src/Illuminate/Queue/Console/FlushBatchCommand.php
@@ -0,0 +1,40 @@ +<?php + +namespace Illuminate\Queue\Console; + +use Carbon\Carbon; +use Illuminate\Bus\BatchRepository; +use Illuminate\Console\Command; + +class FlushBatchCommand extends Command +{ + /** + * The console command signature. + * + * @var string + */ + protected $signature = 'queue...
true
Other
laravel
framework
3b87b6f972de4445bed7458c810671f2bbc861cb.json
Add command to clean batches table
src/Illuminate/Support/Testing/Fakes/BatchRepositoryFake.php
@@ -8,6 +8,7 @@ use Illuminate\Bus\BatchRepository; use Illuminate\Bus\PendingBatch; use Illuminate\Bus\UpdatedBatchJobCounts; +use Illuminate\Database\Query\Builder; use Illuminate\Support\Facades\Facade; use Illuminate\Support\Str; @@ -134,4 +135,15 @@ public function transaction(Closure $callback) { ...
true
Other
laravel
framework
77620822afc96a9fd7c5ca147de2f16666e26ecd.json
fix doc blocks (#35690)
src/Illuminate/Mail/Mailer.php
@@ -371,7 +371,7 @@ protected function setGlobalToAndRemoveCcAndBcc($message) /** * Queue a new e-mail message for sending. * - * @param \Illuminate\Contracts\Mail\Mailable $view + * @param \Illuminate\Contracts\Mail\Mailable|string|array $view * @param string|null $queue * @r...
true
Other
laravel
framework
77620822afc96a9fd7c5ca147de2f16666e26ecd.json
fix doc blocks (#35690)
src/Illuminate/Mail/PendingMail.php
@@ -114,7 +114,6 @@ public function bcc($users) * Send a new mailable message instance. * * @param \Illuminate\Contracts\Mail\Mailable $mailable - * * @return mixed */ public function send(MailableContract $mailable)
true
Other
laravel
framework
77620822afc96a9fd7c5ca147de2f16666e26ecd.json
fix doc blocks (#35690)
src/Illuminate/Notifications/NotificationSender.php
@@ -171,7 +171,7 @@ protected function shouldSendNotification($notifiable, $notification, $channel) * Queue the given notification instances. * * @param mixed $notifiables - * @param array[\Illuminate\Notifications\Channels\Notification] $notification + * @param \Illuminate\Notifications\...
true
Other
laravel
framework
77620822afc96a9fd7c5ca147de2f16666e26ecd.json
fix doc blocks (#35690)
src/Illuminate/Support/Testing/Fakes/MailFake.php
@@ -306,7 +306,7 @@ public function send($view, array $data = [], $callback = null) /** * Queue a new e-mail message for sending. * - * @param string|array $view + * @param \Illuminate\Contracts\Mail\Mailable|string|array $view * @param string|null $queue * @return mixed ...
true
Other
laravel
framework
77620822afc96a9fd7c5ca147de2f16666e26ecd.json
fix doc blocks (#35690)
src/Illuminate/Support/Testing/Fakes/PendingMailFake.php
@@ -21,7 +21,7 @@ public function __construct($mailer) /** * Send a new mailable message instance. * - * @param \Illuminate\Contracts\Mail\Mailable $mailable; + * @param \Illuminate\Contracts\Mail\Mailable $mailable * @return mixed */ public function send(Mailable $mailable...
true
Other
laravel
framework
77620822afc96a9fd7c5ca147de2f16666e26ecd.json
fix doc blocks (#35690)
src/Illuminate/Validation/Rules/Dimensions.php
@@ -14,7 +14,7 @@ class Dimensions /** * Create a new dimensions rule instance. * - * @param array $constraints; + * @param array $constraints * @return void */ public function __construct(array $constraints = [])
true
Other
laravel
framework
f0430832ec658633882d21e5771bb5a0ebc3239d.json
fix doc block
src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php
@@ -42,7 +42,7 @@ public function __construct(Application $app) * @return mixed * * @throws \Symfony\Component\HttpKernel\Exception\HttpException - * @throws \Illuminate\Foundation\Http\Exceptions\MaintenanceModeException + * @throws \Symfony\Component\HttpKernel\Exception\HttpException ...
false
Other
laravel
framework
d6d9b9029eed0be0a2b973c0e5cc0cac3a769d25.json
update google fonts (#35615)
src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub
@@ -13,8 +13,8 @@ <script src="{{ asset('js/app.js') }}" defer></script> <!-- Fonts --> - <link rel="dns-prefetch" href="//fonts.gstatic.com"> - <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet"> + <link rel="preconnect" href="https://fonts.gstatic.com"> + <link href="...
true
Other
laravel
framework
d6d9b9029eed0be0a2b973c0e5cc0cac3a769d25.json
update google fonts (#35615)
src/Illuminate/Foundation/Exceptions/views/illustrated-layout.blade.php
@@ -7,8 +7,8 @@ <title>@yield('title')</title> <!-- Fonts --> - <link rel="dns-prefetch" href="//fonts.gstatic.com"> - <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet"> + <link rel="preconnect" href="https://fonts.gstatic.com"> + <link href="ht...
true
Other
laravel
framework
d6d9b9029eed0be0a2b973c0e5cc0cac3a769d25.json
update google fonts (#35615)
src/Illuminate/Foundation/Exceptions/views/layout.blade.php
@@ -7,8 +7,8 @@ <title>@yield('title')</title> <!-- Fonts --> - <link rel="dns-prefetch" href="//fonts.gstatic.com"> - <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css"> + <link rel="preconnect" href="https://fonts.gstatic.com"> + ...
true
Other
laravel
framework
d6d9b9029eed0be0a2b973c0e5cc0cac3a769d25.json
update google fonts (#35615)
src/Illuminate/Foundation/Exceptions/views/minimal.blade.php
@@ -7,16 +7,16 @@ <title>@yield('title')</title> <!-- Fonts --> - <link rel="dns-prefetch" href="//fonts.gstatic.com"> - <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet"> + <link rel="preconnect" href="https://fonts.gstatic.com"> + <link href="...
true
Other
laravel
framework
94171f04f1aaa79bdcf1f0f9e076f276cd46608d.json
Update phpunit.xml.dist (#35605)
phpunit.xml.dist
@@ -17,14 +17,6 @@ <directory suffix="Test.php">./tests</directory> </testsuite> </testsuites> - <coverage processUncoveredFiles="true"> - <include> - <directory suffix=".php">./src</directory> - </include> - <exclude> - <directory suffix=".blade....
false
Other
laravel
framework
97d41b065f28b2777f99c06f5f94f8fe65500863.json
add default names
src/Illuminate/Console/Scheduling/ScheduleListCommand.php
@@ -15,6 +15,15 @@ class ScheduleListCommand extends Command */ protected $signature = 'schedule:list {--timezone= : The timezone that times should be displayed in}'; + /** + * The name of the console command. + * + * This name is used to identify the command during lazy loading. + * + ...
true
Other
laravel
framework
97d41b065f28b2777f99c06f5f94f8fe65500863.json
add default names
src/Illuminate/Console/Scheduling/ScheduleTestCommand.php
@@ -13,6 +13,15 @@ class ScheduleTestCommand extends Command */ protected $name = 'schedule:test'; + /** + * The name of the console command. + * + * This name is used to identify the command during lazy loading. + * + * @var string|null + */ + protected static $defaultName = ...
true
Other
laravel
framework
a3f8589bbd01e85e429c7c38d8b2b7bc9cc7dc8d.json
Apply fixes from StyleCI (#35584)
src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php
@@ -931,7 +931,7 @@ protected function registerScheduleListCommand() { $this->app->singleton(ScheduleListCommand::class); } - + /** * Register the command. *
false
Other
laravel
framework
97d783449c5330b1e5fb9104f6073869ad3079c1.json
add timezone option
src/Illuminate/Console/Scheduling/ScheduleListCommand.php
@@ -13,7 +13,7 @@ class ScheduleListCommand extends Command * * @var string */ - protected $name = 'schedule:list'; + protected $signature = 'schedule:list {--timezone= : The timezone that times should be displayed in}'; /** * The console command description. @@ -36,16 +36,16 @@ pub...
false
Other
laravel
framework
34060336c9cb9b0cb5940cbac791dcd82bc9a4f5.json
register the ScheduleListCommand
src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php
@@ -7,6 +7,7 @@ use Illuminate\Cache\Console\ClearCommand as CacheClearCommand; use Illuminate\Cache\Console\ForgetCommand as CacheForgetCommand; use Illuminate\Console\Scheduling\ScheduleFinishCommand; +use Illuminate\Console\Scheduling\ScheduleListCommand; use Illuminate\Console\Scheduling\ScheduleRunCommand; us...
false
Other
laravel
framework
64e28ba7dc83291ade23da5c337ab3ddda105bdb.json
Apply fixes from StyleCI (#35578)
tests/Integration/Queue/JobEncryptionTest.php
@@ -3,8 +3,8 @@ namespace Illuminate\Tests\Integration\Queue; use Illuminate\Bus\Queueable; -use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Contracts\Queue\ShouldBeEncrypted; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Database\Schema\Blueprint; use Illuminate\Foundation\Bus\Dispatcha...
false
Other
laravel
framework
7128e69832141b86271c65c27bc4f1c0e99af443.json
Add tests to cover any added or modified code
tests/Database/DatabasePostgresBuilderTest.php
@@ -0,0 +1,209 @@ +<?php + +namespace Illuminate\Tests\Database; + +use Illuminate\Database\Connection; +use Illuminate\Database\Query\Processors\PostgresProcessor; +use Illuminate\Database\Schema\Grammars\PostgresGrammar; +use Illuminate\Database\Schema\PostgresBuilder; +use Mockery as m; +use PHPUnit\Framework\TestCa...
true
Other
laravel
framework
7128e69832141b86271c65c27bc4f1c0e99af443.json
Add tests to cover any added or modified code
tests/Database/DatabasePostgresSchemaGrammarTest.php
@@ -998,6 +998,20 @@ public function testDropAllTypesEscapesTableNames() $this->assertSame('drop type "alpha","beta","gamma" cascade', $statement); } + public function testCompileTableExists() + { + $statement = $this->getGrammar()->compileTableExists(); + + $this->assertSame('select...
true
Other
laravel
framework
f185be865a02d147cb2793b419b61786e913a8b4.json
Apply fixes from StyleCI (#35550)
src/Illuminate/Queue/Queue.php
@@ -5,7 +5,6 @@ use Closure; use DateTimeInterface; use Illuminate\Container\Container; -use Illuminate\Database\DatabaseTransactionManager; use Illuminate\Support\Arr; use Illuminate\Support\InteractsWithTime; use Illuminate\Support\Str;
false
Other
laravel
framework
198eea4c6cf86f2073ea9366b1bf4453aa7979c2.json
Apply fixes from StyleCI (#35528)
src/Illuminate/Http/Client/Factory.php
@@ -235,7 +235,7 @@ public function assertSentInOrder($callbacks) $this->assertSentCount(count($callbacks)); foreach ($callbacks as $index => $url) { - $callback = is_callable($url) ? $url : function($request) use ($url) { + $callback = is_callable($url) ? $url : function ($req...
true
Other
laravel
framework
198eea4c6cf86f2073ea9366b1bf4453aa7979c2.json
Apply fixes from StyleCI (#35528)
tests/Http/HttpClientTest.php
@@ -665,29 +665,31 @@ public function testWrongNumberOfRequestsThrowAssertionFailed() $this->factory->assertSentInOrder($exampleUrls); } - public function testCanAssertAgainstOrderOfHttpRequestsWithCallables() { + public function testCanAssertAgainstOrderOfHttpRequestsWithCallables() + { ...
true
Other
laravel
framework
af6ba0adc9316531b5d2db1a610a6db3f27405e4.json
Add ability to assert against callables
src/Illuminate/Http/Client/Factory.php
@@ -273,7 +273,16 @@ public function assertSentInOrder($requestSequence) $this->assertSentCount(count($requestSequence)); foreach ($requestSequence as $orderPosition => $url) { - PHPUnit::assertEquals($url, $this->recorded[$orderPosition][0]->url()); + + $callback = $url; + ...
true
Other
laravel
framework
af6ba0adc9316531b5d2db1a610a6db3f27405e4.json
Add ability to assert against callables
tests/Http/HttpClientTest.php
@@ -611,7 +611,7 @@ public function testSinkWhenStubbedByPath() $this->assertSame(json_encode(['page' => 'foo']), stream_get_contents($resource)); } - public function testCanAssertAgainstOrderOfHttpRequests() + public function testCanAssertAgainstOrderOfHttpRequestsWithUrlStrings() { ...
true