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
ec966c21c4062c8ded5d8add4db91cab61a591dc.json
add helper for on delete cascade
src/Illuminate/Database/Schema/ForeignKeyDefinition.php
@@ -14,5 +14,13 @@ */ class ForeignKeyDefinition extends Fluent { - // + /** + * Indicate that deletes should cascade. + * + * @return $this + */ + public function cascadeOnDelete() + { + return $this->onDelete('cascade'); + } }
true
Other
laravel
framework
ec966c21c4062c8ded5d8add4db91cab61a591dc.json
add helper for on delete cascade
tests/Database/DatabaseMySqlSchemaGrammarTest.php
@@ -371,6 +371,14 @@ public function testAddingForeignKey() $this->assertCount(1, $statements); $this->assertSame('alter table `users` add constraint `users_foo_id_foreign` foreign key (`foo_id`) references `orders` (`id`)', $statements[0]); + + + $blueprint = new Blueprint('users'); + ...
true
Other
laravel
framework
ea6cedb379a07a9dee713b269d05fc7fa6fda0d7.json
Apply fixes from StyleCI (#30486)
src/Illuminate/Database/Schema/ForeignIdColumnDefinition.php
@@ -3,7 +3,6 @@ namespace Illuminate\Database\Schema; use Illuminate\Support\Str; -use Illuminate\Database\Schema\Blueprint; class ForeignIdColumnDefinition extends ColumnDefinition {
false
Other
laravel
framework
70cb9f346302031ddba2bb6c33b9b2ac6f0fb074.json
Add LazyCollection@remember method (#30443)
src/Illuminate/Support/LazyCollection.php
@@ -109,6 +109,44 @@ public function eager() return new static($this->all()); } + /** + * Cache values as they're enumerated. + * + * @return static + */ + public function remember() + { + $iterator = $this->getIterator(); + + $iteratorIndex = 0; + + $cache ...
true
Other
laravel
framework
70cb9f346302031ddba2bb6c33b9b2ac6f0fb074.json
Add LazyCollection@remember method (#30443)
tests/Support/SupportLazyCollectionIsLazyTest.php
@@ -763,6 +763,27 @@ public function testRejectIsLazy() }); } + public function testRememberIsLazy() + { + $this->assertDoesNotEnumerate(function ($collection) { + $collection->remember(); + }); + + $this->assertEnumeratesOnce(function ($collection) { + $...
true
Other
laravel
framework
70cb9f346302031ddba2bb6c33b9b2ac6f0fb074.json
Add LazyCollection@remember method (#30443)
tests/Support/SupportLazyCollectionTest.php
@@ -80,6 +80,80 @@ public function testEager() $this->assertSame([1, 2, 3, 4, 5], $data->all()); } + public function testRemember() + { + $source = [1, 2, 3, 4]; + + $collection = LazyCollection::make(function () use (&$source) { + yield from $source; + })->remember...
true
Other
laravel
framework
e9632af218c3e3d263526f4a19bcf6af4987a7fb.json
Fix $groups param type (#30465)
src/Illuminate/Database/Query/Builder.php
@@ -1668,7 +1668,7 @@ protected function addDynamic($segment, $connector, $parameters, $index) /** * Add a "group by" clause to the query. * - * @param array ...$groups + * @param array|string ...$groups * @return $this */ public function groupBy(...$groups)
false
Other
laravel
framework
692b2917099b3ff414097245dc8de04dd5543f2e.json
Apply fixes from StyleCI (#30448)
tests/Routing/RoutingUrlGeneratorTest.php
@@ -629,7 +629,8 @@ public function testSignedRelativeUrl() $this->assertFalse($url->hasValidSignature($request, false)); } - public function testSignedUrlParameterCannotBeNamedSignature() { + public function testSignedUrlParameterCannotBeNamedSignature() + { $url = new UrlGenerator( ...
false
Other
laravel
framework
50e60dc6a0239a38d533efc00efe8e16de8605c9.json
Apply fixes from StyleCI (#30413)
tests/Database/DatabaseEloquentModelTest.php
@@ -1981,7 +1981,7 @@ public function testGetOriginalCastsAttributes() 'foo' => 'bar2', ]; $model->collectionAttribute = collect([ - 'foo' => 'bar2' + 'foo' => 'bar2', ]); $this->assertIsInt($model->getOriginal('intAttribute'));
false
Other
laravel
framework
b85f8cb3ecd50c2dc846bd86cc721932355503d0.json
Fix bunch of docblocks (#30406)
src/Illuminate/Foundation/helpers.php
@@ -27,9 +27,9 @@ /** * Throw an HttpException with the given data. * - * @param \Symfony\Component\HttpFoundation\Response|\Illuminate\Contracts\Support\Responsable|int $code + * @param \Symfony\Component\HttpFoundation\Response|\Illuminate\Contracts\Support\Responsable|int $code ...
false
Other
laravel
framework
2227c446fcecb365346a08de203c1997de96a931.json
Add support for "where value" subqueries
src/Illuminate/Database/Eloquent/Builder.php
@@ -222,7 +222,7 @@ public function whereKeyNot($id) */ public function where($column, $operator = null, $value = null, $boolean = 'and') { - if ($column instanceof Closure) { + if ($column instanceof Closure && is_null($operator)) { $column($query = $this->model->newQueryWith...
true
Other
laravel
framework
2227c446fcecb365346a08de203c1997de96a931.json
Add support for "where value" subqueries
src/Illuminate/Database/Query/Builder.php
@@ -651,10 +651,20 @@ public function where($column, $operator = null, $value = null, $boolean = 'and' // If the columns is actually a Closure instance, we will assume the developer // wants to begin a nested where statement which is wrapped in parenthesis. // We'll add that Closure to the qu...
true
Other
laravel
framework
9e4dfccb19d4a181dfbc3d838c2ea52851124cb5.json
Apply fixes from StyleCI (#30401)
src/Illuminate/Routing/Router.php
@@ -1165,7 +1165,7 @@ public function auth(array $options = []) } // Password Confirmation Routes... - if ($options['confirm'] ?? + if ($options['confirm'] ?? class_exists($this->prependGroupNamespace('Auth\ConfirmPasswordController'))) { $this->confirmPasswo...
false
Other
laravel
framework
51e0b1dd8c5a5082f0a955a128abcdbedf35c591.json
Apply fixes from StyleCI (#30400)
src/Illuminate/Auth/Middleware/RequirePassword.php
@@ -48,7 +48,7 @@ public function handle($request, Closure $next, $redirectToRoute = null) if ($this->shouldConfirmPassword($request)) { if ($request->expectsJson()) { return $this->responseFactory->json([ - 'message' => 'Password confirmation required.' + ...
false
Other
laravel
framework
93eb836c4d0b5d03cc789de98acc6e03aa4aca25.json
Handle ajax requests in RequirePassword middleware
src/Illuminate/Auth/Middleware/RequirePassword.php
@@ -46,6 +46,10 @@ public function __construct(ResponseFactory $responseFactory, UrlGenerator $urlG public function handle($request, Closure $next, $redirectToRoute = null) { if ($this->shouldConfirmPassword($request)) { + if ($request->expectsJson()) { + abort(423, 'Passwor...
false
Other
laravel
framework
55d28abb7568f5625ea63063d55847e8b5f95ebe.json
Move comment to match logout method (#30372)
src/Illuminate/Auth/SessionGuard.php
@@ -540,11 +540,11 @@ public function logoutCurrentDevice() { $user = $this->user(); + $this->clearUserDataFromStorage(); + // If we have an event dispatcher instance, we can fire off the logout event // so any further processing can be done. This allows the developer to be ...
false
Other
laravel
framework
ba6e666dc7c5ed84213472387fe0851f625d131a.json
Improve function `retry()` (#30356) If given a value less than 1 for `$times`, function could be stuck in an infinite loop.
src/Illuminate/Support/helpers.php
@@ -384,20 +384,18 @@ function preg_replace_array($pattern, array $replacements, $subject) function retry($times, callable $callback, $sleep = 0, $when = null) { $attempts = 0; - $times--; beginning: $attempts++; + $times--; try { return $call...
false
Other
laravel
framework
6d06919511fa34ffca24e03cd494db4d63ee2575.json
Remove @throws docblock tags
src/Illuminate/Database/Query/Builder.php
@@ -311,8 +311,6 @@ public function fromRaw($expression, $bindings = []) * * @param \Closure|\Illuminate\Database\Query\Builder|string $query * @return array - * - * @throws \InvalidArgumentException */ protected function createSub($query) { @@ -540,8 +538,6 @@ public function...
false
Other
laravel
framework
ab5ee8aa5b8d1fb9e2d1acd7bf7a6962e7db2581.json
Add more context about invalid subqueries The valid values for performing subqueries are query builder instances, closures and strings. If the value is not one of the above, an InvalidArgumentException was thrown without any message. I've added a sensible message, and also some `@throws` docblock tags to the affected...
src/Illuminate/Database/Query/Builder.php
@@ -311,6 +311,8 @@ public function fromRaw($expression, $bindings = []) * * @param \Closure|\Illuminate\Database\Query\Builder|string $query * @return array + * + * @throws \InvalidArgumentException */ protected function createSub($query) { @@ -331,6 +333,8 @@ protected funct...
true
Other
laravel
framework
ab5ee8aa5b8d1fb9e2d1acd7bf7a6962e7db2581.json
Add more context about invalid subqueries The valid values for performing subqueries are query builder instances, closures and strings. If the value is not one of the above, an InvalidArgumentException was thrown without any message. I've added a sensible message, and also some `@throws` docblock tags to the affected...
tests/Database/DatabaseQueryBuilderTest.php
@@ -1658,6 +1658,10 @@ public function testJoinSub() $expected .= 'inner join (select * from "contacts" where "name" = ?) as "sub2" on "users"."id" = "sub2"."user_id"'; $this->assertEquals($expected, $builder->toSql()); $this->assertEquals(['foo', 1, 'bar'], $builder->getRawBindings()['join']...
true
Other
laravel
framework
34179347ef23507f0a7ab1f6dcab371dc4b9d641.json
Add autocomplete support for FakeQueue (#30300) Add auto completion for the IDE. Currently the IDE does not know which assert-methods exist for Queue-Facade. The Mail-Facade and other Facades already have this included: See https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/Facades/Mail.php#L15-L2...
src/Illuminate/Support/Facades/Queue.php
@@ -15,6 +15,11 @@ * @method static \Illuminate\Contracts\Queue\Job|null pop(string $queue = null) * @method static string getConnectionName() * @method static \Illuminate\Contracts\Queue\Queue setConnectionName(string $name) + * @method static void assertNothingPushed() + * @method static void assertNotPushed(st...
false
Other
laravel
framework
2afe7cbeaa21566f7bb62da0fc47e00851513fe1.json
Apply fixes from StyleCI (#30278)
src/Illuminate/Mail/resources/views/html/themes/default.css
@@ -3,7 +3,8 @@ body, body *:not(html):not(style):not(br):not(tr):not(code) { box-sizing: border-box; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; + font-family: -apple-system, BlinkMacSystemFon...
false
Other
laravel
framework
74252f30191728d650ea9515fab22dbf0863b042.json
modernize mail styling
src/Illuminate/Mail/resources/views/html/header.blade.php
@@ -1,7 +1,13 @@ <tr> <td class="header"> - <a href="{{ $url }}"> - {{ $slot }} + <a href="{{ $url }}" style="display: inline-block;"> + @if (trim($slot) === 'Laravel') + <svg class="logo" viewBox="0 0 316 316" xmlns="http://www.w3.org/2000/svg"> + ...
true
Other
laravel
framework
74252f30191728d650ea9515fab22dbf0863b042.json
modernize mail styling
src/Illuminate/Mail/resources/views/html/promotion.blade.php
@@ -1,7 +0,0 @@ -<table class="promotion" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation"> - <tr> - <td align="center"> - {{ Illuminate\Mail\Markdown::parse($slot) }} - </td> - </tr> -</table>
true
Other
laravel
framework
74252f30191728d650ea9515fab22dbf0863b042.json
modernize mail styling
src/Illuminate/Mail/resources/views/html/promotion/button.blade.php
@@ -1,13 +0,0 @@ -<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation"> - <tr> - <td align="center"> - <table border="0" cellpadding="0" cellspacing="0" role="presentation"> - <tr> - <td> - <a href="{{ $url }}" c...
true
Other
laravel
framework
74252f30191728d650ea9515fab22dbf0863b042.json
modernize mail styling
src/Illuminate/Mail/resources/views/html/themes/default.css
@@ -2,25 +2,20 @@ body, body *:not(html):not(style):not(br):not(tr):not(code) { - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, - 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; box-sizing: border-box; + font-family: -apple-system, Blin...
true
Other
laravel
framework
74252f30191728d650ea9515fab22dbf0863b042.json
modernize mail styling
src/Illuminate/Mail/resources/views/text/promotion.blade.php
@@ -1 +0,0 @@ -{{ $slot }}
true
Other
laravel
framework
74252f30191728d650ea9515fab22dbf0863b042.json
modernize mail styling
src/Illuminate/Mail/resources/views/text/promotion/button.blade.php
@@ -1 +0,0 @@ -[{{ $slot }}]({{ $url }})
true
Other
laravel
framework
4c80f73c6e6793e7de55eb50009fab034046161d.json
Apply fixes from StyleCI (#30274)
src/Illuminate/Http/Request.php
@@ -700,7 +700,7 @@ public function __get($key) } /** - * {@inheritDoc} + * {@inheritdoc} */ public function __clone() {
false
Other
laravel
framework
cddab3c603581186bf2512751fec69fd7518424e.json
Remove transliteration of 'ия' in tests (#30269) Since voku/portable-ascii 1.3.0: 'ия' is transliterated correctly to 'iya' when transliterating 'и' and 'я' on their own. Furthermore transliterated 'ia' would be pronounced 'иа'. https://github.com/voku/portable-ascii/commit/62f9521b77693bb7a7be8fe855e86fa347e75f70...
tests/Support/SupportStrTest.php
@@ -42,7 +42,7 @@ public function testStringAscii() public function testStringAsciiWithSpecificLocale() { - $this->assertSame('h H sht Sht a A ia yo', Str::ascii('х Х щ Щ ъ Ъ ия йо', 'bg')); + $this->assertSame('h H sht Sht a A ia yo', Str::ascii('х Х щ Щ ъ Ъ иа йо', 'bg')); $this->as...
false
Other
laravel
framework
bba47876777b036d76811720769c681d6102e067.json
update docblock (#30265)
src/Illuminate/Auth/Middleware/Authenticate.php
@@ -87,7 +87,7 @@ protected function unauthenticated($request, array $guards) * Get the path the user should be redirected to when they are not authenticated. * * @param \Illuminate\Http\Request $request - * @return string + * @return string|null */ protected function redirectTo($...
false
Other
laravel
framework
4aed56ffdae629b54d393b8de6be30d386e7be36.json
Simplify gatherKeysByType method (#30201)
src/Illuminate/Database/Eloquent/Relations/MorphTo.php
@@ -138,9 +138,7 @@ protected function getResultsByType($type) */ protected function gatherKeysByType($type) { - return collect($this->dictionary[$type])->map(function ($models) { - return head($models)->{$this->foreignKey}; - })->values()->unique()->all(); + return array...
false
Other
laravel
framework
850dffca81baafdbab209f0ce961cf07f8172a19.json
Add partialMock shorthand (#30202) This is similar to `mock()` but it makes a partial mock. Method name could also be changed to `mockPartial()` So instead of ```PHP $this->instance(Abstract::class, Mockery::mock(Abstract::class, function ($mock) { $mock->shouldReceive('call')->once(); })->makePartial()); ...
src/Illuminate/Foundation/Testing/Concerns/InteractsWithContainer.php
@@ -45,6 +45,18 @@ protected function mock($abstract, Closure $mock = null) return $this->instance($abstract, Mockery::mock(...array_filter(func_get_args()))); } + /** + * Mock a partial instance of an object in the container. + * + * @param string $abstract + * @param \Closure|nul...
false
Other
laravel
framework
2bd0ef74d6962daea31045cb6f15aecb1fe2d19e.json
add multipolygonz type for postgreSQL (#30173)
src/Illuminate/Database/Schema/Blueprint.php
@@ -1180,6 +1180,17 @@ public function multiPolygon($column) return $this->addColumn('multipolygon', $column); } + /** + * Create a new multipolygon column on the table. + * + * @param string $column + * @return \Illuminate\Database\Schema\ColumnDefinition + */ + public funct...
true
Other
laravel
framework
2bd0ef74d6962daea31045cb6f15aecb1fe2d19e.json
add multipolygonz type for postgreSQL (#30173)
src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php
@@ -868,6 +868,17 @@ protected function typeMultiPolygon(Fluent $column) return $this->formatPostGisType('multipolygon'); } + /** + * Create the column definition for a spatial MultiPolygonZ type. + * + * @param \Illuminate\Support\Fluent $column + * @return string + */ + pro...
true
Other
laravel
framework
e8f7d450014bf7fbb98e25c991973c585b884f32.json
add test for sorted middlewares (#30166)
tests/Routing/RoutingSortedMiddlewareTest.php
@@ -44,10 +44,24 @@ public function testMiddlewareCanBeSortedByPriority() $this->assertEquals([], (new SortedMiddleware(['First'], []))->all()); $this->assertEquals(['First'], (new SortedMiddleware(['First'], ['First']))->all()); $this->assertEquals(['First', 'Second'], (new SortedMiddleware(...
false
Other
laravel
framework
370ee34bef86ab140996abed98ce5cbfc952051b.json
Add retryUntil to SendQueueNotifications (#30141)
src/Illuminate/Notifications/SendQueuedNotifications.php
@@ -111,6 +111,20 @@ public function retryAfter() return $this->notification->retryAfter ?? $this->notification->retryAfter(); } + /** + * Get the expiration for the notification. + * + * @return mixed + */ + public function retryUntil() + { + if (! method_exists($this->n...
false
Other
laravel
framework
d50929802e98a140018d42f2115c8d4ce8db6ced.json
Fix callback return for DurationLimiter (#30143) The callback return value wasn't properly cascades back as a result. Fixes https://github.com/laravel/framework/issues/28729
src/Illuminate/Redis/Limiters/DurationLimiter.php
@@ -87,7 +87,7 @@ public function block($timeout, $callback = null) } if (is_callable($callback)) { - $callback(); + return $callback(); } return true;
true
Other
laravel
framework
d50929802e98a140018d42f2115c8d4ce8db6ced.json
Fix callback return for DurationLimiter (#30143) The callback return value wasn't properly cascades back as a result. Fixes https://github.com/laravel/framework/issues/28729
tests/Redis/DurationLimiterTest.php
@@ -83,6 +83,17 @@ public function testItFailsImmediatelyOrRetriesForAWhileBasedOnAGivenTimeout() $this->assertEquals([1, 3], $store); } + public function testItReturnsTheCallbackResult() + { + $limiter = new DurationLimiter($this->redis(), 'key', 1, 1); + + $result = $limiter->block...
true
Other
laravel
framework
073f9a976e836109c7f2b704d9ac3481f933909a.json
Add methods for sending cookies with test requests
src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php
@@ -11,6 +11,13 @@ trait MakesHttpRequests { + /** + * Additional cookies for the request. + * + * @var array + */ + protected $defaultCookies = []; + /** * Additional headers for the request. * @@ -32,6 +39,13 @@ trait MakesHttpRequests */ protected $followRedirect...
true
Other
laravel
framework
073f9a976e836109c7f2b704d9ac3481f933909a.json
Add methods for sending cookies with test requests
tests/Foundation/Testing/Concerns/MakesHttpRequestsTest.php
@@ -52,6 +52,27 @@ public function testWithoutAndWithMiddlewareWithParameter() $this->app->make(MyMiddleware::class)->handle('foo', $next) ); } + + public function testWithCookieSetCookie() + { + $this->withCookie('foo', 'bar'); + + $this->assertCount(1, $this->defaultCook...
true
Other
laravel
framework
4542387f4b0ac77726ec970b49c1102509df79e9.json
Add methods for sending cookies with test requests
src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php
@@ -11,6 +11,13 @@ trait MakesHttpRequests { + /** + * Additional cookies for the request. + * + * @var array + */ + protected $defaultCookies = []; + /** * Additional headers for the request. * @@ -32,6 +39,13 @@ trait MakesHttpRequests */ protected $followRedirect...
true
Other
laravel
framework
4542387f4b0ac77726ec970b49c1102509df79e9.json
Add methods for sending cookies with test requests
tests/Foundation/Testing/Concerns/MakesHttpRequestsTest.php
@@ -52,6 +52,27 @@ public function testWithoutAndWithMiddlewareWithParameter() $this->app->make(MyMiddleware::class)->handle('foo', $next) ); } + + public function testWithCookieSetCookie() + { + $this->withCookie('foo', 'bar'); + + $this->assertCount(1, $this->defaultCook...
true
Other
laravel
framework
b648c2e8377023c8fbe89c8068fe20364dc580a3.json
add runtime for seeders
src/Illuminate/Database/Seeder.php
@@ -36,12 +36,21 @@ public function call($class, $silent = false) foreach ($classes as $class) { $seeder = $this->resolve($class); + $name = get_class($seeder); if ($silent === false && isset($this->command)) { - $this->command->getOutput()->writeln('<inf...
true
Other
laravel
framework
b648c2e8377023c8fbe89c8068fe20364dc580a3.json
add runtime for seeders
tests/Database/DatabaseSeederTest.php
@@ -38,14 +38,16 @@ public function testCallResolveTheClassAndCallsRun() $seeder = new TestSeeder; $seeder->setContainer($container = m::mock(Container::class)); $output = m::mock(OutputInterface::class); - $output->shouldReceive('writeln')->once()->andReturn('foo'); + $output->...
true
Other
laravel
framework
3ec56b8810bc40016252977c69ba27057dcecf7d.json
Update param doc for whereNotNull() (#30055)
src/Illuminate/Database/Query/Builder.php
@@ -1026,13 +1026,13 @@ public function orWhereNull($column) /** * Add a "where not null" clause to the query. * - * @param string $column + * @param string|array $columns * @param string $boolean * @return \Illuminate\Database\Query\Builder|static */ - public functio...
false
Other
laravel
framework
20b013220fc8346b73d403af5034b6ce1ee29c79.json
Fix a typo
src/Illuminate/Foundation/Auth/ThrottlesLogins.php
@@ -55,7 +55,7 @@ protected function sendLockoutResponse(Request $request) throw ValidationException::withMessages([ $this->username() => [Lang::get('auth.throttle', [ 'seconds' => $seconds, - 'minutes' => ceil($seconds * 60), + 'minutes' => ceil($sec...
false
Other
laravel
framework
26471a48ed27178151fe3ccf263d9e24661dee52.json
Apply fixes from StyleCI (#30013)
src/Illuminate/Mail/PendingMail.php
@@ -181,6 +181,6 @@ protected function fill(MailableContract $mailable) if ($this->locale) { $mailable->locale($this->locale); } - }); + }); } }
false
Other
laravel
framework
6fc9fb08f3f1f4c272a8899621adec2af90c59a9.json
Apply fixes from StyleCI (#29986)
src/Illuminate/Console/Scheduling/ScheduleRunCommand.php
@@ -3,10 +3,10 @@ namespace Illuminate\Console\Scheduling; use Illuminate\Console\Command; -use Illuminate\Support\Facades\Date; -use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Console\Events\ScheduledTaskFinished; use Illuminate\Console\Events\ScheduledTaskStarting; +use Illuminate\Contracts\Events\D...
false
Other
laravel
framework
b59fe219697e8ea4690d71ebf94a33dc62873cbe.json
Use value helper where possible (#29959)
src/Illuminate/Console/ConfirmableTrait.php
@@ -2,8 +2,6 @@ namespace Illuminate\Console; -use Closure; - trait ConfirmableTrait { /** @@ -19,7 +17,7 @@ public function confirmToProceed($warning = 'Application In Production!', $callb { $callback = is_null($callback) ? $this->getDefaultConfirmCallback() : $callback; - $shouldCon...
true
Other
laravel
framework
b59fe219697e8ea4690d71ebf94a33dc62873cbe.json
Use value helper where possible (#29959)
src/Illuminate/Container/BoundMethod.php
@@ -75,7 +75,7 @@ protected static function callClass($container, $target, array $parameters = [], protected static function callBoundMethod($container, $callback, $default) { if (! is_array($callback)) { - return $default instanceof Closure ? $default() : $default; + return val...
true
Other
laravel
framework
a66989e565a88ee4c1a72b5acfb44d95161d98d0.json
Apply fixes from StyleCI (#29938)
src/Illuminate/Broadcasting/BroadcastManager.php
@@ -3,13 +3,13 @@ namespace Illuminate\Broadcasting; use Closure; -use Illuminate\Contracts\Foundation\CachesRoutes; use Illuminate\Broadcasting\Broadcasters\LogBroadcaster; use Illuminate\Broadcasting\Broadcasters\NullBroadcaster; use Illuminate\Broadcasting\Broadcasters\PusherBroadcaster; use Illuminate\Broad...
true
Other
laravel
framework
a66989e565a88ee4c1a72b5acfb44d95161d98d0.json
Apply fixes from StyleCI (#29938)
src/Illuminate/Foundation/Application.php
@@ -5,15 +5,15 @@ use Closure; use Illuminate\Container\Container; use Illuminate\Contracts\Foundation\Application as ApplicationContract; +use Illuminate\Contracts\Foundation\CachesConfiguration; +use Illuminate\Contracts\Foundation\CachesRoutes; use Illuminate\Contracts\Http\Kernel as HttpKernelContract; use Ill...
true
Other
laravel
framework
a66989e565a88ee4c1a72b5acfb44d95161d98d0.json
Apply fixes from StyleCI (#29938)
src/Illuminate/Support/ServiceProvider.php
@@ -3,9 +3,9 @@ namespace Illuminate\Support; use Illuminate\Console\Application as Artisan; +use Illuminate\Contracts\Foundation\CachesConfiguration; use Illuminate\Contracts\Foundation\CachesRoutes; use Illuminate\Contracts\Support\DeferrableProvider; -use Illuminate\Contracts\Foundation\CachesConfiguration; ...
true
Other
laravel
framework
a66989e565a88ee4c1a72b5acfb44d95161d98d0.json
Apply fixes from StyleCI (#29938)
src/Illuminate/Validation/Concerns/ValidatesAttributes.php
@@ -3,7 +3,6 @@ namespace Illuminate\Validation\Concerns; use Countable; -use Exception; use DateTime; use DateTimeInterface; use Egulias\EmailValidator\EmailValidator; @@ -12,6 +11,7 @@ use Egulias\EmailValidator\Validation\NoRFCWarningsValidation; use Egulias\EmailValidator\Validation\RFCValidation; use Egu...
true
Other
laravel
framework
19185e438faf8296226f0169b1fa6b606ae4e32a.json
Remove trailing spaces from policy.stubb
src/Illuminate/Foundation/Console/stubs/policy.stub
@@ -9,7 +9,7 @@ use Illuminate\Auth\Access\HandlesAuthorization; class DummyClass { use HandlesAuthorization; - + /** * Determine whether the user can view any DocDummyPluralModel. *
false
Other
laravel
framework
e082ed250f5471a99cf9b990e8f76cfdfa1a217a.json
Remove confusing identation (#29863) The indentation makes it seem like we're only calling 1 method, and have 2 mismatched parenthesis
src/Illuminate/Database/Grammar.php
@@ -83,9 +83,7 @@ protected function wrapAliasedValue($value, $prefixAlias = false) $segments[1] = $this->tablePrefix.$segments[1]; } - return $this->wrap( - $segments[0]).' as '.$this->wrapValue($segments[1] - ); + return $this->wrap($segments[0]).' as '.$this->w...
false
Other
laravel
framework
9be0434ee39fa9a0f393584b88ac3c6ea22972b3.json
Drop support for Monolog v1 (#29866)
composer.json
@@ -24,7 +24,7 @@ "egulias/email-validator": "^2.1.10", "erusev/parsedown": "^1.7", "league/flysystem": "^1.0.8", - "monolog/monolog": "^1.12|^2.0", + "monolog/monolog": "^2.0", "nesbot/carbon": "^2.0", "opis/closure": "^3.1", "psr/container": "^1.0",
true
Other
laravel
framework
9be0434ee39fa9a0f393584b88ac3c6ea22972b3.json
Drop support for Monolog v1 (#29866)
src/Illuminate/Log/composer.json
@@ -17,7 +17,7 @@ "php": "^7.2", "illuminate/contracts": "^7.0", "illuminate/support": "^7.0", - "monolog/monolog": "^1.12|^2.0" + "monolog/monolog": "^2.0" }, "autoload": { "psr-4": {
true
Other
laravel
framework
139726e392ecb4fc7114fb63f968815c1426d3f9.json
Update Gate facade(inspect) (#29849)
src/Illuminate/Support/Facades/Gate.php
@@ -19,6 +19,7 @@ * @method static mixed getPolicyFor(object|string $class) * @method static \Illuminate\Contracts\Auth\Access\Gate forUser(\Illuminate\Contracts\Auth\Authenticatable|mixed $user) * @method static array abilities() + * @method static \Illuminate\Auth\Access\Response inspect(string $ability, array|...
false
Other
laravel
framework
e04a7ffba8b80b934506783a7d0a161dd52eb2ef.json
Apply fixes from StyleCI (#29841)
src/Illuminate/Support/Str.php
@@ -652,19 +652,19 @@ protected static function charsArray() '7' => ['⁷', '₇', '۷', '7'], '8' => ['⁸', '₈', '۸', '8'], '9' => ['⁹', '₉', '۹', '9'], - 'a' => ['à', 'á', 'ả', 'ã', 'ạ', 'ă', 'ắ', 'ằ', 'ẳ', 'ẵ', 'ặ', 'â', 'ấ', 'ầ', 'ẩ', 'ẫ', 'ậ', 'ā', 'ą', 'å', ...
false
Other
laravel
framework
7b39e0825ce3c837e1cae6be6e821ce22cad3efd.json
Apply fixes from StyleCI (#29840)
src/Illuminate/Support/Str.php
@@ -618,19 +618,19 @@ protected static function charsArray() '7' => ['⁷', '₇', '۷', '7'], '8' => ['⁸', '₈', '۸', '8'], '9' => ['⁹', '₉', '۹', '9'], - 'a' => ['à', 'á', 'ả', 'ã', 'ạ', 'ă', 'ắ', 'ằ', 'ẳ', 'ẵ', 'ặ', 'â', 'ấ', 'ầ', 'ẩ', 'ẫ', 'ậ', 'ā', 'ą', 'å', ...
false
Other
laravel
framework
9d86889575f0642dcd013a33ee291205b9452519.json
Update current branch in release.sh
bin/release.sh
@@ -9,7 +9,7 @@ then exit 1 fi -CURRENT_BRANCH="6.x" +CURRENT_BRANCH="master" VERSION=$1 # Always prepend with "v"
false
Other
laravel
framework
aa30f39716cdbad3b3200ea507d346fb570fb1ab.json
Use old date format for Monolog formatter instance If use new date format various formatters and log output might be affected, which may mess with log parsing in some cases.
src/Illuminate/Log/LogManager.php
@@ -42,6 +42,13 @@ class LogManager implements LoggerInterface */ protected $customCreators = []; + /** + * The date format for Monolog formatter instance. + * + * @var string + */ + protected $dateFormat = "Y-m-d H:i:s"; + /** * Create a new Log manager instance. * @...
false
Other
laravel
framework
b90fa4eeb1338b3d871c2b0f54cffff5265a061a.json
Use new UUID Factory (#29809)
src/Illuminate/Support/Str.php
@@ -3,6 +3,7 @@ namespace Illuminate\Support; use Ramsey\Uuid\Uuid; +use Ramsey\Uuid\UuidFactory; use Illuminate\Support\Traits\Macroable; use Ramsey\Uuid\Generator\CombGenerator; use Ramsey\Uuid\Codec\TimestampFirstCombCodec; @@ -588,7 +589,7 @@ public static function orderedUuid() return call_user...
false
Other
laravel
framework
d36c49694aab53b6a664ad57a84664b67bcc8247.json
Remove rackspace from suggestion (#29792)
composer.json
@@ -125,7 +125,6 @@ "laravel/tinker": "Required to use the tinker console command (^1.0).", "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-rackspace":...
false
Other
laravel
framework
e713113b5e90a4e778ae22090e4d4e557aaf7cf7.json
Use testbench 5 (#29785)
composer.json
@@ -83,7 +83,7 @@ "league/flysystem-cached-adapter": "^1.0", "mockery/mockery": "^1.0", "moontoast/math": "^1.1", - "orchestra/testbench-core": "^4.0", + "orchestra/testbench-core": "^5.0", "pda/pheanstalk": "^4.0", "phpunit/phpunit": "^8.0", "predis/p...
false
Other
laravel
framework
4d1fc4fa9eee5ea062562312d8f2270d28c8b7e7.json
Update branch alias
composer.json
@@ -109,7 +109,7 @@ }, "extra": { "branch-alias": { - "dev-master": "7.0-dev" + "dev-master": "7.x-dev" } }, "suggest": {
false
Other
laravel
framework
883c26576feb0849288363d622ea576e2a878644.json
Update branch alias
composer.json
@@ -109,7 +109,7 @@ }, "extra": { "branch-alias": { - "dev-master": "6.0-dev" + "dev-master": "6.x-dev" } }, "suggest": {
false
Other
laravel
framework
500295b7c43cf56993ca258be0489f6dd68c6921.json
Suggest ext-memcached (#29762)
composer.json
@@ -113,6 +113,7 @@ } }, "suggest": { + "ext-memcached": "Required to use the memcache cache driver.", "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 th...
true
Other
laravel
framework
500295b7c43cf56993ca258be0489f6dd68c6921.json
Suggest ext-memcached (#29762)
src/Illuminate/Cache/composer.json
@@ -29,6 +29,7 @@ } }, "suggest": { + "ext-memcached": "Required to use the memcache cache driver.", "illuminate/database": "Required to use the database cache driver (^6.0).", "illuminate/filesystem": "Required to use the file cache driver (^6.0).", "illuminate/redi...
true
Other
laravel
framework
c6508d11be1acb7c1b9a2f29047e41ccf8b3334e.json
add test for pipeline class
tests/Pipeline/PipelineTest.php
@@ -199,6 +199,16 @@ public function testPipelineUsageWithParameters() unset($_SERVER['__test.pipe.parameters']); } + public function testItCanWorkWithNoPipe() + { + $result = (new Pipeline(new Container)) + ->send('foo') + ->through([]) + ->thenReturn(); + ...
false
Other
laravel
framework
3a2c381d3f7bd8aea100b94f4b9abf7eb49dc308.json
Add getInstance method
src/Illuminate/Queue/Jobs/Job.php
@@ -307,6 +307,16 @@ public function getQueue() return $this->queue; } + /** + * Get the job handler instance. + * + * @return mixed + */ + public function getInstance() + { + return $this->instance; + } + /** * Get the service container instance. *
false
Other
laravel
framework
00bdd2f5d7e5fb153d6c0276a7042c4c4edc754e.json
add test for pipe execution order
tests/Pipeline/PipelineTest.php
@@ -33,6 +33,33 @@ public function testPipelineBasicUsage() unset($_SERVER['__test.pipe.two']); } + public function testMultiplePipelinesBackAndForthExecutionOrder() + { + $pipeTwo = function ($piped, $next) { + $_SERVER['__test.pipeline'] = $_SERVER['__test.pipeline'].'_forward2...
false
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Auth/composer.json
@@ -15,10 +15,10 @@ ], "require": { "php": "^7.2", - "illuminate/contracts": "^6.0", - "illuminate/http": "^6.0", - "illuminate/queue": "^6.0", - "illuminate/support": "^6.0" + "illuminate/contracts": "^7.0", + "illuminate/http": "^7.0", + "illuminate/...
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Broadcasting/composer.json
@@ -17,10 +17,10 @@ "php": "^7.2", "ext-json": "*", "psr/log": "^1.0", - "illuminate/bus": "^6.0", - "illuminate/contracts": "^6.0", - "illuminate/queue": "^6.0", - "illuminate/support": "^6.0" + "illuminate/bus": "^7.0", + "illuminate/contracts": "^7...
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Bus/composer.json
@@ -15,9 +15,9 @@ ], "require": { "php": "^7.2", - "illuminate/contracts": "^6.0", - "illuminate/pipeline": "^6.0", - "illuminate/support": "^6.0" + "illuminate/contracts": "^7.0", + "illuminate/pipeline": "^7.0", + "illuminate/support": "^7.0" }, "...
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Cache/composer.json
@@ -15,8 +15,8 @@ ], "require": { "php": "^7.2", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0" + "illuminate/contracts": "^7.0", + "illuminate/support": "^7.0" }, "autoload": { "psr-4": { @@ -29,9 +29,9 @@ } }, "sugg...
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Config/composer.json
@@ -15,8 +15,8 @@ ], "require": { "php": "^7.2", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0" + "illuminate/contracts": "^7.0", + "illuminate/support": "^7.0" }, "autoload": { "psr-4": {
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Console/composer.json
@@ -15,8 +15,8 @@ ], "require": { "php": "^7.2", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0", + "illuminate/contracts": "^7.0", + "illuminate/support": "^7.0", "symfony/console": "^4.3", "symfony/process": "^4.3" }, @@ -33,7 +33,...
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Container/composer.json
@@ -15,8 +15,8 @@ ], "require": { "php": "^7.2", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0", + "illuminate/contracts": "^7.0", + "illuminate/support": "^7.0", "psr/container": "^1.0" }, "autoload": {
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Cookie/composer.json
@@ -15,8 +15,8 @@ ], "require": { "php": "^7.2", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0", + "illuminate/contracts": "^7.0", + "illuminate/support": "^7.0", "symfony/http-foundation": "^4.3", "symfony/http-kernel": "^4.3" },
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Database/composer.json
@@ -17,9 +17,9 @@ "require": { "php": "^7.2", "ext-json": "*", - "illuminate/container": "^6.0", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0" + "illuminate/container": "^7.0", + "illuminate/contracts": "^7.0", + "illuminate/support": "...
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Encryption/composer.json
@@ -18,8 +18,8 @@ "ext-json": "*", "ext-mbstring": "*", "ext-openssl": "*", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0" + "illuminate/contracts": "^7.0", + "illuminate/support": "^7.0" }, "autoload": { "psr-4": {
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Events/composer.json
@@ -15,9 +15,9 @@ ], "require": { "php": "^7.2", - "illuminate/container": "^6.0", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0" + "illuminate/container": "^7.0", + "illuminate/contracts": "^7.0", + "illuminate/support": "^7.0" }, ...
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Filesystem/composer.json
@@ -15,8 +15,8 @@ ], "require": { "php": "^7.2", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0", + "illuminate/contracts": "^7.0", + "illuminate/support": "^7.0", "symfony/finder": "^4.3" }, "autoload": {
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Hashing/composer.json
@@ -15,8 +15,8 @@ ], "require": { "php": "^7.2", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0" + "illuminate/contracts": "^7.0", + "illuminate/support": "^7.0" }, "autoload": { "psr-4": {
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Http/composer.json
@@ -16,8 +16,8 @@ "require": { "php": "^7.2", "ext-json": "*", - "illuminate/session": "^6.0", - "illuminate/support": "^6.0", + "illuminate/session": "^7.0", + "illuminate/support": "^7.0", "symfony/http-foundation": "^4.3", "symfony/http-kernel": "^...
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Log/composer.json
@@ -15,8 +15,8 @@ ], "require": { "php": "^7.2", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0", + "illuminate/contracts": "^7.0", + "illuminate/support": "^7.0", "monolog/monolog": "^1.11" }, "autoload": {
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Mail/composer.json
@@ -17,9 +17,9 @@ "php": "^7.2", "ext-json": "*", "erusev/parsedown": "^1.7", - "illuminate/container": "^6.0", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0", + "illuminate/container": "^7.0", + "illuminate/contracts": "^7.0", + "il...
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Notifications/composer.json
@@ -15,14 +15,14 @@ ], "require": { "php": "^7.2", - "illuminate/broadcasting": "^6.0", - "illuminate/bus": "^6.0", - "illuminate/container": "^6.0", - "illuminate/contracts": "^6.0", - "illuminate/filesystem": "^6.0", - "illuminate/mail": "^6.0", - "i...
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Pagination/composer.json
@@ -16,8 +16,8 @@ "require": { "php": "^7.2", "ext-json": "*", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0" + "illuminate/contracts": "^7.0", + "illuminate/support": "^7.0" }, "autoload": { "psr-4": {
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Pipeline/composer.json
@@ -15,8 +15,8 @@ ], "require": { "php": "^7.2", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0" + "illuminate/contracts": "^7.0", + "illuminate/support": "^7.0" }, "autoload": { "psr-4": {
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Queue/composer.json
@@ -16,13 +16,13 @@ "require": { "php": "^7.2", "ext-json": "*", - "illuminate/console": "^6.0", - "illuminate/container": "^6.0", - "illuminate/contracts": "^6.0", - "illuminate/database": "^6.0", - "illuminate/filesystem": "^6.0", - "illuminate/pipeline...
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Redis/composer.json
@@ -15,8 +15,8 @@ ], "require": { "php": "^7.2", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0", + "illuminate/contracts": "^7.0", + "illuminate/support": "^7.0", "predis/predis": "^1.0" }, "autoload": {
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Routing/composer.json
@@ -16,12 +16,12 @@ "require": { "php": "^7.2", "ext-json": "*", - "illuminate/container": "^6.0", - "illuminate/contracts": "^6.0", - "illuminate/http": "^6.0", - "illuminate/pipeline": "^6.0", - "illuminate/session": "^6.0", - "illuminate/support": "^6....
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Session/composer.json
@@ -16,9 +16,9 @@ "require": { "php": "^7.2", "ext-json": "*", - "illuminate/contracts": "^6.0", - "illuminate/filesystem": "^6.0", - "illuminate/support": "^6.0", + "illuminate/contracts": "^7.0", + "illuminate/filesystem": "^7.0", + "illuminate/support"...
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Support/composer.json
@@ -18,7 +18,7 @@ "ext-json": "*", "ext-mbstring": "*", "doctrine/inflector": "^1.1", - "illuminate/contracts": "^6.0", + "illuminate/contracts": "^7.0", "nesbot/carbon": "^2.0" }, "conflict": { @@ -38,7 +38,7 @@ } }, "suggest": { - "...
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Translation/composer.json
@@ -16,9 +16,9 @@ "require": { "php": "^7.2", "ext-json": "*", - "illuminate/contracts": "^6.0", - "illuminate/filesystem": "^6.0", - "illuminate/support": "^6.0" + "illuminate/contracts": "^7.0", + "illuminate/filesystem": "^7.0", + "illuminate/support":...
true
Other
laravel
framework
9f84d8de45106d97feb672e199840ea186035ef4.json
Update versions for 7.0
src/Illuminate/Validation/composer.json
@@ -17,10 +17,10 @@ "php": "^7.2", "ext-json": "*", "egulias/email-validator": "^2.0", - "illuminate/container": "^6.0", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0", - "illuminate/translation": "^6.0", + "illuminate/container": "^7.0", +...
true