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
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Mail/composer.json
@@ -18,6 +18,7 @@ "ext-json": "*", "illuminate/container": "^8.0", "illuminate/contracts": "^8.0", + "illuminate/macroable": "^8.0", "illuminate/support": "^8.0", "league/commonmark": "^1.3", "psr/log": "^1.0",
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Redis/Connections/Connection.php
@@ -4,10 +4,10 @@ use Closure; use Illuminate\Contracts\Events\Dispatcher; +use Illuminate\Macroable\Macroable; use Illuminate\Redis\Events\CommandExecuted; use Illuminate\Redis\Limiters\ConcurrencyLimiterBuilder; use Illuminate\Redis\Limiters\DurationLimiterBuilder; -use Illuminate\Support\Traits\Macroable; ...
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Redis/composer.json
@@ -16,6 +16,7 @@ "require": { "php": "^7.3", "illuminate/contracts": "^8.0", + "illuminate/macroable": "^8.0", "illuminate/support": "^8.0" }, "autoload": {
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Routing/PendingResourceRegistration.php
@@ -2,7 +2,7 @@ namespace Illuminate\Routing; -use Illuminate\Support\Traits\Macroable; +use Illuminate\Macroable\Macroable; class PendingResourceRegistration {
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Routing/Redirector.php
@@ -3,8 +3,8 @@ namespace Illuminate\Routing; use Illuminate\Http\RedirectResponse; +use Illuminate\Macroable\Macroable; use Illuminate\Session\Store as SessionStore; -use Illuminate\Support\Traits\Macroable; class Redirector {
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Routing/ResponseFactory.php
@@ -6,8 +6,8 @@ use Illuminate\Contracts\View\Factory as ViewFactory; use Illuminate\Http\JsonResponse; use Illuminate\Http\Response; +use Illuminate\Macroable\Macroable; use Illuminate\Support\Str; -use Illuminate\Support\Traits\Macroable; use Symfony\Component\HttpFoundation\BinaryFileResponse; use Symfony\Comp...
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Routing/Route.php
@@ -6,14 +6,14 @@ use Illuminate\Container\Container; use Illuminate\Http\Exceptions\HttpResponseException; use Illuminate\Http\Request; +use Illuminate\Macroable\Macroable; use Illuminate\Routing\Contracts\ControllerDispatcher as ControllerDispatcherContract; use Illuminate\Routing\Matching\HostValidator; use Il...
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Routing/Router.php
@@ -15,10 +15,10 @@ use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Http\Response; +use Illuminate\Macroable\Macroable; use Illuminate\Routing\Events\RouteMatched; use Illuminate\Support\Collection; use Illuminate\Support\Str; -use Illuminate\Support\Traits\Macroable; use JsonSerial...
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Routing/UrlGenerator.php
@@ -6,11 +6,11 @@ use Illuminate\Contracts\Routing\UrlGenerator as UrlGeneratorContract; use Illuminate\Contracts\Routing\UrlRoutable; use Illuminate\Http\Request; +use Illuminate\Macroable\Macroable; use Illuminate\Support\Arr; use Illuminate\Support\Carbon; use Illuminate\Support\InteractsWithTime; use Illumin...
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Routing/composer.json
@@ -19,6 +19,7 @@ "illuminate/container": "^8.0", "illuminate/contracts": "^8.0", "illuminate/http": "^8.0", + "illuminate/macroable": "^8.0", "illuminate/pipeline": "^8.0", "illuminate/session": "^8.0", "illuminate/support": "^8.0",
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Support/Optional.php
@@ -4,10 +4,11 @@ use ArrayAccess; use ArrayObject; +use Illuminate\Macroable\Macroable; class Optional implements ArrayAccess { - use Traits\Macroable { + use Macroable { __call as macroCall; }
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Support/Str.php
@@ -2,7 +2,7 @@ namespace Illuminate\Support; -use Illuminate\Support\Traits\Macroable; +use Illuminate\Macroable\Macroable; use Ramsey\Uuid\Codec\TimestampFirstCombCodec; use Ramsey\Uuid\Generator\CombGenerator; use Ramsey\Uuid\Uuid;
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Support/Stringable.php
@@ -3,7 +3,7 @@ namespace Illuminate\Support; use Closure; -use Illuminate\Support\Traits\Macroable; +use Illuminate\Macroable\Macroable; use Symfony\Component\VarDumper\VarDumper; class Stringable
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Support/Testing/Fakes/NotificationFake.php
@@ -6,9 +6,9 @@ use Illuminate\Contracts\Notifications\Dispatcher as NotificationDispatcher; use Illuminate\Contracts\Notifications\Factory as NotificationFactory; use Illuminate\Contracts\Translation\HasLocalePreference; +use Illuminate\Macroable\Macroable; use Illuminate\Support\Collection; use Illuminate\Suppor...
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Testing/TestResponse.php
@@ -6,10 +6,10 @@ use Closure; use Illuminate\Contracts\View\View; use Illuminate\Database\Eloquent\Model; +use Illuminate\Macroable\Macroable; use Illuminate\Support\Arr; use Illuminate\Support\Carbon; use Illuminate\Support\Str; -use Illuminate\Support\Traits\Macroable; use Illuminate\Support\Traits\Tappable; ...
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Testing/composer.json
@@ -16,6 +16,7 @@ "require": { "php": "^7.3", "illuminate/contracts": "^8.0", + "illuminate/macroable": "^8.0", "illuminate/support": "^8.0" }, "autoload": {
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Translation/Translator.php
@@ -5,11 +5,11 @@ use Countable; use Illuminate\Contracts\Translation\Loader; use Illuminate\Contracts\Translation\Translator as TranslatorContract; +use Illuminate\Macroable\Macroable; use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Support\NamespacedItemResolver; use Illuminate\Su...
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Translation/composer.json
@@ -17,6 +17,7 @@ "php": "^7.3", "ext-json": "*", "illuminate/contracts": "^8.0", + "illuminate/macroable": "^8.0", "illuminate/filesystem": "^8.0", "illuminate/support": "^8.0" },
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Validation/Rule.php
@@ -3,7 +3,7 @@ namespace Illuminate\Validation; use Illuminate\Contracts\Support\Arrayable; -use Illuminate\Support\Traits\Macroable; +use Illuminate\Macroable\Macroable; use Illuminate\Validation\Rules\Dimensions; use Illuminate\Validation\Rules\Exists; use Illuminate\Validation\Rules\In;
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/Validation/composer.json
@@ -19,6 +19,7 @@ "egulias/email-validator": "^2.1.10", "illuminate/container": "^8.0", "illuminate/contracts": "^8.0", + "illuminate/macroable": "^8.0", "illuminate/support": "^8.0", "illuminate/translation": "^8.0", "symfony/http-foundation": "^5.1",
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/View/Factory.php
@@ -6,9 +6,9 @@ use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\View\Factory as FactoryContract; +use Illuminate\Macroable\Macroable; use Illuminate\Support\Arr; use Illuminate\Support\Str; -use Illuminate\Support\Traits\Macroable; use Illuminate\Vi...
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/View/View.php
@@ -10,9 +10,9 @@ use Illuminate\Contracts\Support\Renderable; use Illuminate\Contracts\View\Engine; use Illuminate\Contracts\View\View as ViewContract; +use Illuminate\Macroable\Macroable; use Illuminate\Support\MessageBag; use Illuminate\Support\Str; -use Illuminate\Support\Traits\Macroable; use Illuminate\Supp...
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
src/Illuminate/View/composer.json
@@ -20,6 +20,7 @@ "illuminate/contracts": "^8.0", "illuminate/events": "^8.0", "illuminate/filesystem": "^8.0", + "illuminate/macroable": "^8.0", "illuminate/support": "^8.0" }, "autoload": {
true
Other
laravel
framework
98f13532641c62a3f5bb2a33920db9092205c78c.json
Replace Macroable usages
tests/Support/SupportMacroableTest.php
@@ -2,7 +2,7 @@ namespace Illuminate\Tests\Support; -use Illuminate\Support\Traits\Macroable; +use Illuminate\Macroable\Macroable; use PHPUnit\Framework\TestCase; class SupportMacroableTest extends TestCase
true
Other
laravel
framework
96ed7ba166f8c2ba95d433b7e22d62f011fc6046.json
Apply fixes from StyleCI (#32500)
src/Illuminate/Collections/Collection.php
@@ -1185,26 +1185,26 @@ public function take($limit) } /** - * Take items in the collection until the given condition is met. - * - * @param mixed $key - * @return static - */ - public function takeUntil($value) - { - return new static($this->lazy()->takeUntil($val...
true
Other
laravel
framework
96ed7ba166f8c2ba95d433b7e22d62f011fc6046.json
Apply fixes from StyleCI (#32500)
src/Illuminate/Collections/LazyCollection.php
@@ -1114,40 +1114,40 @@ public function take($limit) } /** - * Take items in the collection until the given condition is met. - * - * @param mixed $key - * @return static - */ - public function takeUntil($value) - { - $callback = $this->useAsCallable($value) ? $val...
true
Other
laravel
framework
4e43bddd60752cfe509c6be08967c85c26639474.json
Add failing test for LazyCollection@until
tests/Support/SupportLazyCollectionIsLazyTest.php
@@ -1100,6 +1100,23 @@ public function testUnlessNotEmptyIsLazy() }); } + public function testUntilIsLazy() + { + $this->assertDoesNotEnumerate(function ($collection) { + $collection->until(INF); + }); + + $this->assertEnumerates(10, function ($collection) { + ...
false
Other
laravel
framework
f5a52813ef32730937c8fd87ca8bb8bdb748ef92.json
Apply fixes from StyleCI (#32493)
src/Illuminate/Database/DatabaseServiceProvider.php
@@ -6,7 +6,6 @@ use Faker\Generator as FakerGenerator; use Illuminate\Contracts\Queue\EntityResolver; use Illuminate\Database\Connectors\ConnectionFactory; -use Illuminate\Database\Eloquent\Factory as EloquentFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\QueueEntityResolver; us...
false
Other
laravel
framework
5faa69f3e38f1fdb3437b9a2365b51ad22e9d3a2.json
Update Docblock on Redirect facade
src/Illuminate/Support/Facades/Redirect.php
@@ -12,6 +12,8 @@ * @method static \Illuminate\Http\RedirectResponse away(string $path, int $status = 302, array $headers = []) * @method static \Illuminate\Http\RedirectResponse secure(string $path, int $status = 302, array $headers = []) * @method static \Illuminate\Http\RedirectResponse route(string $route, ar...
false
Other
laravel
framework
c41a82b451e4861a982eb022eacae9304369e5d9.json
Apply fixes from StyleCI (#32483)
src/Illuminate/Database/Console/Seeds/SeederMakeCommand.php
@@ -3,8 +3,6 @@ namespace Illuminate\Database\Console\Seeds; use Illuminate\Console\GeneratorCommand; -use Illuminate\Filesystem\Filesystem; -use Illuminate\Support\Composer; class SeederMakeCommand extends GeneratorCommand {
false
Other
laravel
framework
54f543a3005447f5af67b793afbec8d6c3ca056a.json
remove legacy factories
src/Illuminate/Database/Eloquent/Factory.php
@@ -1,269 +0,0 @@ -<?php - -namespace Illuminate\Database\Eloquent; - -use ArrayAccess; -use Faker\Generator as Faker; -use Symfony\Component\Finder\Finder; - -class Factory implements ArrayAccess -{ - /** - * The model definitions in the container. - * - * @var array - */ - protected $definitions...
true
Other
laravel
framework
54f543a3005447f5af67b793afbec8d6c3ca056a.json
remove legacy factories
src/Illuminate/Database/Eloquent/FactoryBuilder.php
@@ -1,449 +0,0 @@ -<?php - -namespace Illuminate\Database\Eloquent; - -use Faker\Generator as Faker; -use Illuminate\Support\Traits\Macroable; -use InvalidArgumentException; - -class FactoryBuilder -{ - use Macroable; - - /** - * The model definitions in the container. - * - * @var array - */ - ...
true
Other
laravel
framework
54f543a3005447f5af67b793afbec8d6c3ca056a.json
remove legacy factories
tests/Integration/Database/EloquentFactoryBuilderTest.php
@@ -1,345 +0,0 @@ -<?php - -namespace Illuminate\Tests\Integration\Database; - -use Faker\Generator; -use Illuminate\Database\Eloquent\Collection; -use Illuminate\Database\Eloquent\Factory; -use Illuminate\Database\Eloquent\Model; -use Illuminate\Database\Schema\Blueprint; -use Illuminate\Support\Facades\Schema; -use O...
true
Other
laravel
framework
095fc752a8742d0251ba70e820f6016714b93458.json
update factory stub
src/Illuminate/Database/Console/Factories/stubs/factory.stub
@@ -1,12 +1,21 @@ <?php -/** @var \Illuminate\Database\Eloquent\Factory $factory */ +namespace Database\Factories; -use Faker\Generator as Faker; -use {{ namespacedModel }}; +use Illuminate\Database\Eloquent\Factories\Factory; +use Illuminate\Support\Str; -$factory->define({{ model }}::class, function (Faker $fa...
false
Other
laravel
framework
9c96b4636848a80ca81831b3672b06e3451486aa.json
Apply fixes from StyleCI (#32477)
src/Illuminate/Collections/EnumeratesValues.php
@@ -6,9 +6,6 @@ use Exception; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Jsonable; -use Illuminate\Collections\Arr; -use Illuminate\Collections\Enumerable; -use Illuminate\Collections\HigherOrderCollectionProxy; use JsonSerializable; use Symfony\Component\VarDumper\VarDumper; us...
true
Other
laravel
framework
9c96b4636848a80ca81831b3672b06e3451486aa.json
Apply fixes from StyleCI (#32477)
src/Illuminate/Support/Collection.php
@@ -13,7 +13,7 @@ class Collection extends BaseCollection */ public function collect() { - return new Collection($this->all()); + return new self($this->all()); } /**
true
Other
laravel
framework
0ff5eac02d95499e645d4390f25a1b935b9bf2ee.json
Apply fixes from StyleCI (#32473)
src/Illuminate/Foundation/Console/StorageLinkCommand.php
@@ -67,7 +67,7 @@ protected function links() protected function getRelativeTarget($link, $target) { if (! class_exists(SymfonyFilesystem::class)) { - throw new Exception("Please install the symfony/filesystem Composer package to create relative links."); + throw new Exception('P...
false
Other
laravel
framework
c281a782bbb08a4075522007ca62de0d8d559058.json
Fix orderBy with callable
src/Illuminate/Support/Collection.php
@@ -428,7 +428,7 @@ public function get($key, $default = null) */ public function groupBy($groupBy, $preserveKeys = false) { - if (is_array($groupBy)) { + if (! $this->useAsCallable($groupBy) && is_array($groupBy)) { $nextGroups = $groupBy; $groupBy = array_shif...
true
Other
laravel
framework
c281a782bbb08a4075522007ca62de0d8d559058.json
Fix orderBy with callable
tests/Support/SupportCollectionTest.php
@@ -2263,6 +2263,30 @@ public function testGroupByAttribute($collection) $this->assertEquals([1 => [['rating' => 1, 'url' => '1'], ['rating' => 1, 'url' => '1']], 2 => [['rating' => 2, 'url' => '2']]], $result->toArray()); } + /** + * @dataProvider collectionClassProvider + */ + public fun...
true
Other
laravel
framework
7027526abd809080e9211c9ea7c9f134b0b2b45e.json
remove unneede code
tests/Database/DatabaseEloquentFactoryTest.php
@@ -191,10 +191,7 @@ public function test_sequences() $user = FactoryTestUserFactory::new() ->hasAttached( - FactoryTestRoleFactory::times(4)->afterCreating(function ($role, $user) { - $_SERVER['__test.role.creating-role'] = $...
false
Other
laravel
framework
9bd9ebe2e3653cd40eb19160d005d2ae7740f352.json
add more tests
src/Illuminate/Database/Eloquent/Factories/BelongsToManyRelationship.php
@@ -50,9 +50,11 @@ public function __construct(Factory $factory, $pivot, $relationship) */ public function createFor(Model $model) { - $model->{$this->relationship}()->attach( - $this->factory->create([], $model), - is_callable($this->pivot) ? call_user_func($this->pivot, $m...
true
Other
laravel
framework
9bd9ebe2e3653cd40eb19160d005d2ae7740f352.json
add more tests
tests/Database/DatabaseEloquentFactoryTest.php
@@ -5,6 +5,7 @@ use Illuminate\Container\Container; use Illuminate\Database\Capsule\Manager as DB; use Illuminate\Database\Eloquent\Factories\Factory; +use Illuminate\Database\Eloquent\Factories\Sequence; use Illuminate\Database\Eloquent\Model as Eloquent; use PHPUnit\Framework\TestCase; @@ -48,6 +49,18 @@ publi...
true
Other
laravel
framework
a9caebc58dd9d9d064946f5866d7df3c8ac65946.json
add more tests
tests/Database/DatabaseEloquentFactoryTest.php
@@ -41,6 +41,13 @@ public function createSchema() $table->string('name'); $table->timestamps(); }); + + $this->schema()->create('posts', function ($table) { + $table->increments('id'); + $table->foreignId('user_id'); + $table->string('title'); +...
false
Other
laravel
framework
b865abfea9803978f5da51ae42b4fa8b09e3686f.json
finish doc blocks
src/Illuminate/Database/Eloquent/Factories/BelongsToManyRelationship.php
@@ -6,6 +6,11 @@ class BelongsToManyRelationship { + /** + * The related factory instance. + * + * @var \Illuminate\Database\Eloquent\Factories\Factory + */ protected $factory; /** @@ -22,6 +27,14 @@ class BelongsToManyRelationship */ protected $relationship; + /** + ...
true
Other
laravel
framework
b865abfea9803978f5da51ae42b4fa8b09e3686f.json
finish doc blocks
src/Illuminate/Database/Eloquent/Factories/BelongsToRelationship.php
@@ -7,6 +7,11 @@ class BelongsToRelationship { + /** + * The related factory instance. + * + * @var \Illuminate\Database\Eloquent\Factories\Factory + */ protected $factory; /** @@ -23,6 +28,13 @@ class BelongsToRelationship */ protected $resolved; + /** + * Create ...
true
Other
laravel
framework
b865abfea9803978f5da51ae42b4fa8b09e3686f.json
finish doc blocks
src/Illuminate/Database/Eloquent/Factories/Factory.php
@@ -383,6 +383,13 @@ public function sequence(...$sequence) return $this->state(new Sequence(...$sequence)); } + /** + * Define a child relationship for the model. + * + * @param \Illuminate\Database\Eloquent\Factories\Factory $factory + * @param string|null $relationship + * ...
true
Other
laravel
framework
b865abfea9803978f5da51ae42b4fa8b09e3686f.json
finish doc blocks
src/Illuminate/Database/Eloquent/Factories/Relationship.php
@@ -9,6 +9,11 @@ class Relationship { + /** + * The related factory instance. + * + * @var \Illuminate\Database\Eloquent\Factories\Factory + */ protected $factory; /** @@ -18,6 +23,13 @@ class Relationship */ protected $relationship; + /** + * Create a new child re...
true
Other
laravel
framework
6c0ec9dfeedcb6324c7655f788a794bcf4ae10ba.json
Apply fixes from StyleCI (#32466)
src/Illuminate/Database/Eloquent/Factories/BelongsToRelationship.php
@@ -41,9 +41,9 @@ public function attributesFor(Model $model) return $relationship instanceof MorphTo ? [ $relationship->getMorphType() => (new $this->factory->model)->getMorphClass(), - $relationship->getForeignKeyName() => $this->resolver() + $relationship->getForeignKeyN...
true
Other
laravel
framework
6c0ec9dfeedcb6324c7655f788a794bcf4ae10ba.json
Apply fixes from StyleCI (#32466)
src/Illuminate/Database/Eloquent/Factories/Factory.php
@@ -345,7 +345,7 @@ protected function expandAttributes(array $definition) $attribute = $attribute($definition); } - if ($attribute instanceof Factory) { + if ($attribute instanceof self) { return $attribute->create()->getKey(); } elsei...
true
Other
laravel
framework
f57d1a301543788c8c6e5ebe160ddaf5d60d25ea.json
Add hasHeaders() method to HTTP Client Request
src/Illuminate/Http/Client/Request.php
@@ -78,6 +78,27 @@ public function hasHeader($key, $value = null) return empty(array_diff($value, $headers[$key])); } + /** + * Determine if the request has the given headers. + * + * @param array|string $headers + * @return bool + */ + public function hasHeaders($headers) + ...
true
Other
laravel
framework
f57d1a301543788c8c6e5ebe160ddaf5d60d25ea.json
Add hasHeaders() method to HTTP Client Request
tests/Http/HttpClientTest.php
@@ -394,4 +394,37 @@ public function testGetWithArrayQueryParamEncodes() && $request['foo;bar; space test'] === 'laravel'; }); } + + public function testCanConfirmManyHeaders() + { + $this->factory->fake(); + + $this->factory->withHeaders([ + 'X-Test-Header'...
true
Other
laravel
framework
ceaf3918c9076b9cee48798da15cc8f38261c2eb.json
Make validateArray parameter optional
src/Illuminate/Validation/Concerns/ValidatesAttributes.php
@@ -320,7 +320,7 @@ public function validateAlphaNum($attribute, $value) * @param array $parameters * @return bool */ - public function validateArray($attribute, $value, $parameters) + public function validateArray($attribute, $value, $parameters = []) { if (! is_array($value)) {...
false
Other
laravel
framework
f4b911a7dc3b5844bdd21802c83a060aa2f2cb39.json
use Symfony Filesystem to determine relative path
composer.json
@@ -33,6 +33,7 @@ "swiftmailer/swiftmailer": "^6.0", "symfony/console": "^5.0", "symfony/error-handler": "^5.0", + "symfony/filesystem": "^5.0", "symfony/finder": "^5.0", "symfony/http-foundation": "^5.0", "symfony/http-kernel": "^5.0",
true
Other
laravel
framework
f4b911a7dc3b5844bdd21802c83a060aa2f2cb39.json
use Symfony Filesystem to determine relative path
src/Illuminate/Foundation/Console/StorageLinkCommand.php
@@ -3,7 +3,7 @@ namespace Illuminate\Foundation\Console; use Illuminate\Console\Command; -use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\Filesystem\Filesystem as SymfonyFilesystem; class StorageLinkCommand extends Command { @@ -32,9 +32,8 @@ public function handle() if (file_e...
true
Other
laravel
framework
70698d2257f7b868a71983a6674a7c25f261ff8e.json
Fix code style.
src/Illuminate/Container/BoundMethod.php
@@ -170,7 +170,7 @@ protected static function addDependencyForCallParameter($container, $parameter, $dependencies[] = $container->make($parameter->getClass()->name); } elseif ($parameter->isDefaultValueAvailable()) { $dependencies[] = $parameter->getDefaultValue(); - } elseif(!...
false
Other
laravel
framework
55f39ada11eb30d7e628a5e07f3fb2b8a302bf27.json
Fix code styling.
src/Illuminate/Container/BoundMethod.php
@@ -170,7 +170,7 @@ protected static function addDependencyForCallParameter($container, $parameter, $dependencies[] = $container->make($parameter->getClass()->name); } elseif ($parameter->isDefaultValueAvailable()) { $dependencies[] = $parameter->getDefaultValue(); - } elseif(!...
true
Other
laravel
framework
55f39ada11eb30d7e628a5e07f3fb2b8a302bf27.json
Fix code styling.
tests/Container/ContainerCallTest.php
@@ -175,7 +175,7 @@ public function testCallWithoutRequiredParamsThrowsException() $this->expectExceptionMessage('Unresolvable dependency resolving [Parameter #0 [ <required> $foo ]] in class Illuminate\Tests\Container\ContainerTestCallStub'); $container = new Container; - $container->call(Co...
true
Other
laravel
framework
4a414c58a634eea030dcafff10b7161ab46684cb.json
Throw exception on missing required parameter. Fixes #32438
src/Illuminate/Container/BoundMethod.php
@@ -3,6 +3,7 @@ namespace Illuminate\Container; use Closure; +use Illuminate\Contracts\Container\BindingResolutionException; use InvalidArgumentException; use ReflectionFunction; use ReflectionMethod; @@ -169,6 +170,10 @@ protected static function addDependencyForCallParameter($container, $parameter, ...
true
Other
laravel
framework
4a414c58a634eea030dcafff10b7161ab46684cb.json
Throw exception on missing required parameter. Fixes #32438
tests/Container/ContainerCallTest.php
@@ -4,6 +4,7 @@ use Closure; use Illuminate\Container\Container; +use Illuminate\Contracts\Container\BindingResolutionException; use PHPUnit\Framework\TestCase; use ReflectionException; use stdClass; @@ -167,6 +168,15 @@ public function testCallWithCallableObject() $this->assertInstanceOf(ContainerCallC...
true
Other
laravel
framework
bced6d3fac1c081ef4f62dd94277984fc819f9d6.json
create relative symlinks by default
src/Illuminate/Foundation/Console/StorageLinkCommand.php
@@ -3,6 +3,7 @@ namespace Illuminate\Foundation\Console; use Illuminate\Console\Command; +use Symfony\Component\HttpFoundation\Request; class StorageLinkCommand extends Command { @@ -11,7 +12,7 @@ class StorageLinkCommand extends Command * * @var string */ - protected $signature = 'storage:...
false
Other
laravel
framework
0946c3eb93cfe70a895bcae67d47c341d990a781.json
add getGrammar into passthru in Eloquent builder
src/Illuminate/Database/Eloquent/Builder.php
@@ -74,7 +74,7 @@ class Builder */ protected $passthru = [ 'insert', 'insertOrIgnore', 'insertGetId', 'insertUsing', 'getBindings', 'toSql', 'dump', 'dd', - 'exists', 'doesntExist', 'count', 'min', 'max', 'avg', 'average', 'sum', 'getConnection', 'raw', + 'exists', 'doesntExist', 'coun...
true
Other
laravel
framework
0946c3eb93cfe70a895bcae67d47c341d990a781.json
add getGrammar into passthru in Eloquent builder
tests/Database/DatabaseEloquentBuilderTest.php
@@ -640,6 +640,11 @@ public function testQueryPassThru() $builder->getQuery()->shouldReceive('raw')->once()->with('bar')->andReturn('foo'); $this->assertSame('foo', $builder->raw('bar')); + + $builder = $this->getBuilder(); + $grammar = new Grammar(); + $builder->getQuery()->sho...
true
Other
laravel
framework
6a95cc32b0a0abeca851068a790d20a93d9d78ed.json
Add the ability to create indexes as expressions
src/Illuminate/Database/Schema/Blueprint.php
@@ -5,6 +5,7 @@ use BadMethodCallException; use Closure; use Illuminate\Database\Connection; +use Illuminate\Database\Query\Expression; use Illuminate\Database\Schema\Grammars\Grammar; use Illuminate\Database\SQLiteConnection; use Illuminate\Support\Fluent; @@ -521,6 +522,18 @@ public function spatialIndex($colum...
true
Other
laravel
framework
6a95cc32b0a0abeca851068a790d20a93d9d78ed.json
Add the ability to create indexes as expressions
tests/Database/DatabaseMySqlSchemaGrammarTest.php
@@ -363,6 +363,16 @@ public function testAddingFluentSpatialIndex() $this->assertSame('alter table `geo` add spatial index `geo_coordinates_spatialindex`(`coordinates`)', $statements[1]); } + public function testAddingRawIndex() + { + $blueprint = new Blueprint('users'); + $blueprint...
true
Other
laravel
framework
6a95cc32b0a0abeca851068a790d20a93d9d78ed.json
Add the ability to create indexes as expressions
tests/Database/DatabasePostgresSchemaGrammarTest.php
@@ -268,6 +268,16 @@ public function testAddingFluentSpatialIndex() $this->assertSame('create index "geo_coordinates_spatialindex" on "geo" using gist ("coordinates")', $statements[1]); } + public function testAddingRawIndex() + { + $blueprint = new Blueprint('users'); + $blueprint->...
true
Other
laravel
framework
6a95cc32b0a0abeca851068a790d20a93d9d78ed.json
Add the ability to create indexes as expressions
tests/Database/DatabaseSQLiteSchemaGrammarTest.php
@@ -252,6 +252,16 @@ public function testAddingFluentSpatialIndex() $blueprint->toSql($this->getConnection(), $this->getGrammar()); } + public function testAddingRawIndex() + { + $blueprint = new Blueprint('users'); + $blueprint->rawIndex('(function(column))', 'raw_index'); + ...
true
Other
laravel
framework
6a95cc32b0a0abeca851068a790d20a93d9d78ed.json
Add the ability to create indexes as expressions
tests/Database/DatabaseSqlServerSchemaGrammarTest.php
@@ -277,6 +277,16 @@ public function testAddingFluentSpatialIndex() $this->assertSame('create spatial index "geo_coordinates_spatialindex" on "geo" ("coordinates")', $statements[1]); } + public function testAddingRawIndex() + { + $blueprint = new Blueprint('users'); + $blueprint->raw...
true
Other
laravel
framework
3343c3361864c212caa555cc972409deccc91230.json
Add assertSentCount method and test
src/Illuminate/Http/Client/Factory.php
@@ -218,6 +218,17 @@ public function assertNothingSent() ); } + /** + * Assert how many requests have been recorded. + * + * @param $count + * @return void + */ + public function assertSentCount($count) + { + PHPUnit::assertCount($count, $this->recorded); + } + ...
true
Other
laravel
framework
3343c3361864c212caa555cc972409deccc91230.json
Add assertSentCount method and test
tests/Http/HttpClientTest.php
@@ -127,6 +127,24 @@ public function testNoRequestIsNotBeingSent() $this->factory->assertNothingSent(); } + public function testRequestCount() + { + $this->factory->fake(); + $this->factory->assertSentCount(0); + + $this->factory->post('http://foo.com/form', [ + 'na...
true
Other
laravel
framework
e737582dfcb3e86167d8254230158877dc3c144c.json
Add ArrayAccess support for get requests
src/Illuminate/Http/Client/PendingRequest.php
@@ -6,6 +6,7 @@ use GuzzleHttp\Cookie\CookieJar; use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\HandlerStack; +use Illuminate\Support\Str; use Illuminate\Support\Traits\Macroable; class PendingRequest @@ -466,8 +467,22 @@ public function send(string $method, string $url, array $options = []) ...
true
Other
laravel
framework
e737582dfcb3e86167d8254230158877dc3c144c.json
Add ArrayAccess support for get requests
src/Illuminate/Http/Client/Request.php
@@ -3,6 +3,7 @@ namespace Illuminate\Http\Client; use ArrayAccess; +use Illuminate\Support\Arr; use Illuminate\Support\Str; use LogicException; @@ -66,9 +67,15 @@ public function hasHeader($key, $value = null) return ! empty($this->request->getHeaders()[$key]); } + $headers = $thi...
true
Other
laravel
framework
e737582dfcb3e86167d8254230158877dc3c144c.json
Add ArrayAccess support for get requests
tests/Http/HttpClientTest.php
@@ -269,7 +269,8 @@ public function testGetWithArrayQueryParam() $this->factory->get('http://foo.com/get', ['foo' => 'bar']); $this->factory->assertSent(function (Request $request) { - return $request->url() === 'http://foo.com/get?foo=bar'; + return $request->url() === 'http:/...
true
Other
laravel
framework
f5d6c432998f7a924209b748b35c35821cc8f827.json
Remove CI variable
.github/workflows/tests.yml
@@ -58,6 +58,5 @@ jobs: - name: Execute tests run: vendor/bin/phpunit --verbose env: - CI: ${{ secrets.CI }} DB_PORT: ${{ job.services.mysql.ports[3306] }} DB_USERNAME: root
false
Other
laravel
framework
005fc53b694c6d16f926b29c83dda919b0b203d0.json
Fix unnecesary newlines
src/Illuminate/Support/Str.php
@@ -86,7 +86,6 @@ public static function afterLast($subject, $search) return substr($subject, $position + strlen($search)); } - /** * Transliterate a UTF-8 value to ASCII. * @@ -731,5 +730,4 @@ public static function createUuidsNormally() { static::$uuidFactory = null; ...
true
Other
laravel
framework
005fc53b694c6d16f926b29c83dda919b0b203d0.json
Fix unnecesary newlines
tests/Support/SupportStringableTest.php
@@ -477,6 +477,4 @@ public function testSubstrCount() $this->assertSame(3, $this->stringable('laravelPHPFramework')->substrCount('a', 1, -2)); $this->assertSame(1, $this->stringable('laravelPHPFramework')->substrCount('a', -10, -3)); } - - }
true
Other
laravel
framework
8ac6ed8c8af8e684ac7a304713091b7b55a88a80.json
move route registration into booted callback
src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php
@@ -22,24 +22,36 @@ class RouteServiceProvider extends ServiceProvider protected $namespace; /** - * Bootstrap any application services. + * Register any application services. * * @return void */ - public function boot() + public function register() { - $this->set...
false
Other
laravel
framework
86dbb2500308c7cf529daf829436ce1bced88d4c.json
Depreciate the elixir function (#32366)
src/Illuminate/Foundation/helpers.php
@@ -416,6 +416,8 @@ function dispatch_now($job, $handler = null) * @return string * * @throws \InvalidArgumentException + * + * @deprecated Use Laravel Mix instead. */ function elixir($file, $buildDirectory = 'build') {
false
Other
laravel
framework
cd17572c9d8e1e039b738d595d83cda5a43f938e.json
Remove elixir helper (#32365)
src/Illuminate/Foundation/helpers.php
@@ -406,46 +406,6 @@ function dispatch_now($job, $handler = null) } } -if (! function_exists('elixir')) { - /** - * Get the path to a versioned Elixir file. - * - * @param string $file - * @param string $buildDirectory - * @return string - * - * @throws \InvalidArgumentExcepti...
true
Other
laravel
framework
cd17572c9d8e1e039b738d595d83cda5a43f938e.json
Remove elixir helper (#32365)
tests/Foundation/FoundationHelpersTest.php
@@ -43,21 +43,6 @@ public function testCache() $this->assertSame('default', cache('baz', 'default')); } - public function testUnversionedElixir() - { - $file = 'unversioned.css'; - - app()->singleton('path.public', function () { - return __DIR__; - }); - - to...
true
Other
laravel
framework
1eaaf6c59e8d614ae1991f2315cbccffa817e92c.json
Use the router for absolute urls (#32345)
src/Illuminate/Auth/Notifications/ResetPassword.php
@@ -59,7 +59,7 @@ public function toMail($notifiable) return (new MailMessage) ->subject(Lang::get('Reset Password Notification')) ->line(Lang::get('You are receiving this email because we received a password reset request for your account.')) - ->action(Lang::get('Reset Pa...
true
Other
laravel
framework
1eaaf6c59e8d614ae1991f2315cbccffa817e92c.json
Use the router for absolute urls (#32345)
src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php
@@ -489,11 +489,7 @@ protected function prepareUrlForRequest($uri) $uri = substr($uri, 1); } - if (! Str::startsWith($uri, 'http')) { - $uri = config('app.url').'/'.$uri; - } - - return trim($uri, '/'); + return trim(url($uri), '/'); } /**
true
Other
laravel
framework
c2cdb44f4819aac349452e33d469548bab4d7566.json
Set component alias name (#32346)
src/Illuminate/View/Compilers/ComponentTagCompiler.php
@@ -193,6 +193,7 @@ protected function componentString(string $component, array $attributes) } return " @component('{$class}', [".$this->attributesToString($parameters, $escapeBound = false).']) +<?php $component->withName(\''.$component.'\'); ?> <?php $component->withAttributes(['.$this->attribute...
true
Other
laravel
framework
c2cdb44f4819aac349452e33d469548bab4d7566.json
Set component alias name (#32346)
src/Illuminate/View/Component.php
@@ -32,6 +32,13 @@ abstract class Component */ protected $except = []; + /** + * The component alias name. + * + * @var string + */ + public $componentName; + /** * The component attributes. * @@ -208,6 +215,19 @@ protected function ignoredMethods() ], $this-...
true
Other
laravel
framework
c2cdb44f4819aac349452e33d469548bab4d7566.json
Set component alias name (#32346)
tests/View/Blade/BladeComponentTagCompilerTest.php
@@ -33,8 +33,10 @@ public function testBasicComponentParsing() $result = (new ComponentTagCompiler(['alert' => TestAlertComponent::class]))->compileTags('<div><x-alert type="foo" limit="5" @click="foo" required /><x-alert /></div>'); $this->assertSame("<div> @component('Illuminate\Tests\View\Blade\T...
true
Other
laravel
framework
bd59eb401998dc0e9776bb956a2d00a6eba2be57.json
Fix indentation (#32339)
phpunit.xml.dist
@@ -26,9 +26,9 @@ </whitelist> </filter> <php> - <!-- - <env name="REDIS_HOST" value="127.0.0.1" /> - <env name="REDIS_PORT" value="6379" /> - --> + <!-- + <env name="REDIS_HOST" value="127.0.0.1" /> + <env name="REDIS_PORT" value="6379" /> + --> <...
false
Other
laravel
framework
6364f258860c846140675bc34468ab345be8af43.json
Add ability to skip a middleware
src/Illuminate/Routing/Route.php
@@ -931,6 +931,29 @@ public function middleware($middleware = null) return $this; } + /** + * Set which middleware(s) to skip + * + * @param array|string|null $middleware + * @return $this|array + */ + public function skipMiddleware($middleware = null) + { + if (is_n...
true
Other
laravel
framework
6364f258860c846140675bc34468ab345be8af43.json
Add ability to skip a middleware
src/Illuminate/Routing/Router.php
@@ -697,7 +697,9 @@ public function gatherRouteMiddleware(Route $route) { $middleware = collect($route->gatherMiddleware())->map(function ($name) { return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups); - })->flatten(); + })->flatten()...
true
Other
laravel
framework
6364f258860c846140675bc34468ab345be8af43.json
Add ability to skip a middleware
tests/Routing/RouteRegistrarTest.php
@@ -60,6 +60,17 @@ public function testMiddlewareFluentRegistration() $this->assertEquals(['seven'], $this->getRoute()->middleware()); } + public function testSkipMiddlewareRegistration() + { + $this->router->middleware(['one', 'two'])->get('users', function () { + return 'all-us...
true
Other
laravel
framework
6364f258860c846140675bc34468ab345be8af43.json
Add ability to skip a middleware
tests/Routing/RoutingRouteTest.php
@@ -193,6 +193,18 @@ public function testClosureMiddleware() $this->assertSame('caught', $router->dispatch(Request::create('foo/bar', 'GET'))->getContent()); } + public function testMiddlewareCanBeSkipped() + { + $router = $this->getRouter(); + $router->aliasMiddleware('web', Routing...
true
Other
laravel
framework
ae9d41b5258ec8b6bf901b2914b16be4d5c0caff.json
Add missing fixtures namespace. (#32317)
tests/Support/DateFacadeTest.php
@@ -4,11 +4,11 @@ use Carbon\CarbonImmutable; use Carbon\Factory; -use CustomDateClass; use DateTime; use Illuminate\Support\Carbon; use Illuminate\Support\DateFactory; use Illuminate\Support\Facades\Date; +use Illuminate\Tests\Support\Fixtures\CustomDateClass; use InvalidArgumentException; use PHPUnit\Framew...
true
Other
laravel
framework
ae9d41b5258ec8b6bf901b2914b16be4d5c0caff.json
Add missing fixtures namespace. (#32317)
tests/Support/Fixtures/CustomDateClass.php
@@ -1,5 +1,7 @@ <?php +namespace Illuminate\Tests\Support\Fixtures; + class CustomDateClass { protected $original;
true
Other
laravel
framework
11143c5fd7898589c0be07e08ef2e53b9fde1c3a.json
Remove helper from Eloquent factory (#32308) Usage of a foundation helper here is discouraged because the package can be used outside the framework. It's also best to explicitely passing the factories location which is already done from the service provider.
src/Illuminate/Database/Eloquent/Factory.php
@@ -58,13 +58,11 @@ public function __construct(Faker $faker) * Create a new factory container. * * @param \Faker\Generator $faker - * @param string|null $pathToFactories + * @param string $pathToFactories * @return static */ - public static function construct(Faker $faker...
false
Other
laravel
framework
07a377af4c8eae4a72eeb8a29f16912e81300cf3.json
Add isNotEmpty() to the Stringable class (#32293)
src/Illuminate/Support/Stringable.php
@@ -235,6 +235,16 @@ public function isEmpty() return empty($this->value); } + /** + * Determine if the given string is not empty. + * + * @return bool + */ + public function isNotEmpty() + { + return ! $this->isEmpty(); + } + /** * Convert a string to kebab...
false
Other
laravel
framework
15823659f213c20b74929e88b2c57248721d180b.json
Apply fixes from StyleCI (#32291)
src/Illuminate/Support/HtmlString.php
@@ -42,7 +42,7 @@ public function toHtml() public function isEmpty() { return empty($this->html); - } + } /** * Get the HTML string.
false
Other
laravel
framework
c248521f502c74c6cea7b0d221639d4aa752d5db.json
prevent insecure characters in locale
src/Illuminate/Translation/Translator.php
@@ -10,6 +10,7 @@ use Illuminate\Support\NamespacedItemResolver; use Illuminate\Support\Str; use Illuminate\Support\Traits\Macroable; +use InvalidArgumentException; class Translator extends NamespacedItemResolver implements TranslatorContract { @@ -406,6 +407,10 @@ public function getLocale() */ publi...
false
Other
laravel
framework
283d57edfedf4b9eb045c3352153c6a64f6cc5f8.json
Update wherePivot PHPDoc (#32261)
src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
@@ -345,7 +345,7 @@ public function as($accessor) * Set a where clause for a pivot table column. * * @param string $column - * @param string|null $operator + * @param mixed $operator * @param mixed $value * @param string $boolean * @return $this @@ -377,7 +377,7 @@ ...
false
Other
laravel
framework
573f9288225593bd47bd0268947cb8553467640b.json
Use hasMorePages() function (#32250)
src/Illuminate/Pagination/LengthAwarePaginator.php
@@ -139,7 +139,7 @@ public function hasMorePages() */ public function nextPageUrl() { - if ($this->lastPage() > $this->currentPage()) { + if ($this->hasMorePages()) { return $this->url($this->currentPage() + 1); } }
false
Other
laravel
framework
db92536aa626032409f4f24f77a1e4865abf37a2.json
Drop ramsey/uuid v3 (#32232)
composer.json
@@ -29,7 +29,7 @@ "opis/closure": "^3.1", "psr/container": "^1.0", "psr/simple-cache": "^1.0", - "ramsey/uuid": "^3.7|^4.0", + "ramsey/uuid": "^4.0", "swiftmailer/swiftmailer": "^6.0", "symfony/console": "^5.1", "symfony/error-handler": "^5.1", @@ -82,...
true
Other
laravel
framework
db92536aa626032409f4f24f77a1e4865abf37a2.json
Drop ramsey/uuid v3 (#32232)
src/Illuminate/Queue/composer.json
@@ -24,7 +24,7 @@ "illuminate/pipeline": "^8.0", "illuminate/support": "^8.0", "opis/closure": "^3.1", - "ramsey/uuid": "^3.7|^4.0", + "ramsey/uuid": "^4.0", "symfony/process": "^5.1" }, "autoload": {
true
Other
laravel
framework
db92536aa626032409f4f24f77a1e4865abf37a2.json
Drop ramsey/uuid v3 (#32232)
src/Illuminate/Support/composer.json
@@ -40,8 +40,7 @@ }, "suggest": { "illuminate/filesystem": "Required to use the composer class (^8.0).", - "moontoast/math": "Required to use ordered UUIDs (^1.1).", - "ramsey/uuid": "Required to use Str::uuid() (^3.7|^4.0).", + "ramsey/uuid": "Required to use Str::uuid() (^4.0)....
true