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 | beda5af8952ecac04aadfe9278d4b79d9135fadd.json | Apply fixes from StyleCI | tests/Support/Fixtures/UnionTypesClosure.php | @@ -3,6 +3,6 @@
use Illuminate\Tests\Support\AnotherExampleParameter;
use Illuminate\Tests\Support\ExampleParameter;
-return function (ExampleParameter | AnotherExampleParameter $a, $b) {
+return function (ExampleParameter|AnotherExampleParameter $a, $b) {
//
}; | true |
Other | laravel | framework | 5a39e9dcb5650d674d6ff6e839a4619c25c7f334.json | Apply fixes from StyleCI | src/Illuminate/Console/Scheduling/Event.php | @@ -577,7 +577,7 @@ protected function pingCallback($url)
return function (Container $container, HttpClient $http) use ($url) {
try {
$http->get($url);
- } catch (ClientExceptionInterface | TransferException $e) {
+ } catch (ClientExceptionInterface|TransferE... | true |
Other | laravel | framework | 5a39e9dcb5650d674d6ff6e839a4619c25c7f334.json | Apply fixes from StyleCI | src/Illuminate/Support/Traits/ForwardsCalls.php | @@ -21,7 +21,7 @@ protected function forwardCallTo($object, $method, $parameters)
{
try {
return $object->{$method}(...$parameters);
- } catch (Error | BadMethodCallException $e) {
+ } catch (Error|BadMethodCallException $e) {
$pattern = '~^Call to undefined method ... | true |
Other | laravel | framework | f59268ec56b7f157303132a408ba08b257f156d2.json | Fix return type of Event::fakeFor() (#38691)
Event::fakeFor() returns the result of $callable() | src/Illuminate/Support/Facades/Event.php | @@ -50,7 +50,7 @@ public static function fake($eventsToFake = [])
*
* @param callable $callable
* @param array $eventsToFake
- * @return callable
+ * @return mixed
*/
public static function fakeFor(callable $callable, array $eventsToFake = [])
{ | false |
Other | laravel | framework | abab1c87a2e54710e44d562d2ab3ac2dc67c6631.json | Show a pretty diff for assertExactJson() (#38655) | src/Illuminate/Testing/AssertableJsonString.php | @@ -96,7 +96,10 @@ public function assertExact(array $data)
$expected = $this->reorderAssocKeys($data);
- PHPUnit::assertEquals(json_encode($expected), json_encode($actual));
+ PHPUnit::assertEquals(
+ json_encode($expected, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES),
+ ... | false |
Other | laravel | framework | cdb14c79e9035acfc925a1c9794aa577cb7ef452.json | Apply fixes from StyleCI | src/Illuminate/Notifications/AnonymousNotifiable.php | @@ -52,7 +52,7 @@ public function with($attributes)
$this->attributes = array_merge($this->attributes, $attributes);
return $this;
- }
+ }
/**
* Send the given notification. | false |
Other | laravel | framework | 4e46cf6290edd538cb3815901abe16eb61751a3e.json | Add PHPDoc method for `View` facade (#38636) | src/Illuminate/Support/Facades/View.php | @@ -6,6 +6,7 @@
* @method static \Illuminate\Contracts\View\Factory addNamespace(string $namespace, string|array $hints)
* @method static \Illuminate\Contracts\View\View first(array $views, \Illuminate\Contracts\Support\Arrayable|array $data = [], array $mergeData = [])
* @method static \Illuminate\Contracts\View... | false |
Other | laravel | framework | ab9d8872a92c60d221adf88b2f1d47b935d8afa0.json | Fix flaky cipher tag test (#38649) | tests/Encryption/EncrypterTest.php | @@ -102,7 +102,7 @@ public function testThatAnAeadTagCantBeModified()
$this->expectException(DecryptException::class);
$this->expectExceptionMessage('Could not decrypt the data.');
- $data->tag = 'A'.substr($data->tag, 1, 23);
+ $data->tag[0] = $data->tag[0] === 'A' ? 'B' : 'A';
... | false |
Other | laravel | framework | e9cd94c89f59c833c13d04f32f1e31db419a4c0c.json | allow quiet creation | src/Illuminate/Database/Eloquent/Factories/Factory.php | @@ -202,6 +202,17 @@ public function createOne($attributes = [])
return $this->count(null)->create($attributes);
}
+ /**
+ * Create a single model and persist it to the database.
+ *
+ * @param array $attributes
+ * @return \Illuminate\Database\Eloquent\Model
+ */
+ public fu... | false |
Other | laravel | framework | 31151477aa65e4ff2c76fc8ad33c423b7adf0bfa.json | Use lowercase cipher names (#38600) | src/Illuminate/Encryption/Encrypter.php | @@ -161,7 +161,7 @@ public function decrypt($payload, $unserialize = true)
$tag = empty($payload['tag']) ? null : base64_decode($payload['tag']);
- if (self::$supportedCiphers[$this->cipher]['aead'] && strlen($tag) !== 16) {
+ if (self::$supportedCiphers[strtolower($this->cipher)]['aead'] && ... | false |
Other | laravel | framework | 87b7fa721edd87c092916053f5f831ef619038e0.json | Update cipher tests (#38599) | src/Illuminate/Encryption/Encrypter.php | @@ -161,6 +161,10 @@ public function decrypt($payload, $unserialize = true)
$tag = empty($payload['tag']) ? null : base64_decode($payload['tag']);
+ if (self::$supportedCiphers[$this->cipher]['aead'] && strlen($tag) !== 16) {
+ throw new DecryptException('Could not decrypt the data.');
+ ... | true |
Other | laravel | framework | 87b7fa721edd87c092916053f5f831ef619038e0.json | Update cipher tests (#38599) | tests/Encryption/EncrypterTest.php | @@ -79,6 +79,34 @@ public function testThatAnAeadCipherIncludesTag()
$this->assertNotEmpty($data->tag);
}
+ public function testThatAnAeadTagMustBeProvidedInFullLength()
+ {
+ $e = new Encrypter(str_repeat('b', 32), 'AES-256-GCM');
+ $encrypted = $e->encrypt('foo');
+ $data = ... | true |
Other | laravel | framework | 9ed095dc2d0c254e6558b514ea285b767407034b.json | update doc block | src/Illuminate/Database/Eloquent/Model.php | @@ -1002,7 +1002,7 @@ public function save(array $options = [])
}
/**
- * Save the model to the database using transaction.
+ * Save the model to the database within a transaction.
*
* @param array $options
* @return bool | false |
Other | laravel | framework | 36ca1bea4c217fbc2457844a87f035e28303f8f6.json | Apply fixes from StyleCI | src/Illuminate/Auth/Notifications/ResetPassword.php | @@ -67,7 +67,7 @@ public function toMail($notifiable)
return $this->buildMailMessage($url);
}
-
+
/**
* Get the password reset URL for the given notifiable.
* | false |
Other | laravel | framework | 82913a35db2c80f61b3af713b9493b97235fe89e.json | Reduce duplicate calls (#38541)
Reduce duplicate calls | src/Illuminate/Queue/Worker.php | @@ -126,7 +126,7 @@ public function __construct(QueueManager $manager,
*/
public function daemon($connectionName, $queue, WorkerOptions $options)
{
- if ($this->supportsAsyncSignals()) {
+ if ($supportsAsyncSignals = $this->supportsAsyncSignals()) {
$this->listenForSignals();
... | false |
Other | laravel | framework | 081f467ade3cea2edf7d581e20a3772c882029f5.json | Dump specific key of the response (#38468) | src/Illuminate/Testing/TestResponse.php | @@ -1349,9 +1349,10 @@ protected function session()
/**
* Dump the content from the response.
*
+ * @param string|null $key
* @return $this
*/
- public function dump()
+ public function dump($key = null)
{
$content = $this->getContent();
@@ -1361,7 +1362,11 @@ pu... | false |
Other | laravel | framework | 3800323e1d0572401eedc498728462e5c635e084.json | Remove unnecessary double MAC for AEAD ciphers | src/Illuminate/Encryption/Encrypter.php | @@ -10,6 +10,18 @@
class Encrypter implements EncrypterContract, StringEncrypter
{
+ /**
+ * The supported cipher algorithms and their properties.
+ *
+ * @var array
+ */
+ private static $supportedCiphers = [
+ 'AES-128-CBC' => ['size' => 16, 'aead' => false],
+ 'AES-256-CBC' =>... | true |
Other | laravel | framework | 3800323e1d0572401eedc498728462e5c635e084.json | Remove unnecessary double MAC for AEAD ciphers | tests/Encryption/EncrypterTest.php | @@ -56,34 +56,54 @@ public function testWithCustomCipher()
$this->assertSame('foo', $e->decrypt($encrypted));
}
+ public function testThatAnAeadCipherIncludesTag()
+ {
+ $e = new Encrypter(str_repeat('b', 32), 'AES-256-GCM');
+ $encrypted = $e->encrypt('foo');
+ $data = json_d... | true |
Other | laravel | framework | f409e0433fd1d9186dc6dfb32e277adb74e96fdc.json | Update firstOrFail logic (#38470) | src/Illuminate/Collections/Collection.php | @@ -1146,7 +1146,7 @@ public function firstOrFail($key = null, $operator = null, $value = null)
? $this->operatorForWhere(...func_get_args())
: $key;
- $items = $this->when($filter)->filter($filter);
+ $items = $this->unless($filter == null)->filter($filter);
if ($it... | true |
Other | laravel | framework | f409e0433fd1d9186dc6dfb32e277adb74e96fdc.json | Update firstOrFail logic (#38470) | src/Illuminate/Collections/LazyCollection.php | @@ -1091,7 +1091,7 @@ public function firstOrFail($key = null, $operator = null, $value = null)
: $key;
return $this
- ->when($filter)
+ ->unless($filter == null)
->filter($filter)
->take(1)
->collect() | true |
Other | laravel | framework | 1a2ecc9ed42c0cf13d91a0c1c98095eb92bb6b5b.json | Apply fixes from StyleCI | src/Illuminate/Validation/ValidationRuleParser.php | @@ -293,7 +293,7 @@ public static function filterConditionalRules($rules, array $data = [])
if ($attributeRules instanceof ConditionalRules) {
return [$attribute => $attributeRules->passes($data)
? $attributeRules->rules()
- :... | false |
Other | laravel | framework | 5e4ded83bacc64e5604b6f71496734071c53b221.json | allow only keys directly on safe | src/Illuminate/Foundation/Http/FormRequest.php | @@ -188,11 +188,14 @@ protected function failedAuthorization()
/**
* Get a validated input container for the validated input.
*
- * @return \Illuminate\Support\ValidatedInput
+ * @param array|null $keys
+ * @return \Illuminate\Support\ValidatedInput|array
*/
- public function saf... | true |
Other | laravel | framework | 5e4ded83bacc64e5604b6f71496734071c53b221.json | allow only keys directly on safe | src/Illuminate/Validation/Validator.php | @@ -510,11 +510,14 @@ public function validateWithBag(string $errorBag)
/**
* Get a validated input container for the validated input.
*
- * @return \Illuminate\Support\ValidatedInput
+ * @param array|null $keys
+ * @return \Illuminate\Support\ValidatedInput|array
*/
- public fun... | true |
Other | laravel | framework | f84f72594bbbed3f4dff11137e5f827d1f15192c.json | Convert non-existant namespace (#38449) | src/Illuminate/Collections/Collection.php | @@ -4,8 +4,6 @@
use ArrayAccess;
use ArrayIterator;
-use Illuminate\Collections\ItemNotFoundException;
-use Illuminate\Collections\MultipleItemsFoundException;
use Illuminate\Support\Traits\EnumeratesValues;
use Illuminate\Support\Traits\Macroable;
use stdClass;
@@ -1110,8 +1108,8 @@ public function splitIn($num... | true |
Other | laravel | framework | f84f72594bbbed3f4dff11137e5f827d1f15192c.json | Convert non-existant namespace (#38449) | src/Illuminate/Collections/ItemNotFoundException.php | @@ -1,6 +1,6 @@
<?php
-namespace Illuminate\Collections;
+namespace Illuminate\Support;
use RuntimeException;
| true |
Other | laravel | framework | f84f72594bbbed3f4dff11137e5f827d1f15192c.json | Convert non-existant namespace (#38449) | src/Illuminate/Collections/LazyCollection.php | @@ -1057,8 +1057,8 @@ public function split($numberOfGroups)
* @param mixed $value
* @return mixed
*
- * @throws \Illuminate\Collections\ItemNotFoundException
- * @throws \Illuminate\Collections\MultipleItemsFoundException
+ * @throws \Illuminate\Support\ItemNotFoundException
+ * @th... | true |
Other | laravel | framework | f84f72594bbbed3f4dff11137e5f827d1f15192c.json | Convert non-existant namespace (#38449) | src/Illuminate/Collections/MultipleItemsFoundException.php | @@ -1,6 +1,6 @@
<?php
-namespace Illuminate\Collections;
+namespace Illuminate\Support;
use RuntimeException;
| true |
Other | laravel | framework | f84f72594bbbed3f4dff11137e5f827d1f15192c.json | Convert non-existant namespace (#38449) | tests/Support/SupportCollectionTest.php | @@ -7,13 +7,13 @@
use ArrayObject;
use CachingIterator;
use Exception;
-use Illuminate\Collections\ItemNotFoundException;
-use Illuminate\Collections\MultipleItemsFoundException;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Jsonable;
use Illuminate\Support\Collection;
use Illumina... | true |
Other | laravel | framework | f84f72594bbbed3f4dff11137e5f827d1f15192c.json | Convert non-existant namespace (#38449) | tests/Support/SupportLazyCollectionIsLazyTest.php | @@ -2,8 +2,8 @@
namespace Illuminate\Tests\Support;
-use Illuminate\Collections\MultipleItemsFoundException;
use Illuminate\Support\LazyCollection;
+use Illuminate\Support\MultipleItemsFoundException;
use PHPUnit\Framework\TestCase;
use stdClass;
| true |
Other | laravel | framework | b25347082b3f592cbcc21033632079bebb4a6fb3.json | Apply fixes from StyleCI | src/Illuminate/Testing/TestComponent.php | @@ -9,26 +9,26 @@
class TestComponent
{
/**
- * The original component.
- *
- * @var \Illuminate\View\Component
- */
+ * The original component.
+ *
+ * @var \Illuminate\View\Component
+ */
public $component;
/**
- * The rendered component contents.
- *
- * @var s... | true |
Other | laravel | framework | b25347082b3f592cbcc21033632079bebb4a6fb3.json | Apply fixes from StyleCI | tests/Foundation/Testing/Concerns/InteractsWithViewsTest.php | @@ -22,10 +22,12 @@ public function testComponentCanAccessPublicProperties()
$exampleComponent = new class extends Component
{
public $foo = 'bar';
+
public function speak()
{
return 'hello';
}
+
public function render()... | true |
Other | laravel | framework | 9e9bdaf06e9e65057e40f04bc34a0e45c689eb8c.json | Update InteractsWithInput.php (#38426)
* Update InteractsWithInput.php
Recently I came across some conditions that I needed to send both `Basic` and `Bearer` token. As we can send `Authorization Basic X, Bearer Y` we need to change logic how to get token from the `Authorization` header.
* Update InteractsWithInp... | src/Illuminate/Http/Concerns/InteractsWithInput.php | @@ -4,7 +4,6 @@
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Arr;
-use Illuminate\Support\Str;
use SplFileInfo;
use stdClass;
use Symfony\Component\VarDumper\VarDumper;
@@ -55,8 +54,12 @@ public function bearerToken()
{
$header = $this->header('Authorization', '');
- if (Str::s... | true |
Other | laravel | framework | 9e9bdaf06e9e65057e40f04bc34a0e45c689eb8c.json | Update InteractsWithInput.php (#38426)
* Update InteractsWithInput.php
Recently I came across some conditions that I needed to send both `Basic` and `Bearer` token. As we can send `Authorization Basic X, Bearer Y` we need to change logic how to get token from the `Authorization` header.
* Update InteractsWithInp... | tests/Http/HttpRequestTest.php | @@ -695,6 +695,15 @@ public function testHeaderMethod()
$this->assertSame('foo', $all['do-this'][0]);
}
+ public function testBearerTokenMethod()
+ {
+ $request = Request::create('/', 'GET', [], [], [], ['HTTP_AUTHORIZATION' => 'Bearer foo']);
+ $this->assertSame('foo', $request->bea... | true |
Other | laravel | framework | f43091f78e1021f0156f834ee685ec46cda83a54.json | accept only array | src/Illuminate/Database/Eloquent/Model.php | @@ -437,12 +437,11 @@ public function qualifyColumn($column)
/**
* Qualify the column's lists name by the model's table.
*
- * @param array|mixed $columns
+ * @param array $columns
* @return array
*/
public function qualifyColumns($columns)
{
- $columns = is_arr... | true |
Other | laravel | framework | f43091f78e1021f0156f834ee685ec46cda83a54.json | accept only array | tests/Database/DatabaseEloquentBuilderTest.php | @@ -203,7 +203,6 @@ public function testQualifyColumns()
$builder->setModel(new EloquentModelStub);
- $this->assertEquals(['stub.column', 'stub.name'], $builder->qualifyColumns('column', 'name'));
$this->assertEquals(['stub.column', 'stub.name'], $builder->qualifyColumns(['column', 'name'])... | true |
Other | laravel | framework | 03bf7d5c917dc6b548c158645777cac1ac1aa239.json | try fix last test | tests/Database/DatabaseEloquentBuilderTest.php | @@ -203,8 +203,8 @@ public function testQualifyColumns()
$builder->setModel(new EloquentModelStub);
- $this->assertEquals(['stub.column', 'stub.name'], $builder->qualifyColumns(['column', 'name']));
$this->assertEquals(['stub.column', 'stub.name'], $builder->qualifyColumns('column', 'name')... | false |
Other | laravel | framework | 587668fcf51a329fa6618a97cbb80bce2a855e10.json | fix code style 6 | src/Illuminate/Database/Eloquent/Model.php | @@ -447,8 +447,8 @@ public function qualifyColumns($columns)
foreach ($columns as $column) {
$qualifiedArray[] = $this->qualifyColumn($column);
- }
-
+ }
+
return $qualifiedArray;
}
| false |
Other | laravel | framework | 69015fc853c47ce54d9ad36d8c8874c85ccf0bbb.json | fix code style 5 | src/Illuminate/Database/Eloquent/Model.php | @@ -448,6 +448,7 @@ public function qualifyColumns($columns)
foreach ($columns as $column) {
$qualifiedArray[] = $this->qualifyColumn($column);
}
+
return $qualifiedArray;
}
| false |
Other | laravel | framework | b3a61698a6455dc9ff4e0134bed9a8239d8b9d70.json | fix code style 4 | src/Illuminate/Database/Eloquent/Model.php | @@ -443,13 +443,11 @@ public function qualifyColumn($column)
public function qualifyColumns($columns)
{
$columns = is_array($columns) ? $columns : func_get_args();
-
$qualifiedArray = [];
foreach ($columns as $column) {
$qualifiedArray[] = $this->qualifyColumn... | false |
Other | laravel | framework | 3a7d9ac0c9d731f9626ca707cc154af9fb3799ff.json | fix code style 3 | src/Illuminate/Database/Eloquent/Model.php | @@ -443,7 +443,9 @@ public function qualifyColumn($column)
public function qualifyColumns($columns)
{
$columns = is_array($columns) ? $columns : func_get_args();
+
$qualifiedArray = [];
+
foreach ($columns as $column) {
$qualifiedArray[] = $this->qualifyColumn($... | false |
Other | laravel | framework | 4883bb5ae32ba3b79a67598932b648f8f85ecf32.json | fix code style 2 | src/Illuminate/Database/Eloquent/Model.php | @@ -447,6 +447,7 @@ public function qualifyColumns($columns)
foreach ($columns as $column) {
$qualifiedArray[] = $this->qualifyColumn($column);
}
+
return $qualifiedArray;
}
| false |
Other | laravel | framework | e336ecac583c6607a3719c362dc3a745e3fd7c0a.json | fix code style | src/Illuminate/Database/Eloquent/Model.php | @@ -440,11 +440,11 @@ public function qualifyColumn($column)
* @param array|mixed $columns
* @return array
*/
- public function qualifyColumns($columns)
+ public function qualifyColumns($columns)
{
$columns = is_array($columns) ? $columns : func_get_args();
$qualifiedAr... | false |
Other | laravel | framework | fb58f1906e7a486759393aa6dbfdf35615c82add.json | fix simple test | tests/Database/DatabaseEloquentBuilderTest.php | @@ -203,8 +203,7 @@ public function testQualifyColumns()
$builder->setModel(new EloquentModelStub);
- $this->assertEquals(['stub.column', 'stub.column2', 'stub.column3'], $builder->qualifyColumns('column', 'column2', 'column3'));
- $this->assertEquals(['stub.column', 'stub.column2', 'stub.col... | false |
Other | laravel | framework | d373a1c3c17fb8b830e5e8e3949016694f0713ff.json | Define qualifyColumns method | src/Illuminate/Database/Eloquent/Model.php | @@ -434,6 +434,20 @@ public function qualifyColumn($column)
return $this->getTable().'.'.$column;
}
+ /**
+ * Qualify the column's lists name by the model's table.
+ *
+ * @param array|mixed $columns
+ * @return array
+ */
+ public function qualifyColumns(...$columns) {
+ ... | false |
Other | laravel | framework | 3a8efd737a93e828267cfcfbd6eea370a3b4180b.json | Remove unecessary @method doc (#38392) | src/Illuminate/Support/Facades/Queue.php | @@ -21,7 +21,6 @@
* @method static void assertPushed(string|\Closure $job, callable|int $callback = null)
* @method static void assertPushedOn(string $queue, string|\Closure $job, callable|int $callback = null)
* @method static void assertPushedWithChain(string $job, array $expectedChain = [], callable $callback ... | false |
Other | laravel | framework | ff9d29e455829bd404680b4f31be33b7dcbbaf23.json | Create a test for TestComponent Class | tests/Foundation/Testing/Concerns/InteractsWithViewsTest.php | @@ -3,6 +3,7 @@
namespace Illuminate\Tests\Foundation\Testing\Concerns;
use Illuminate\Foundation\Testing\Concerns\InteractsWithViews;
+use Illuminate\View\Component;
use Orchestra\Testbench\TestCase;
class InteractsWithViewsTest extends TestCase
@@ -15,4 +16,19 @@ public function testBladeCorrectlyRendersStrin... | false |
Other | laravel | framework | 59b674a31492dae75c1407cd3f14b03c80ca145e.json | Apply fixes from StyleCI | tests/Support/SupportReflectsClosuresTest.php | @@ -74,7 +74,7 @@ public function testItWorksWithUnionTypes()
ExampleParameter::class,
], $types);
- $types = ReflectsClosuresClass::reflectFirstAll(function (ExampleParameter|AnotherExampleParameter $a, $b) {
+ $types = ReflectsClosuresClass::reflectFirstAll(function (ExampleParam... | false |
Other | laravel | framework | 8cbdf8fa668898c98b750c394e555c2db682b2b2.json | Apply fixes from StyleCI | tests/Integration/Foundation/Fixtures/EventDiscovery/UnionListeners/UnionListener.php | @@ -7,7 +7,7 @@
class UnionListener
{
- public function handle(EventOne|EventTwo $event)
+ public function handle(EventOne | EventTwo $event)
{
//
} | false |
Other | laravel | framework | 8c65b3d8edf245ea0dbb13ed203eb23209b2b8fe.json | Support union types on event discovery (#38383)
* support union types on event discovery
* add test
* add test
* fix tests
* extract method | src/Illuminate/Foundation/Events/DiscoverEvents.php | @@ -21,11 +21,23 @@ class DiscoverEvents
*/
public static function within($listenerPath, $basePath)
{
- return collect(static::getListenerEvents(
+ $listeners = collect(static::getListenerEvents(
(new Finder)->files()->in($listenerPath), $basePath
- ))->mapToDictionary(... | true |
Other | laravel | framework | 8c65b3d8edf245ea0dbb13ed203eb23209b2b8fe.json | Support union types on event discovery (#38383)
* support union types on event discovery
* add test
* add test
* fix tests
* extract method | src/Illuminate/Support/Reflector.php | @@ -5,6 +5,7 @@
use ReflectionClass;
use ReflectionMethod;
use ReflectionNamedType;
+use ReflectionUnionType;
class Reflector
{
@@ -69,6 +70,45 @@ public static function getParameterClassName($parameter)
return;
}
+ return static::getTypeName($parameter, $type);
+ }
+
+ /**
+... | true |
Other | laravel | framework | 8c65b3d8edf245ea0dbb13ed203eb23209b2b8fe.json | Support union types on event discovery (#38383)
* support union types on event discovery
* add test
* add test
* fix tests
* extract method | tests/Integration/Foundation/DiscoverEventsTest.php | @@ -8,6 +8,7 @@
use Illuminate\Tests\Integration\Foundation\Fixtures\EventDiscovery\Listeners\AbstractListener;
use Illuminate\Tests\Integration\Foundation\Fixtures\EventDiscovery\Listeners\Listener;
use Illuminate\Tests\Integration\Foundation\Fixtures\EventDiscovery\Listeners\ListenerInterface;
+use Illuminate\Test... | true |
Other | laravel | framework | 8c65b3d8edf245ea0dbb13ed203eb23209b2b8fe.json | Support union types on event discovery (#38383)
* support union types on event discovery
* add test
* add test
* fix tests
* extract method | tests/Integration/Foundation/Fixtures/EventDiscovery/UnionListeners/UnionListener.php | @@ -0,0 +1,14 @@
+<?php
+
+namespace Illuminate\Tests\Integration\Foundation\Fixtures\EventDiscovery\UnionListeners;
+
+use Illuminate\Tests\Integration\Foundation\Fixtures\EventDiscovery\Events\EventOne;
+use Illuminate\Tests\Integration\Foundation\Fixtures\EventDiscovery\Events\EventTwo;
+
+class UnionListener
+{
+ ... | true |
Other | laravel | framework | a3eebe0c883759b2503b77195e66cd863fce5948.json | fix styleCI issue | src/Illuminate/Http/Client/PendingRequest.php | @@ -808,7 +808,7 @@ public function createClient($handlerStack)
}
/**
- * add handlers to the handler stack
+ * add handlers to the handler stack.
*
* @param \GuzzleHttp\HandlerStack $handlerStack
* @return \GuzzleHttp\HandlerStack
@@ -1046,7 +1046,7 @@ public function setClient(... | true |
Other | laravel | framework | a3eebe0c883759b2503b77195e66cd863fce5948.json | fix styleCI issue | src/Illuminate/Http/Client/Pool.php | @@ -17,7 +17,7 @@ class Pool
protected $factory;
/**
- * The handler function for Guzzle client
+ * The handler function for Guzzle client.
*
* @var callable
*/ | true |
Other | laravel | framework | a3eebe0c883759b2503b77195e66cd863fce5948.json | fix styleCI issue | tests/Http/HttpClientTest.php | @@ -958,7 +958,6 @@ public function testTheRequestSendingAndResponseReceivedEventsAreFiredWhenAReque
];
});
-
m::close();
}
| true |
Other | laravel | framework | f8b9392b9f2651db566a67fa57fc3e285463bbf6.json | add test for async request fire events | tests/Http/HttpClientTest.php | @@ -940,6 +940,28 @@ public function testTheRequestSendingAndResponseReceivedEventsAreFiredWhenAReque
m::close();
}
+ public function testTheRequestSendingAndResponseReceivedEventsAreFiredWhenARequestIsSentAsync()
+ {
+ $events = m::mock(Dispatcher::class);
+ $events->shouldReceive('... | false |
Other | laravel | framework | 94c1b8a72250b07d4a16233f545f1ec8bc195f9a.json | Fix incorrect type | src/Illuminate/Http/Exceptions/PostTooLargeException.php | @@ -10,13 +10,13 @@ class PostTooLargeException extends HttpException
/**
* Create a new "post too large" exception instance.
*
- * @param string|null $message
+ * @param string $message
* @param \Throwable|null $previous
* @param array $headers
* @param int $code
... | false |
Other | laravel | framework | f67efea418b541dd3e6e083335f40a848f8660f4.json | Update return type for tap (#38353)
`when` already has `$this|mixed` so this should be reflected in `tap` on `BuildsQueries`. If you look at the logic inside `when` you'll see that this is the correct return type as it's either the return value of the given callback or `$this`. A previous attempt was made here: https:... | src/Illuminate/Database/Concerns/BuildsQueries.php | @@ -422,7 +422,7 @@ protected function cursorPaginator($items, $perPage, $cursor, $options)
* Pass the query to a given callback.
*
* @param callable $callback
- * @return $this
+ * @return $this|mixed
*/
public function tap($callback)
{ | false |
Other | laravel | framework | ede6ee6b8743449cbef3fa4b59f115cf764c24e0.json | Fix wrong PHPDoc (#38336) | src/Illuminate/Database/Query/JoinClause.php | @@ -104,7 +104,7 @@ public function on($first, $operator = null, $second = null, $boolean = 'and')
*
* @param \Closure|string $first
* @param string|null $operator
- * @param string|null $second
+ * @param \Illuminate\Database\Query\Expression|string|null $second
* @return \Illum... | false |
Other | laravel | framework | bc1188d74d434ea2b8e9e7f60642cbc67f85956a.json | add stringable support for isUuid (#38330) | src/Illuminate/Support/Stringable.php | @@ -258,6 +258,16 @@ public function isAscii()
return Str::isAscii($this->value);
}
+ /**
+ * Determine if a given string is a valid UUID.
+ *
+ * @return bool
+ */
+ public function isUuid()
+ {
+ return Str::isUuid($this->value);
+ }
+
/**
* Determine if t... | true |
Other | laravel | framework | bc1188d74d434ea2b8e9e7f60642cbc67f85956a.json | add stringable support for isUuid (#38330) | tests/Support/SupportStringableTest.php | @@ -31,6 +31,12 @@ public function testIsAscii()
$this->assertFalse($this->stringable('ù')->isAscii());
}
+ public function testIsUuid()
+ {
+ $this->assertTrue($this->stringable('2cdc7039-65a6-4ac7-8e5d-d554a98e7b15')->isUuid());
+ $this->assertFalse($this->stringable('2cdc7039-65a6... | true |
Other | laravel | framework | be94e7bf403c044446f060b940c8d641d28a9a1f.json | Apply fixes from StyleCI | tests/Cache/CacheRateLimiterTest.php | @@ -89,7 +89,7 @@ public function testAttemptsCallbackReturnsTrue()
$rateLimiter = new RateLimiter($cache);
- $this->assertTrue($rateLimiter->attempt('key', 1, function() use (&$executed) {
+ $this->assertTrue($rateLimiter->attempt('key', 1, function () use (&$executed) {
$execut... | false |
Other | laravel | framework | 9b7491e31381bad1216d018973563d996c77c082.json | add bitwise not operator (#38316) | src/Illuminate/Database/Query/Builder.php | @@ -195,7 +195,7 @@ class Builder
public $operators = [
'=', '<', '>', '<=', '>=', '<>', '!=', '<=>',
'like', 'like binary', 'not like', 'ilike',
- '&', '|', '^', '<<', '>>',
+ '&', '|', '^', '<<', '>>', '&~',
'rlike', 'not rlike', 'regexp', 'not regexp',
'~', '~*'... | false |
Other | laravel | framework | c77fcbe68d25be7805d334f4e22068f34493312d.json | Fix Factory hasMany method (#38319) | src/Illuminate/Database/Eloquent/Factories/Factory.php | @@ -211,9 +211,9 @@ public function createOne($attributes = [])
public function createMany(iterable $records)
{
return new EloquentCollection(
- array_map(function ($record) {
+ collect($records)->map(function ($record) {
return $this->state($record)->create();
... | false |
Other | laravel | framework | a31b48afc92668ac02c29ed322734bf25e49f9d3.json | Add ReturnTypeWillChange to SplFileInfo usage | src/Illuminate/Http/Testing/File.php | @@ -107,6 +107,7 @@ public function size($kilobytes)
*
* @return int
*/
+ #[\ReturnTypeWillChange]
public function getSize()
{
return $this->sizeToReport ?: parent::getSize(); | false |
Other | laravel | framework | f1427d16220fa2b47b7314f29247593600b720ab.json | use type hints in cast.stub (#38234) | src/Illuminate/Foundation/Console/stubs/cast.stub | @@ -15,7 +15,7 @@ class {{ class }} implements CastsAttributes
* @param array $attributes
* @return mixed
*/
- public function get($model, $key, $value, $attributes)
+ public function get($model, string $key, $value, array $attributes)
{
return $value;
}
@@ -29,7 +29,7 @@ cl... | false |
Other | laravel | framework | 72da4ec576fb195536a488b1fbe3234bfacbd944.json | Fix resource type in DocBlocks (#38218) | src/Illuminate/Http/Client/PendingRequest.php | @@ -181,7 +181,7 @@ public function baseUrl(string $url)
/**
* Attach a raw body to the request.
*
- * @param resource|string $content
+ * @param string $content
* @param string $contentType
* @return $this
*/
@@ -220,7 +220,7 @@ public function asForm()
* Attach a... | false |
Other | laravel | framework | f99752151ec05f3eb572f5bc00b2fdcbed45a51a.json | Apply fixes from StyleCI | src/Illuminate/Validation/Concerns/ValidatesAttributes.php | @@ -51,7 +51,6 @@ public function validateAccepted($attribute, $value)
*/
public function validateAcceptedIf($attribute, $value, $parameters)
{
-
$acceptable = ['yes', 'on', '1', 1, true, 'true'];
$this->requireParameterCount(2, $parameters, 'accepted_if'); | true |
Other | laravel | framework | f99752151ec05f3eb572f5bc00b2fdcbed45a51a.json | Apply fixes from StyleCI | tests/Validation/ValidationValidatorTest.php | @@ -1773,7 +1773,6 @@ public function testValidateAccepted()
public function testValidateAcceptedIf()
{
-
$trans = $this->getIlluminateArrayTranslator();
$v = new Validator($trans, ['foo' => 'no', 'bar' => 'aaa'], ['foo' => 'accepted_if:bar,aaa']);
$this->assertFalse($v->passes())... | true |
Other | laravel | framework | 9581cd6feb5be3e21c5b32ef154431f63eae89a8.json | Remove ext-json from composer.json (#38202) | composer.json | @@ -16,7 +16,6 @@
],
"require": {
"php": "^8.0",
- "ext-json": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
"doctrine/inflector": "^2.0", | false |
Other | laravel | framework | e24acf0f8cb319d057853a2727821d674bdda552.json | Fix previous column for cursor pagination (#38203) | src/Illuminate/Database/Concerns/BuildsQueries.php | @@ -305,7 +305,11 @@ protected function paginateUsingCursor($perPage, $columns = ['*'], $cursorName =
if (! is_null($cursor)) {
$addCursorConditions = function (self $builder, $previousColumn, $i) use (&$addCursorConditions, $cursor, $orders) {
if (! is_null($previousColumn)) {
- ... | false |
Other | laravel | framework | 43b08f8cb378133d9a047fda703ac90e27a66cbc.json | add supporting test (#38179) | tests/Validation/ValidationUniqueRuleTest.php | @@ -81,6 +81,17 @@ public function testItCorrectlyFormatsAStringVersionOfTheRule()
$rule->where('foo', '"bar"');
$this->assertSame('unique:table,NULL,NULL,id,foo,"""bar"""', (string) $rule);
}
+
+ public function testItIgnoresSoftDeletes()
+ {
+ $rule = new Unique('table');
+ ... | false |
Other | laravel | framework | 70490255a2249045699d0c9878f9fe847ad659b3.json | Add twiceDailyAt schedule frequency (#38174) | src/Illuminate/Console/Scheduling/ManagesFrequencies.php | @@ -262,10 +262,23 @@ public function dailyAt($time)
* @return $this
*/
public function twiceDaily($first = 1, $second = 13)
+ {
+ return $this->twiceDailyAt($first, $second, 0);
+ }
+
+ /**
+ * Schedule the event to run twice daily at a given offset.
+ *
+ * @param int $f... | true |
Other | laravel | framework | 70490255a2249045699d0c9878f9fe847ad659b3.json | Add twiceDailyAt schedule frequency (#38174) | tests/Console/Scheduling/FrequencyTest.php | @@ -57,6 +57,11 @@ public function testTwiceDaily()
$this->assertSame('0 3,15 * * *', $this->event->twiceDaily(3, 15)->getExpression());
}
+ public function testTwiceDailyAt()
+ {
+ $this->assertSame('5 3,15 * * *', $this->event->twiceDailyAt(3, 15, 5)->getExpression());
+ }
+
publi... | true |
Other | laravel | framework | 6662f49fe83d0898cddb8d1beee5c1a507a92514.json | fix error message | src/Illuminate/Foundation/Console/VendorPublishCommand.php | @@ -169,7 +169,7 @@ protected function publishTag($tag)
}
if ($published === false) {
- $this->error('Unable to locate publishable resources.');
+ $this->comment('No publishable resources for tag ['.$tag.'].');
} else {
$this->laravel['events']->dispatch(n... | false |
Other | laravel | framework | eaacad4ad2a8e4cecdb1d98a344e1d16206415f4.json | Add cache_locks table to stub. (#38152) | src/Illuminate/Cache/Console/stubs/cache.stub | @@ -18,6 +18,12 @@ class CreateCacheTable extends Migration
$table->mediumText('value');
$table->integer('expiration');
});
+
+ Schema::create('cache_locks', function (Blueprint $table) {
+ $table->string('key')->primary();
+ $table->string('owner');
+ ... | false |
Other | laravel | framework | 7bd4e6dc547526d072374eb4846e31369987d66f.json | Apply fixes from StyleCI | src/Illuminate/Testing/TestResponse.php | @@ -17,7 +17,6 @@
use Illuminate\Testing\Assert as PHPUnit;
use Illuminate\Testing\Constraints\SeeInOrder;
use Illuminate\Testing\Fluent\AssertableJson;
-use Illuminate\Validation\ValidationException;
use LogicException;
use Symfony\Component\HttpFoundation\StreamedResponse;
| false |
Other | laravel | framework | 5ca5768db439887217c86031ff7dd3bdf56cc466.json | add hook to configure broadcastable model event | src/Illuminate/Database/Eloquent/BroadcastsEvents.php | @@ -124,7 +124,7 @@ protected function broadcastIfBroadcastChannelsExistForEvent($instance, $event,
*/
public function newBroadcastableModelEvent($event)
{
- return tap(new BroadcastableModelEventOccurred($this, $event), function ($event) {
+ return tap($this->withBroadcastableEvent(new Br... | false |
Other | laravel | framework | fed2a297b89b8dadf3a3d95c608dfc3b025be532.json | Remove PHPUnit\Util\InvalidArgumentHelper (#38081) | src/Illuminate/Testing/Assert.php | @@ -10,7 +10,6 @@
use PHPUnit\Framework\Constraint\LogicalNot;
use PHPUnit\Framework\Constraint\RegularExpression;
use PHPUnit\Framework\InvalidArgumentException;
-use PHPUnit\Util\InvalidArgumentHelper;
/**
* @internal This class is not meant to be used or overwritten outside the framework itself.
@@ -29,19 +2... | false |
Other | laravel | framework | ab5fd4bfc2a93283c26a4bfbc63f48355694bca4.json | update php8 string function (#38071) | src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php | @@ -702,8 +702,8 @@ protected function serializeClassCastableAttribute($key, $value)
*/
protected function isCustomDateTimeCast($cast)
{
- return strncmp($cast, 'date:', 5) === 0 ||
- strncmp($cast, 'datetime:', 9) === 0;
+ return str_starts_with($cast, 'date:') ||
+ ... | false |
Other | laravel | framework | 227c71b3011740987fab7cf317312bbfb02b562c.json | Fix PHPDocs for JSON resources (#38044) | src/Illuminate/Http/Resources/Json/JsonResource.php | @@ -109,7 +109,7 @@ public function resolve($request = null)
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
- * @return array
+ * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
*/
public function toArray($request)
... | true |
Other | laravel | framework | 227c71b3011740987fab7cf317312bbfb02b562c.json | Fix PHPDocs for JSON resources (#38044) | src/Illuminate/Http/Resources/Json/ResourceCollection.php | @@ -94,7 +94,7 @@ public function count()
* Transform the resource into a JSON array.
*
* @param \Illuminate\Http\Request $request
- * @return array
+ * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
*/
public function toArray($request)
{ | true |
Other | laravel | framework | f3fad6c8d5c80c62839482be99851692ba4feb96.json | Fix PHPDocs of query builder (#38061) | src/Illuminate/Database/Query/Builder.php | @@ -407,7 +407,7 @@ public function addSelect($column)
/**
* Force the query to only return distinct results.
*
- * @param mixed $distinct,...
+ * @param mixed ...$distinct
* @return $this
*/
public function distinct() | false |
Other | laravel | framework | b1ed53e5a4cc11730ad5eda8d2d5adb6424421ce.json | allow eloquent model type in be/actingAs (#38055) | src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php | @@ -9,7 +9,7 @@ trait InteractsWithAuthentication
/**
* Set the currently logged in user for the application.
*
- * @param \Illuminate\Contracts\Auth\Authenticatable $user
+ * @param \Illuminate\Contracts\Auth\Authenticatable|\Illuminate\Database\Eloquent\Model $user
* @param string|... | false |
Other | laravel | framework | 943ed618870ad525824693d2dc9a0db1a20c36d0.json | Add macroable trait to filesystem adapter (#38030) | src/Illuminate/Filesystem/FilesystemAdapter.php | @@ -11,6 +11,7 @@
use Illuminate\Support\Arr;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
+use Illuminate\Support\Traits\Macroable;
use InvalidArgumentException;
use League\Flysystem\Adapter\Ftp;
use League\Flysystem\Adapter\Local as LocalAdapter;
@@ -32,6 +33,10 @@
*/
class FilesystemAdapte... | true |
Other | laravel | framework | 943ed618870ad525824693d2dc9a0db1a20c36d0.json | Add macroable trait to filesystem adapter (#38030) | tests/Filesystem/FilesystemAdapterTest.php | @@ -319,4 +319,16 @@ public function testPutFileWithAbsoluteFilePath()
'uploaded file content'
);
}
+
+ public function testMacroable()
+ {
+ $this->filesystem->write('foo.txt', 'Hello World');
+
+ $filesystemAdapter = new FilesystemAdapter($this->filesystem);
+ $fi... | true |
Other | laravel | framework | 035a0b2e2da129bac2756b1ee3ee10bb8bcda569.json | accept closure for sleepMilliseconds (#38035) | src/Illuminate/Support/helpers.php | @@ -216,7 +216,7 @@ function preg_replace_array($pattern, array $replacements, $subject)
*
* @param int $times
* @param callable $callback
- * @param int $sleepMilliseconds
+ * @param int|\Closure $sleepMilliseconds
* @param callable|null $when
* @return mixed
*
@@ ... | true |
Other | laravel | framework | 035a0b2e2da129bac2756b1ee3ee10bb8bcda569.json | accept closure for sleepMilliseconds (#38035) | tests/Support/SupportHelpersTest.php | @@ -555,6 +555,27 @@ public function testRetry()
$this->assertEqualsWithDelta(0.1, microtime(true) - $startTime, 0.02);
}
+ public function testRetryWithPassingSleepCallback()
+ {
+ $startTime = microtime(true);
+
+ $attempts = retry(3, function ($attempts) {
+ if ($attemp... | true |
Other | laravel | framework | 8059b393eb45749d7e8840a41f33c99b2f4acafd.json | Use string based accessor for Schema facade | src/Illuminate/Database/DatabaseServiceProvider.php | @@ -72,6 +72,10 @@ protected function registerConnectionServices()
return $app['db']->connection();
});
+ $this->app->bind('db.schema', function ($app) {
+ return $app['db']->connection()->getSchemaBuilder();
+ });
+
$this->app->singleton('db.transactions', func... | true |
Other | laravel | framework | 8059b393eb45749d7e8840a41f33c99b2f4acafd.json | Use string based accessor for Schema facade | src/Illuminate/Foundation/Application.php | @@ -1304,6 +1304,7 @@ public function registerCoreContainerAliases()
'cookie' => [\Illuminate\Cookie\CookieJar::class, \Illuminate\Contracts\Cookie\Factory::class, \Illuminate\Contracts\Cookie\QueueingFactory::class],
'db' => [\Illuminate\Database\DatabaseManager::class, \Illuminate\Database\C... | true |
Other | laravel | framework | 8059b393eb45749d7e8840a41f33c99b2f4acafd.json | Use string based accessor for Schema facade | src/Illuminate/Support/Facades/Facade.php | @@ -23,6 +23,13 @@ abstract class Facade
*/
protected static $resolvedInstance;
+ /**
+ * Determine if the resolved facade should be cached.
+ *
+ * @var bool
+ */
+ protected static $cached = true;
+
/**
* Run a Closure when the facade has been resolved.
*
@@ -84,8 +... | true |
Other | laravel | framework | 8059b393eb45749d7e8840a41f33c99b2f4acafd.json | Use string based accessor for Schema facade | src/Illuminate/Support/Facades/RateLimiter.php | @@ -24,6 +24,6 @@ class RateLimiter extends Facade
*/
protected static function getFacadeAccessor()
{
- return 'Illuminate\Cache\RateLimiter';
+ return \Illuminate\Cache\RateLimiter::class;
}
} | true |
Other | laravel | framework | 8059b393eb45749d7e8840a41f33c99b2f4acafd.json | Use string based accessor for Schema facade | src/Illuminate/Support/Facades/Schema.php | @@ -24,6 +24,13 @@
*/
class Schema extends Facade
{
+ /**
+ * Determine if the resolved facade should be cached.
+ *
+ * @var bool
+ */
+ protected static $cached = false;
+
/**
* Get a schema builder instance for a connection.
*
@@ -36,12 +43,12 @@ public static function conn... | true |
Other | laravel | framework | 8059b393eb45749d7e8840a41f33c99b2f4acafd.json | Use string based accessor for Schema facade | tests/Database/DatabaseMigratorIntegrationTest.php | @@ -41,6 +41,9 @@ protected function setUp(): void
$container = new Container;
$container->instance('db', $db->getDatabaseManager());
+ $container->bind('db.schema', function ($app) {
+ return $app['db']->connection()->getSchemaBuilder();
+ });
Facade::setFacadeAp... | true |
Other | laravel | framework | 7bfc3154dce4576aca44054e8c7359ee2346d6f6.json | Remove CursorPaginationException (#37995) | src/Illuminate/Pagination/CursorPaginationException.php | @@ -1,13 +0,0 @@
-<?php
-
-namespace Illuminate\Pagination;
-
-use RuntimeException;
-
-/**
- * @deprecated Will be removed in a future Laravel version.
- */
-class CursorPaginationException extends RuntimeException
-{
- //
-} | false |
Other | laravel | framework | b75203ef337c22bec4918c26dbfc529f8dbf13ba.json | Simplify Application.php (#37977) | src/Illuminate/Foundation/Application.php | @@ -638,7 +638,7 @@ public function runningUnitTests()
*/
public function registerConfiguredProviders()
{
- $providers = Collection::make($this->config['app.providers'])
+ $providers = Collection::make($this->make('config')->get('app.providers'))
->partition(functi... | false |
Other | laravel | framework | eefdaddbf78bd917e45519b0fedde000069b1048.json | return a 'boolean' rather than 'mixed' | src/Illuminate/Foundation/Console/stubs/policy.stub | @@ -14,7 +14,7 @@ class {{ class }}
* Determine whether the user can view any models.
*
* @param \{{ namespacedUserModel }} $user
- * @return mixed
+ * @return bool
*/
public function viewAny({{ user }} $user)
{
@@ -26,7 +26,7 @@ class {{ class }}
*
* @param \{{ ... | false |
Other | laravel | framework | 3ade2155a2af35964ee99f583f0a30d8ce70cb23.json | Add missing params in docblocks | src/Illuminate/Database/PDO/Connection.php | @@ -110,7 +110,7 @@ public function lastInsertId($name = null)
/**
* Create a new statement instance.
*
- * @param \PDOStatement
+ * @param \PDOStatement $stmt
* @return \Doctrine\DBAL\Driver\PDO\Statement
*/
protected function createStatement(PDOStatement $stmt): Statement | true |
Other | laravel | framework | 3ade2155a2af35964ee99f583f0a30d8ce70cb23.json | Add missing params in docblocks | src/Illuminate/Database/Schema/SqliteSchemaState.php | @@ -9,7 +9,7 @@ class SqliteSchemaState extends SchemaState
/**
* Dump the database's schema into a file.
*
- * @param \Illuminate\Database\Connection
+ * @param \Illuminate\Database\Connection $connection
* @param string $path
* @return void
*/ | true |
Other | laravel | framework | 3ade2155a2af35964ee99f583f0a30d8ce70cb23.json | Add missing params in docblocks | src/Illuminate/Foundation/Http/Kernel.php | @@ -459,7 +459,7 @@ public function getApplication()
/**
* Set the Laravel application instance.
*
- * @param \Illuminate\Contracts\Foundation\Application
+ * @param \Illuminate\Contracts\Foundation\Application $app
* @return $this
*/
public function setApplication(Applicati... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.