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
2a922bc0d83ebdf4199ff8fa75088b27c9c41083.json
Add hasScope function to the Base Model
src/Illuminate/Database/Eloquent/Builder.php
@@ -1373,8 +1373,8 @@ public function __call($method, $parameters) return call_user_func_array(static::$macros[$method], $parameters); } - if (method_exists($this->model, $scope = 'scope'.ucfirst($method))) { - return $this->callScope([$this->model, $scope], $parameters); + if ($this->model->hasScope($method)) { + return $this->callScope([$this->model, 'scope' . ucfirst($method)], $parameters); } if (in_array($method, $this->passthru)) {
true
Other
laravel
framework
2a922bc0d83ebdf4199ff8fa75088b27c9c41083.json
Add hasScope function to the Base Model
src/Illuminate/Database/Eloquent/Model.php
@@ -331,6 +331,17 @@ public static function isIgnoringTouch($class = null) return false; } + /** + * Determine if the given model has a scope. + * + * @param string $method + * @return bool + */ + public function hasScope(string $method) + { + return method_exists($this, 'scope' . ucfirst($method)); + } + /** * Fill the model with an array of attributes. *
true
Other
laravel
framework
2a922bc0d83ebdf4199ff8fa75088b27c9c41083.json
Add hasScope function to the Base Model
tests/Integration/Database/EloquentModelScopeTest.php
@@ -0,0 +1,33 @@ +<?php + +namespace Illuminate\Tests\Integration\Database; + +use Illuminate\Database\Eloquent\Model; + +/** + * @group integration + */ +class EloquentModelScopeTest extends DatabaseTestCase +{ + public function testModelHasScope() + { + $model = new TestModel1; + + $this->assertTrue($model->hasScope("exists")); + } + + public function testModelDoesNotHaveScope() + { + $model = new TestModel1; + + $this->assertFalse($model->hasScope("doesNotExist")); + } +} + +class TestModel1 extends Model +{ + public function scopeExists() + { + return true; + } +}
true
Other
laravel
framework
055762286132d545cbc064dce645562c0d51532f.json
use single space if plain email is empty
src/Illuminate/Mail/Mailer.php
@@ -331,7 +331,7 @@ protected function addContent($message, $view, $plain, $raw, $data) if (isset($plain)) { $method = isset($view) ? 'addPart' : 'setBody'; - $message->$method($this->renderView($plain, $data), 'text/plain'); + $message->$method($this->renderView($plain, $data) ?: ' ', 'text/plain'); } if (isset($raw)) {
false
Other
laravel
framework
6f1fdddc9c9afc571f3aca51a67b58828a9e35f7.json
Add pdo try again as lost connection message
src/Illuminate/Database/DetectsLostConnections.php
@@ -43,6 +43,7 @@ protected function causedByLostConnection(Throwable $e) 'Connection refused', 'running with the --read-only option so it cannot execute this statement', 'The connection is broken and recovery is not possible. The connection is marked by the client driver as unrecoverable. No attempt was made to restore the connection.', + 'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Try again', ]); } }
false
Other
laravel
framework
6ead73349126c7eee5fd9702c420915f6a02a889.json
Set relation connection on eager loaded MorphTo
src/Illuminate/Database/Eloquent/Relations/MorphTo.php
@@ -151,7 +151,11 @@ public function createModelByType($type) { $class = Model::getActualClassNameForMorph($type); - return new $class; + return tap(new $class, function ($instance) { + if (! $instance->getConnectionName()) { + $instance->setConnection($this->getConnection()->getName()); + } + }); } /**
true
Other
laravel
framework
6ead73349126c7eee5fd9702c420915f6a02a889.json
Set relation connection on eager loaded MorphTo
tests/Database/DatabaseEloquentIntegrationTest.php
@@ -1179,6 +1179,23 @@ public function testMorphToRelationsAcrossDatabaseConnections() $this->assertInstanceOf(EloquentTestItem::class, $item); } + public function testEagerLoadedMorphToRelationsOnAnotherDatabaseConnection() + { + EloquentTestPost::create(['id' => 1, 'name' => 'Default Connection Post', 'user_id' => 1]); + EloquentTestPhoto::create(['id' => 1, 'imageable_type' => EloquentTestPost::class, 'imageable_id' => 1, 'name' => 'Photo']); + + EloquentTestPost::on('second_connection') + ->create(['id' => 1, 'name' => 'Second Connection Post', 'user_id' => 1]); + EloquentTestPhoto::on('second_connection') + ->create(['id' => 1, 'imageable_type' => EloquentTestPost::class, 'imageable_id' => 1, 'name' => 'Photo']); + + $defaultConnectionPost = EloquentTestPhoto::with('imageable')->first()->imageable; + $secondConnectionPost = EloquentTestPhoto::on('second_connection')->with('imageable')->first()->imageable; + + $this->assertEquals($defaultConnectionPost->name, 'Default Connection Post'); + $this->assertEquals($secondConnectionPost->name, 'Second Connection Post'); + } + public function testBelongsToManyCustomPivot() { $john = EloquentTestUserWithCustomFriendPivot::create(['id' => 1, 'name' => 'John Doe', 'email' => 'johndoe@example.com']);
true
Other
laravel
framework
e4dc43f772557c0ca1767d5070cf336006dfa4e0.json
Add ability to test blade components
src/Illuminate/Foundation/Testing/Concerns/InteractsWithViews.php
@@ -41,4 +41,23 @@ protected function blade(string $template, array $data = []) return new TestView(view(Str::before(basename($tempFile), '.blade.php'), $data)); } + + /** + * Create a new TestView from the given view component. + * + * @param string $view + * @param \Illuminate\Contracts\Support\Arrayable|array $data + * @return \Illuminate\Testing\TestView + */ + protected function component(string $viewComponent, array $data = []) + { + $component = $this->app->make($viewComponent, $data); + $view = $component->resolveView(); + + if ($view instanceof \Illuminate\View\View) { + return new TestView($view->with($component->data())); + } + + return new TestView(view($view, $component->data())); + } }
false
Other
laravel
framework
f0639fda45fc2874986fe409d944dde21d42c6f3.json
fix bug in old input check
src/Illuminate/Foundation/Testing/TestResponse.php
@@ -997,7 +997,7 @@ public function assertSessionHasInput($key, $value = null) if (is_null($value)) { PHPUnit::assertTrue( - $this->session()->getOldInput($key), + $this->session()->hasOldInput($key), "Session is missing expected key [{$key}]." ); } elseif ($value instanceof Closure) {
false
Other
laravel
framework
cb523c7d27df194398d88c71af9f849f881d447a.json
Apply fixes from StyleCI (#32600)
src/Illuminate/View/Compilers/ComponentTagCompiler.php
@@ -203,8 +203,8 @@ protected function componentString(string $component, array $attributes) $parameters = $data->all(); } - return " @component('{$class}', '{$component}', [".$this->attributesToString($parameters, $escapeBound = false)."]) -<?php \$component->withAttributes([".$this->attributesToString($attributes->all()).']); ?>'; + return " @component('{$class}', '{$component}', [".$this->attributesToString($parameters, $escapeBound = false).']) +<?php $component->withAttributes(['.$this->attributesToString($attributes->all()).']); ?>'; } /**
false
Other
laravel
framework
7834fe3f4e192008d24a2f82c284e4740ecb74e9.json
Remove illogic test
tests/View/Blade/BladeComponentsTest.php
@@ -11,11 +11,6 @@ public function testComponentsAreCompiled() $this->assertSame('<?php $__env->startComponent(\'foo\'); ?>', $this->compiler->compileString('@component(\'foo\')')); } - public function testExtraAttributesCanBePassedToComponents() - { - $this->assertSame('<?php $__env->startComponent(\'foo\', ["foo" => "bar"], ["foo" => "bar"]); ?>', $this->compiler->compileString('@component(\'foo\', ["foo" => "bar"], ["foo" => "bar"])')); - } - public function testClassComponentsAreCompiled() { $this->assertSame('<?php if (isset($component)) { $__componentOriginal35bda42cbf6f9717b161c4f893644ac7a48b0d98 = $component; } ?>
false
Other
laravel
framework
bb3f0aa147cbcc495716ca710a1c86b255f2fd93.json
Add assertDatabaseCount assertion
src/Illuminate/Foundation/Testing/Concerns/InteractsWithDatabase.php
@@ -5,6 +5,7 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Support\Arr; +use Illuminate\Testing\Constraints\CountInDatabase; use Illuminate\Testing\Constraints\HasInDatabase; use Illuminate\Testing\Constraints\SoftDeletedInDatabase; use PHPUnit\Framework\Constraint\LogicalNot as ReverseConstraint; @@ -47,6 +48,23 @@ protected function assertDatabaseMissing($table, array $data, $connection = null return $this; } + /** + * Assert the count of table entries. + * + * @param string $table + * @param int $count + * @param string|null $connection + * @return $this + */ + protected function assertDatabaseCount($table, int $count, $connection = null) + { + $this->assertThat( + $table, new CountInDatabase($this->getConnection($connection), $count) + ); + + return $this; + } + /** * Assert the given record has been deleted. *
true
Other
laravel
framework
bb3f0aa147cbcc495716ca710a1c86b255f2fd93.json
Add assertDatabaseCount assertion
src/Illuminate/Testing/Constraints/CountInDatabase.php
@@ -0,0 +1,85 @@ +<?php + +namespace Illuminate\Testing\Constraints; + +use ReflectionClass; +use Illuminate\Database\Connection; +use PHPUnit\Framework\Constraint\Constraint; + +class CountInDatabase extends Constraint +{ + + /** + * The database connection. + * + * @var \Illuminate\Database\Connection + */ + protected $database; + + /** + * The expected table entries count that will be checked against the actual count. + * + * @var int + */ + protected $expectedCount; + + /** + * The actual table entries count that will be checked against the expected count. + * + * @var int + */ + protected $actualCount; + + /** + * Create a new constraint instance. + * + * @param \Illuminate\Database\Connection $database + * @param int $expectedCount + * + * @return void + */ + public function __construct(Connection $database, int $expectedCount) + { + $this->expectedCount = $expectedCount; + + $this->database = $database; + } + + /** + * Check if the expected and actual count are equal. + * + * @param string $table + * @return bool + */ + public function matches($table): bool + { + $this->actualCount = $this->database->table($table)->count(); + + return $this->actualCount === $this->expectedCount; + } + + /** + * Get the description of the failure. + * + * @param string $table + * @return string + */ + public function failureDescription($table): string + { + return sprintf( + "table [%s] matches expected entries count of %s. Entries found: %s.\n", + $table, $this->expectedCount, $this->actualCount + ); + } + + /** + * Get a string representation of the object. + * + * @param int $options + * @return string + */ + public function toString($options = 0): string + { + return (new ReflectionClass($this))->name; + } +}
true
Other
laravel
framework
bb3f0aa147cbcc495716ca710a1c86b255f2fd93.json
Add assertDatabaseCount assertion
tests/Foundation/FoundationInteractsWithDatabaseTest.php
@@ -103,6 +103,22 @@ public function testDontSeeInDatabaseFindsResults() $this->assertDatabaseMissing($this->table, $this->data); } + public function testAssertTableEntriesCount() + { + $this->mockCountBuilder(1); + + $this->assertDatabaseCount($this->table, 1); + } + + public function testAssertTableEntriesCountWrong() + { + $this->expectException(ExpectationFailedException::class); + $this->expectExceptionMessage('Failed asserting that table [products] matches expected entries count of 3. Entries found: 1.'); + $this->mockCountBuilder(1); + + $this->assertDatabaseCount($this->table, 3); + } + public function testAssertDeletedPassesWhenDoesNotFindResults() { $this->mockCountBuilder(0);
true
Other
laravel
framework
a29b94f0dc78f5c4111b36a8acaa6ce818cd8709.json
Apply fixes from StyleCI (#32581)
src/Illuminate/Database/DatabaseServiceProvider.php
@@ -85,7 +85,7 @@ protected function registerEloquentFactory() $locale = $parameters['locale'] ?? $app['config']->get('app.faker_locale', 'en_US'); if (! isset(static::$fakers[$locale])) { - static::$fakers[$locale] = FakerFactory::create($locale);; + static::$fakers[$locale] = FakerFactory::create($locale); } return static::$fakers[$locale];
false
Other
laravel
framework
fa62732859f6e13cfa94ef25f0d54a2246945084.json
Apply fixes from StyleCI (#32582)
src/Illuminate/Database/DatabaseServiceProvider.php
@@ -84,7 +84,7 @@ protected function registerEloquentFactory() $locale = $parameters['locale'] ?? $app['config']->get('app.faker_locale', 'en_US'); if (! isset(static::$fakers[$locale])) { - static::$fakers[$locale] = FakerFactory::create($locale);; + static::$fakers[$locale] = FakerFactory::create($locale); } return static::$fakers[$locale];
false
Other
laravel
framework
33a5ea396a7d220c5cd8e76f1e02abf069a76ad0.json
Apply fixes from StyleCI (#32581)
src/Illuminate/Database/DatabaseServiceProvider.php
@@ -85,7 +85,7 @@ protected function registerEloquentFactory() $locale = $parameters['locale'] ?? $app['config']->get('app.faker_locale', 'en_US'); if (! isset(static::$fakers[$locale])) { - static::$fakers[$locale] = FakerFactory::create($locale);; + static::$fakers[$locale] = FakerFactory::create($locale); } return static::$fakers[$locale];
false
Other
laravel
framework
0deda1a8780b57d7a26b9317de90556432029df2.json
Apply fixes from StyleCI (#32575)
tests/View/Blade/BladeComponentTagCompilerTest.php
@@ -5,7 +5,6 @@ use Illuminate\Container\Container; use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\View\Factory; -use Illuminate\Filesystem\Filesystem; use Illuminate\View\Compilers\BladeCompiler; use Illuminate\View\Compilers\ComponentTagCompiler; use Illuminate\View\Component;
false
Other
laravel
framework
4d13ad92ee9dd881d7eb59dde0f31572b8605cf5.json
Apply fixes from StyleCI (#32573)
tests/View/Blade/BladeComponentTagCompilerTest.php
@@ -5,7 +5,6 @@ use Illuminate\Container\Container; use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\View\Factory; -use Illuminate\Filesystem\Filesystem; use Illuminate\View\Compilers\BladeCompiler; use Illuminate\View\Compilers\ComponentTagCompiler; use Illuminate\View\Component;
false
Other
laravel
framework
9ede7d34f97932c3f7f0c4dae21ddea16621aefc.json
Apply fixes from StyleCI (#32572)
tests/View/Blade/BladeComponentTagCompilerTest.php
@@ -5,7 +5,6 @@ use Illuminate\Container\Container; use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\View\Factory; -use Illuminate\Filesystem\Filesystem; use Illuminate\View\Compilers\BladeCompiler; use Illuminate\View\Compilers\ComponentTagCompiler; use Illuminate\View\Component;
false
Other
laravel
framework
520544dc24772b421410a2528ba01fd47818eeea.json
change argument order
src/Illuminate/View/Compilers/BladeCompiler.php
@@ -318,7 +318,7 @@ protected function compileComponentTags($value) } return (new ComponentTagCompiler( - $this, $this->classComponentAliases + $this->classComponentAliases, $this ))->compile($value); }
true
Other
laravel
framework
520544dc24772b421410a2528ba01fd47818eeea.json
change argument order
src/Illuminate/View/Compilers/ComponentTagCompiler.php
@@ -5,6 +5,7 @@ use Illuminate\Container\Container; use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\View\Factory; +use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Str; use Illuminate\View\AnonymousComponent; use InvalidArgumentException; @@ -41,12 +42,14 @@ class ComponentTagCompiler * Create new component tag compiler. * * @param array $aliases + * @param \Illuminate\View\Compilers\BladeCompiler|null * @return void */ - public function __construct(BladeCompiler $blade, array $aliases = []) + public function __construct(array $aliases = [], ?BladeCompiler $blade = null) { - $this->blade = $blade; $this->aliases = $aliases; + + $this->blade = $blade ?: new BladeCompiler(new Filesystem, sys_get_temp_dir()); } /**
true
Other
laravel
framework
520544dc24772b421410a2528ba01fd47818eeea.json
change argument order
tests/View/Blade/BladeComponentTagCompilerTest.php
@@ -268,8 +268,8 @@ protected function mockViewFactory($existsSucceeds = true) protected function compiler($aliases = []) { return new ComponentTagCompiler( - new BladeCompiler(new Filesystem, __DIR__), - $aliases + $aliases, + new BladeCompiler(new Filesystem, __DIR__) ); } }
true
Other
laravel
framework
4c9557734ae70a20b3af0fdd69a9dc392b61fab4.json
Apply fixes from StyleCI (#32569)
src/Illuminate/View/Component.php
@@ -239,6 +239,7 @@ public function __toString() { return (string) $this->__invoke(); } + }; }
false
Other
laravel
framework
08c40123a438e40ad82582fee7ddaa1ff056bb83.json
add more proxy methods to deferred value
src/Illuminate/View/Component.php
@@ -2,10 +2,13 @@ namespace Illuminate\View; +use ArrayIterator; use Closure; use Illuminate\Container\Container; use Illuminate\Contracts\Support\DeferringDisplayableValue; +use Illuminate\Support\Enumerable; use Illuminate\Support\Str; +use IteratorAggregate; use ReflectionClass; use ReflectionMethod; use ReflectionProperty; @@ -197,7 +200,7 @@ protected function createInvokableVariable(string $method) { return new class(function () use ($method) { return $this->{$method}(); - }) implements DeferringDisplayableValue { + }) implements DeferringDisplayableValue, IteratorAggregate { protected $callable; public function __construct(Closure $callable) @@ -210,6 +213,23 @@ public function resolveDisplayableValue() return $this->__invoke(); } + public function getIterator() + { + $result = $this->__invoke(); + + return new ArrayIterator($result instanceof Enumerable ? $result->all() : $result); + } + + public function __get($key) + { + return $this->__invoke()->{$key}; + } + + public function __call($method, $parameters) + { + return $this->__invoke()->{$method}(...$parameters); + } + public function __invoke() { return call_user_func($this->callable); @@ -219,7 +239,6 @@ public function __toString() { return (string) $this->__invoke(); } - }; }
false
Other
laravel
framework
7b224b1bbad698f56d7d02e815bb9bb5703953d8.json
Apply fixes from StyleCI (#32561)
src/Illuminate/View/Component.php
@@ -219,6 +219,7 @@ public function __toString() { return (string) $this->__invoke(); } + }; }
false
Other
laravel
framework
cd366a40124818c8a550e5caeeded126025c2b42.json
Apply fixes from StyleCI (#32557)
src/Illuminate/View/Compilers/ComponentTagCompiler.php
@@ -7,7 +7,6 @@ use Illuminate\Contracts\View\Factory; use Illuminate\Support\Str; use Illuminate\View\AnonymousComponent; -use Illuminate\View\Compilers\BladeCompiler; use InvalidArgumentException; use ReflectionClass;
false
Other
laravel
framework
3f537ca1c7cbf14af34dcf697801db75f2b173d3.json
evaluate echos within attributes
src/Illuminate/View/Compilers/BladeCompiler.php
@@ -318,7 +318,7 @@ protected function compileComponentTags($value) } return (new ComponentTagCompiler( - $this->classComponentAliases + $this, $this->classComponentAliases ))->compile($value); }
true
Other
laravel
framework
3f537ca1c7cbf14af34dcf697801db75f2b173d3.json
evaluate echos within attributes
src/Illuminate/View/Compilers/ComponentTagCompiler.php
@@ -7,6 +7,7 @@ use Illuminate\Contracts\View\Factory; use Illuminate\Support\Str; use Illuminate\View\AnonymousComponent; +use Illuminate\View\Compilers\BladeCompiler; use InvalidArgumentException; use ReflectionClass; @@ -16,6 +17,13 @@ */ class ComponentTagCompiler { + /** + * The Blade compiler instance. + * + * @var \Illuminate\View\Compilers\BladeCompiler + */ + protected $blade; + /** * The component class aliases. * @@ -36,8 +44,9 @@ class ComponentTagCompiler * @param array $aliases * @return void */ - public function __construct(array $aliases = []) + public function __construct(BladeCompiler $blade, array $aliases = []) { + $this->blade = $blade; $this->aliases = $aliases; } @@ -355,7 +364,7 @@ protected function getAttributesFromAttributeString(string $attributeString) $this->boundAttributes[$attribute] = true; } else { - $value = "'".str_replace("'", "\\'", $value)."'"; + $value = "'".$this->compileAttributeEchos($value)."'"; } return [$attribute => $value]; @@ -380,6 +389,34 @@ protected function parseBindAttributes(string $attributeString) return preg_replace($pattern, ' bind:$1=', $attributeString); } + /** + * Compile any Blade echo statements that are present in the attribute string. + * + * These echo statements need to be converted to string concatenation statements. + * + * @param string $attributeString + * @return string + */ + protected function compileAttributeEchos(string $attributeString) + { + $value = $this->blade->compileEchos($attributeString); + + $value = collect(token_get_all($value))->map(function ($token) { + if (! is_array($token)) { + return $token; + } + + return $token[0] === T_INLINE_HTML + ? str_replace("'", "\\'", $token[1]) + : $token[1]; + })->implode(''); + + $value = str_replace('<?php echo ', '\'.', $value); + $value = str_replace('; ?>', '.\'', $value); + + return $value; + } + /** * Convert an array of attributes to a string. *
true
Other
laravel
framework
3f537ca1c7cbf14af34dcf697801db75f2b173d3.json
evaluate echos within attributes
src/Illuminate/View/Compilers/Concerns/CompilesEchos.php
@@ -10,7 +10,7 @@ trait CompilesEchos * @param string $value * @return string */ - protected function compileEchos($value) + public function compileEchos($value) { foreach ($this->getEchoMethods() as $method) { $value = $this->$method($value);
true
Other
laravel
framework
3f537ca1c7cbf14af34dcf697801db75f2b173d3.json
evaluate echos within attributes
tests/View/Blade/BladeComponentTagCompilerTest.php
@@ -5,6 +5,7 @@ use Illuminate\Container\Container; use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\View\Factory; +use Illuminate\Filesystem\Filesystem; use Illuminate\View\Compilers\BladeCompiler; use Illuminate\View\Compilers\ComponentTagCompiler; use Illuminate\View\Component; @@ -20,7 +21,7 @@ public function tearDown(): void public function testSlotsCanBeCompiled() { - $result = (new ComponentTagCompiler)->compileSlots('<x-slot name="foo"> + $result = $this->compiler()->compileSlots('<x-slot name="foo"> </x-slot>'); $this->assertSame("@slot('foo') \n".' @endslot', trim($result)); @@ -30,7 +31,7 @@ public function testBasicComponentParsing() { $this->mockViewFactory(); - $result = (new ComponentTagCompiler(['alert' => TestAlertComponent::class]))->compileTags('<div><x-alert type="foo" limit="5" @click="foo" required /><x-alert /></div>'); + $result = $this->compiler(['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\TestAlertComponent', []) <?php \$component->withName('alert'); ?> @@ -43,7 +44,7 @@ public function testBasicComponentParsing() public function testBasicComponentWithEmptyAttributesParsing() { - $result = (new ComponentTagCompiler(['alert' => TestAlertComponent::class]))->compileTags('<div><x-alert type="" limit=\'\' @click="" required /></div>'); + $result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<div><x-alert type="" limit=\'\' @click="" required /></div>'); $this->assertSame("<div> @component('Illuminate\Tests\View\Blade\TestAlertComponent', []) <?php \$component->withName('alert'); ?> @@ -53,7 +54,7 @@ public function testBasicComponentWithEmptyAttributesParsing() public function testDataCamelCasing() { - $result = (new ComponentTagCompiler(['profile' => TestProfileComponent::class]))->compileTags('<x-profile user-id="1"></x-profile>'); + $result = $this->compiler(['profile' => TestProfileComponent::class])->compileTags('<x-profile user-id="1"></x-profile>'); $this->assertSame("@component('Illuminate\Tests\View\Blade\TestProfileComponent', ['userId' => '1']) <?php \$component->withName('profile'); ?> @@ -62,7 +63,7 @@ public function testDataCamelCasing() public function testColonData() { - $result = (new ComponentTagCompiler(['profile' => TestProfileComponent::class]))->compileTags('<x-profile :user-id="1"></x-profile>'); + $result = $this->compiler(['profile' => TestProfileComponent::class])->compileTags('<x-profile :user-id="1"></x-profile>'); $this->assertSame("@component('Illuminate\Tests\View\Blade\TestProfileComponent', ['userId' => 1]) <?php \$component->withName('profile'); ?> @@ -71,7 +72,7 @@ public function testColonData() public function testColonAttributesIsEscapedIfStrings() { - $result = (new ComponentTagCompiler(['profile' => TestProfileComponent::class]))->compileTags('<x-profile :src="\'foo\'"></x-profile>'); + $result = $this->compiler(['profile' => TestProfileComponent::class])->compileTags('<x-profile :src="\'foo\'"></x-profile>'); $this->assertSame("@component('Illuminate\Tests\View\Blade\TestProfileComponent', []) <?php \$component->withName('profile'); ?> @@ -80,7 +81,7 @@ public function testColonAttributesIsEscapedIfStrings() public function testColonNestedComponentParsing() { - $result = (new ComponentTagCompiler(['foo:alert' => TestAlertComponent::class]))->compileTags('<x-foo:alert></x-foo:alert>'); + $result = $this->compiler(['foo:alert' => TestAlertComponent::class])->compileTags('<x-foo:alert></x-foo:alert>'); $this->assertSame("@component('Illuminate\Tests\View\Blade\TestAlertComponent', []) <?php \$component->withName('foo:alert'); ?> @@ -89,7 +90,7 @@ public function testColonNestedComponentParsing() public function testColonStartingNestedComponentParsing() { - $result = (new ComponentTagCompiler(['foo:alert' => TestAlertComponent::class]))->compileTags('<x:foo:alert></x-foo:alert>'); + $result = $this->compiler(['foo:alert' => TestAlertComponent::class])->compileTags('<x:foo:alert></x-foo:alert>'); $this->assertSame("@component('Illuminate\Tests\View\Blade\TestAlertComponent', []) <?php \$component->withName('foo:alert'); ?> @@ -98,7 +99,7 @@ public function testColonStartingNestedComponentParsing() public function testSelfClosingComponentsCanBeCompiled() { - $result = (new ComponentTagCompiler(['alert' => TestAlertComponent::class]))->compileTags('<div><x-alert/></div>'); + $result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<div><x-alert/></div>'); $this->assertSame("<div> @component('Illuminate\Tests\View\Blade\TestAlertComponent', []) <?php \$component->withName('alert'); ?> @@ -113,7 +114,7 @@ public function testClassNamesCanBeGuessed() $app->shouldReceive('getNamespace')->andReturn('App\\'); Container::setInstance($container); - $result = (new ComponentTagCompiler([]))->guessClassName('alert'); + $result = $this->compiler()->guessClassName('alert'); $this->assertSame("App\View\Components\Alert", trim($result)); @@ -127,7 +128,7 @@ public function testClassNamesCanBeGuessedWithNamespaces() $app->shouldReceive('getNamespace')->andReturn('App\\'); Container::setInstance($container); - $result = (new ComponentTagCompiler([]))->guessClassName('base.alert'); + $result = $this->compiler()->guessClassName('base.alert'); $this->assertSame("App\View\Components\Base\Alert", trim($result)); @@ -138,7 +139,7 @@ public function testComponentsCanBeCompiledWithHyphenAttributes() { $this->mockViewFactory(); - $result = (new ComponentTagCompiler(['alert' => TestAlertComponent::class]))->compileTags('<x-alert class="bar" wire:model="foo" x-on:click="bar" @click="baz" />'); + $result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<x-alert class="bar" wire:model="foo" x-on:click="bar" @click="baz" />'); $this->assertSame("@component('Illuminate\Tests\View\Blade\TestAlertComponent', []) <?php \$component->withName('alert'); ?> @@ -148,7 +149,7 @@ public function testComponentsCanBeCompiledWithHyphenAttributes() public function testSelfClosingComponentsCanBeCompiledWithDataAndAttributes() { - $result = (new ComponentTagCompiler(['alert' => TestAlertComponent::class]))->compileTags('<x-alert title="foo" class="bar" wire:model="foo" />'); + $result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<x-alert title="foo" class="bar" wire:model="foo" />'); $this->assertSame("@component('Illuminate\Tests\View\Blade\TestAlertComponent', ['title' => 'foo']) <?php \$component->withName('alert'); ?> @@ -158,7 +159,7 @@ public function testSelfClosingComponentsCanBeCompiledWithDataAndAttributes() public function testComponentsCanHaveAttachedWord() { - $result = (new ComponentTagCompiler(['profile' => TestProfileComponent::class]))->compileTags('<x-profile></x-profile>Words'); + $result = $this->compiler(['profile' => TestProfileComponent::class])->compileTags('<x-profile></x-profile>Words'); $this->assertSame("@component('Illuminate\Tests\View\Blade\TestProfileComponent', []) <?php \$component->withName('profile'); ?> @@ -167,7 +168,7 @@ public function testComponentsCanHaveAttachedWord() public function testSelfClosingComponentsCanHaveAttachedWord() { - $result = (new ComponentTagCompiler(['alert' => TestAlertComponent::class]))->compileTags('<x-alert/>Words'); + $result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<x-alert/>Words'); $this->assertSame("@component('Illuminate\Tests\View\Blade\TestAlertComponent', []) <?php \$component->withName('alert'); ?> @@ -177,7 +178,7 @@ public function testSelfClosingComponentsCanHaveAttachedWord() public function testSelfClosingComponentsCanBeCompiledWithBoundData() { - $result = (new ComponentTagCompiler(['alert' => TestAlertComponent::class]))->compileTags('<x-alert :title="$title" class="bar" />'); + $result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<x-alert :title="$title" class="bar" />'); $this->assertSame("@component('Illuminate\Tests\View\Blade\TestAlertComponent', ['title' => \$title]) <?php \$component->withName('alert'); ?> @@ -187,7 +188,7 @@ public function testSelfClosingComponentsCanBeCompiledWithBoundData() public function testPairedComponentTags() { - $result = (new ComponentTagCompiler(['alert' => TestAlertComponent::class]))->compileTags('<x-alert> + $result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<x-alert> </x-alert>'); $this->assertSame("@component('Illuminate\Tests\View\Blade\TestAlertComponent', []) @@ -205,7 +206,7 @@ public function testClasslessComponents() $factory->shouldReceive('exists')->andReturn(true); Container::setInstance($container); - $result = (new ComponentTagCompiler([]))->compileTags('<x-anonymous-component :name="\'Taylor\'" :age="31" wire:model="foo" />'); + $result = $this->compiler()->compileTags('<x-anonymous-component :name="\'Taylor\'" :age="31" wire:model="foo" />'); $this->assertSame("@component('Illuminate\View\AnonymousComponent', ['view' => 'components.anonymous-component','data' => ['name' => 'Taylor','age' => 31,'wire:model' => 'foo']]) <?php \$component->withName('anonymous-component'); ?> @@ -239,7 +240,7 @@ public function testItThrowsAnExceptionForNonExistingAliases() $this->expectException(InvalidArgumentException::class); - (new ComponentTagCompiler(['alert' => 'foo.bar']))->compileTags('<x-alert />'); + $this->compiler(['alert' => 'foo.bar'])->compileTags('<x-alert />'); } public function testItThrowsAnExceptionForNonExistingClass() @@ -253,7 +254,7 @@ public function testItThrowsAnExceptionForNonExistingClass() $this->expectException(InvalidArgumentException::class); - (new ComponentTagCompiler)->compileTags('<x-alert />'); + $this->compiler()->compileTags('<x-alert />'); } protected function mockViewFactory($existsSucceeds = true) @@ -263,6 +264,14 @@ protected function mockViewFactory($existsSucceeds = true) $factory->shouldReceive('exists')->andReturn($existsSucceeds); Container::setInstance($container); } + + protected function compiler($aliases = []) + { + return new ComponentTagCompiler( + new BladeCompiler(new Filesystem, __DIR__), + $aliases + ); + } } class TestAlertComponent extends Component
true
Other
laravel
framework
9e22c7cfa629773eab981ccad13080c0f4cb81b2.json
fix getOriginal with custom casts
src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
@@ -476,7 +476,7 @@ protected function mutateAttribute($key, $value) protected function mutateAttributeForArray($key, $value) { $value = $this->isClassCastable($key) - ? $this->getClassCastableAttributeValue($key) + ? $this->getClassCastableAttributeValue($key, $value) : $this->mutateAttribute($key, $value); return $value instanceof Arrayable ? $value->toArray() : $value; @@ -540,7 +540,7 @@ protected function castAttribute($key, $value) } if ($this->isClassCastable($key)) { - return $this->getClassCastableAttributeValue($key); + return $this->getClassCastableAttributeValue($key, $value); } return $value; @@ -550,18 +550,19 @@ protected function castAttribute($key, $value) * Cast the given attribute using a custom cast class. * * @param string $key + * @param mixed $value * @return mixed */ - protected function getClassCastableAttributeValue($key) + protected function getClassCastableAttributeValue($key, $value) { if (isset($this->classCastCache[$key])) { return $this->classCastCache[$key]; } else { $caster = $this->resolveCasterClass($key); return $this->classCastCache[$key] = $caster instanceof CastsInboundAttributes - ? ($this->attributes[$key] ?? null) - : $caster->get($this, $key, $this->attributes[$key] ?? null, $this->attributes); + ? $value + : $caster->get($this, $key, $value, $this->attributes); } }
true
Other
laravel
framework
9e22c7cfa629773eab981ccad13080c0f4cb81b2.json
fix getOriginal with custom casts
tests/Integration/Database/DatabaseEloquentModelCustomCastingTest.php
@@ -27,6 +27,10 @@ public function testBasicCustomCasting() $this->assertSame('TAYLOR', $unserializedModel->getAttributes()['uppercase']); $this->assertSame('TAYLOR', $unserializedModel->toArray()['uppercase']); + $model->syncOriginal(); + $model->uppercase = 'dries'; + $this->assertEquals('TAYLOR', $model->getOriginal('uppercase')); + $model = new TestEloquentModelWithCustomCast; $model->address = $address = new Address('110 Kingsbrook St.', 'My Childhood House');
true
Other
laravel
framework
80c39186b4e6875fe5c78342c63b5d9334e0b22d.json
Fix boolean value in assertSessionHasErrors
src/Illuminate/Foundation/Testing/TestResponse.php
@@ -1029,6 +1029,10 @@ public function assertSessionHasErrors($keys = [], $format = null, $errorBag = ' if (is_int($key)) { PHPUnit::assertTrue($errors->has($value), "Session missing error: $value"); } else { + if (is_bool($value)) { + $value = (string) $value; + } + PHPUnit::assertContains($value, $errors->get($key, $format)); } }
false
Other
laravel
framework
b85f906bef8865f6d15525dbf2d9db6618c50d64.json
Improve return type that may be null
src/Illuminate/Cookie/CookieJar.php
@@ -119,7 +119,7 @@ public function hasQueued($key, $path = null) * @param string $key * @param mixed $default * @param string|null $path - * @return \Symfony\Component\HttpFoundation\Cookie + * @return \Symfony\Component\HttpFoundation\Cookie|null */ public function queued($key, $default = null, $path = null) {
true
Other
laravel
framework
b85f906bef8865f6d15525dbf2d9db6618c50d64.json
Improve return type that may be null
src/Illuminate/Routing/Route.php
@@ -348,7 +348,7 @@ public function hasParameter($name) * * @param string $name * @param mixed $default - * @return string|object + * @return string|object|null */ public function parameter($name, $default = null) { @@ -360,7 +360,7 @@ public function parameter($name, $default = null) * * @param string $name * @param mixed $default - * @return string + * @return string|null */ public function originalParameter($name, $default = null) {
true
Other
laravel
framework
92e0e93072163d8b07b89c4e46307f713209787d.json
Apply fixes from StyleCI (#32551)
tests/Mail/MailManagerTest.php
@@ -2,7 +2,6 @@ namespace Illuminate\Tests\Mail; -use Illuminate\Mail\MailManager; use Orchestra\Testbench\TestCase; class MailManagerTest extends TestCase @@ -24,13 +23,13 @@ public function testEmptyTransportConfig($transport) $this->expectException(\InvalidArgumentException::class); $this->expectExceptionMessage("Unsupported mail transport [{$transport}]"); - $this->app['mail.manager']->mailer("custom_smtp"); + $this->app['mail.manager']->mailer('custom_smtp'); } public function emptyTransportConfigDataProvider() { return [ - [null], [""], [" "] + [null], [''], [' '], ]; } }
false
Other
laravel
framework
2ad79ca851d5bd6578957c506b3e9eace6d987c7.json
Add pdo try again as lost connection message
src/Illuminate/Database/DetectsLostConnections.php
@@ -43,6 +43,7 @@ protected function causedByLostConnection(Throwable $e) 'Connection refused', 'running with the --read-only option so it cannot execute this statement', 'The connection is broken and recovery is not possible. The connection is marked by the client driver as unrecoverable. No attempt was made to restore the connection.', + 'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Try again', ]); } }
false
Other
laravel
framework
70d7ba1175b6e54eb2abe82cea8f1e04fd7c4d69.json
reset select bindings when setting select fixes https://github.com/laravel/framework/issues/32526
src/Illuminate/Database/Query/Builder.php
@@ -225,6 +225,7 @@ public function __construct(ConnectionInterface $connection, public function select($columns = ['*']) { $this->columns = []; + $this->bindings['select'] = []; $columns = is_array($columns) ? $columns : func_get_args();
true
Other
laravel
framework
70d7ba1175b6e54eb2abe82cea8f1e04fd7c4d69.json
reset select bindings when setting select fixes https://github.com/laravel/framework/issues/32526
tests/Database/DatabaseQueryBuilderTest.php
@@ -3024,6 +3024,22 @@ public function testSubSelect() $builder->selectSub(['foo'], 'sub'); } + public function testSubSelectResetBindings() + { + $builder = $this->getPostgresBuilder(); + $builder->from('one')->selectSub(function ($query) { + $query->from('two')->select('baz')->where('subkey', '=', 'subval'); + }, 'sub'); + + $this->assertEquals('select (select "baz" from "two" where "subkey" = ?) as "sub" from "one"', $builder->toSql()); + $this->assertEquals(['subval'], $builder->getBindings()); + + $builder->select('*'); + + $this->assertEquals('select * from "one"', $builder->toSql()); + $this->assertEquals([], $builder->getBindings()); + } + public function testSqlServerWhereDate() { $builder = $this->getSqlServerBuilder();
true
Other
laravel
framework
b815dc6c1b1c595f3241c493255f0fbfd67a6131.json
pass status code to schedule finish
src/Illuminate/Console/Scheduling/CommandBuilder.php
@@ -52,11 +52,11 @@ protected function buildBackgroundCommand(Event $event) $finished = Application::formatCommandString('schedule:finish').' "'.$event->mutexName().'"'; if (windows_os()) { - return 'start /b cmd /c "('.$event->command.' & '.$finished.')'.$redirect.$output.' 2>&1"'; + return 'start /b cmd /c "('.$event->command.' & '.$finished.' "%errorlevel%")'.$redirect.$output.' 2>&1"'; } return $this->ensureCorrectUser($event, - '('.$event->command.$redirect.$output.' 2>&1 ; '.$finished.') > ' + '('.$event->command.$redirect.$output.' 2>&1 ; '.$finished.' "$?") > ' .ProcessUtils::escapeArgument($event->getDefaultOutput()).' 2>&1 &' ); }
true
Other
laravel
framework
b815dc6c1b1c595f3241c493255f0fbfd67a6131.json
pass status code to schedule finish
src/Illuminate/Console/Scheduling/Event.php
@@ -262,6 +262,20 @@ public function callAfterCallbacks(Container $container) } } + /** + * Call all of the "after" callbacks for the event. + * + * @param \Illuminate\Contracts\Container\Container $container + * @param int $exitCode + * @return void + */ + public function callAfterCallbacksWithExitCode(Container $container, $exitCode) + { + $this->exitCode = (int) $exitCode; + + $this->callAfterCallbacks($container); + } + /** * Build the command string. *
true
Other
laravel
framework
b815dc6c1b1c595f3241c493255f0fbfd67a6131.json
pass status code to schedule finish
src/Illuminate/Console/Scheduling/ScheduleFinishCommand.php
@@ -11,7 +11,7 @@ class ScheduleFinishCommand extends Command * * @var string */ - protected $signature = 'schedule:finish {id}'; + protected $signature = 'schedule:finish {id} {code=0}'; /** * The console command description. @@ -37,6 +37,6 @@ public function handle(Schedule $schedule) { collect($schedule->events())->filter(function ($value) { return $value->mutexName() == $this->argument('id'); - })->each->callAfterCallbacks($this->laravel); + })->each->callAfterCallbacksWithExitCode($this->laravel, $this->argument('code')); } }
true
Other
laravel
framework
b815dc6c1b1c595f3241c493255f0fbfd67a6131.json
pass status code to schedule finish
tests/Console/Scheduling/EventTest.php
@@ -29,7 +29,7 @@ public function testBuildCommand() $commandSeparator = ($isWindows ? '&' : ';'); $scheduleId = '"framework'.DIRECTORY_SEPARATOR.'schedule-eeb46c93d45e928d62aaf684d727e213b7094822"'; - $this->assertSame("(php -i > {$quote}{$defaultOutput}{$quote} 2>&1 {$commandSeparator} {$quote}".PHP_BINARY."{$quote} artisan schedule:finish {$scheduleId}) > {$quote}{$defaultOutput}{$quote} 2>&1 &", $event->buildCommand()); + $this->assertSame("(php -i > {$quote}{$defaultOutput}{$quote} 2>&1 {$commandSeparator} {$quote}".PHP_BINARY."{$quote} artisan schedule:finish {$scheduleId} \"$?\") > {$quote}{$defaultOutput}{$quote} 2>&1 &", $event->buildCommand()); } public function testBuildCommandSendOutputTo()
true
Other
laravel
framework
b9c2763ebfcd2eac29ecc900a6623f4a22281715.json
pass status code to schedule finish
src/Illuminate/Console/Scheduling/CommandBuilder.php
@@ -52,11 +52,11 @@ protected function buildBackgroundCommand(Event $event) $finished = Application::formatCommandString('schedule:finish').' "'.$event->mutexName().'"'; if (windows_os()) { - return 'start /b cmd /c "('.$event->command.' & '.$finished.')'.$redirect.$output.' 2>&1"'; + return 'start /b cmd /c "('.$event->command.' & '.$finished.' "%errorlevel%")'.$redirect.$output.' 2>&1"'; } return $this->ensureCorrectUser($event, - '('.$event->command.$redirect.$output.' 2>&1 ; '.$finished.') > ' + '('.$event->command.$redirect.$output.' 2>&1 ; '.$finished.' "$?") > ' .ProcessUtils::escapeArgument($event->getDefaultOutput()).' 2>&1 &' ); }
true
Other
laravel
framework
b9c2763ebfcd2eac29ecc900a6623f4a22281715.json
pass status code to schedule finish
src/Illuminate/Console/Scheduling/Event.php
@@ -262,6 +262,20 @@ public function callAfterCallbacks(Container $container) } } + /** + * Call all of the "after" callbacks for the event. + * + * @param \Illuminate\Contracts\Container\Container $container + * @param int $exitCode + * @return void + */ + public function callAfterCallbacksWithExitCode(Container $container, $exitCode) + { + $this->exitCode = (int) $exitCode; + + $this->callAfterCallbacks($container); + } + /** * Build the command string. *
true
Other
laravel
framework
b9c2763ebfcd2eac29ecc900a6623f4a22281715.json
pass status code to schedule finish
src/Illuminate/Console/Scheduling/ScheduleFinishCommand.php
@@ -11,7 +11,7 @@ class ScheduleFinishCommand extends Command * * @var string */ - protected $signature = 'schedule:finish {id}'; + protected $signature = 'schedule:finish {id} {code=0}'; /** * The console command description. @@ -37,6 +37,6 @@ public function handle(Schedule $schedule) { collect($schedule->events())->filter(function ($value) { return $value->mutexName() == $this->argument('id'); - })->each->callAfterCallbacks($this->laravel); + })->each->callAfterCallbacksWithExitCode($this->laravel, $this->argument('code')); } }
true
Other
laravel
framework
b9c2763ebfcd2eac29ecc900a6623f4a22281715.json
pass status code to schedule finish
tests/Console/Scheduling/EventTest.php
@@ -29,7 +29,7 @@ public function testBuildCommand() $commandSeparator = ($isWindows ? '&' : ';'); $scheduleId = '"framework'.DIRECTORY_SEPARATOR.'schedule-eeb46c93d45e928d62aaf684d727e213b7094822"'; - $this->assertSame("(php -i > {$quote}{$defaultOutput}{$quote} 2>&1 {$commandSeparator} {$quote}".PHP_BINARY."{$quote} artisan schedule:finish {$scheduleId}) > {$quote}{$defaultOutput}{$quote} 2>&1 &", $event->buildCommand()); + $this->assertSame("(php -i > {$quote}{$defaultOutput}{$quote} 2>&1 {$commandSeparator} {$quote}".PHP_BINARY."{$quote} artisan schedule:finish {$scheduleId} \"$?\") > {$quote}{$defaultOutput}{$quote} 2>&1 &", $event->buildCommand()); } public function testBuildCommandSendOutputTo()
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Auth/Access/Gate.php
@@ -3,9 +3,9 @@ namespace Illuminate\Auth\Access; use Exception; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Auth\Access\Gate as GateContract; use Illuminate\Contracts\Container\Container; -use Illuminate\Support\Arr; use Illuminate\Support\Str; use InvalidArgumentException; use ReflectionClass;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Auth/Passwords/PasswordBroker.php
@@ -3,10 +3,10 @@ namespace Illuminate\Auth\Passwords; use Closure; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; use Illuminate\Contracts\Auth\PasswordBroker as PasswordBrokerContract; use Illuminate\Contracts\Auth\UserProvider; -use Illuminate\Support\Arr; use UnexpectedValueException; class PasswordBroker implements PasswordBrokerContract
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Auth/composer.json
@@ -15,6 +15,7 @@ ], "require": { "php": "^7.3", + "illuminate/collections": "^8.0", "illuminate/contracts": "^8.0", "illuminate/http": "^8.0", "illuminate/macroable": "^8.0",
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Broadcasting/BroadcastEvent.php
@@ -3,10 +3,10 @@ namespace Illuminate\Broadcasting; use Illuminate\Bus\Queueable; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Broadcasting\Broadcaster; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Contracts\Support\Arrayable; -use Illuminate\Support\Arr; use ReflectionClass; use ReflectionProperty;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php
@@ -3,11 +3,11 @@ namespace Illuminate\Broadcasting\Broadcasters; use Exception; +use Illuminate\Collections\Arr; use Illuminate\Container\Container; use Illuminate\Contracts\Broadcasting\Broadcaster as BroadcasterContract; use Illuminate\Contracts\Routing\BindingRegistrar; use Illuminate\Contracts\Routing\UrlRoutable; -use Illuminate\Support\Arr; use Illuminate\Support\Str; use ReflectionClass; use ReflectionFunction;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php
@@ -3,7 +3,7 @@ namespace Illuminate\Broadcasting\Broadcasters; use Illuminate\Broadcasting\BroadcastException; -use Illuminate\Support\Arr; +use Illuminate\Collections\Arr; use Illuminate\Support\Str; use Pusher\Pusher; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php
@@ -2,8 +2,8 @@ namespace Illuminate\Broadcasting\Broadcasters; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Redis\Factory as Redis; -use Illuminate\Support\Arr; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; class RedisBroadcaster extends Broadcaster
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Broadcasting/composer.json
@@ -18,6 +18,7 @@ "ext-json": "*", "psr/log": "^1.0", "illuminate/bus": "^8.0", + "illuminate/collections": "^8.0", "illuminate/contracts": "^8.0", "illuminate/queue": "^8.0", "illuminate/support": "^8.0"
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Bus/Queueable.php
@@ -3,8 +3,8 @@ namespace Illuminate\Bus; use Closure; +use Illuminate\Collections\Arr; use Illuminate\Queue\CallQueuedClosure; -use Illuminate\Support\Arr; use RuntimeException; trait Queueable
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Bus/composer.json
@@ -15,6 +15,7 @@ ], "require": { "php": "^7.3", + "illuminate/collections": "^8.0", "illuminate/contracts": "^8.0", "illuminate/pipeline": "^8.0", "illuminate/support": "^8.0"
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Cache/CacheManager.php
@@ -4,10 +4,10 @@ use Aws\DynamoDb\DynamoDbClient; use Closure; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Cache\Factory as FactoryContract; use Illuminate\Contracts\Cache\Store; use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; -use Illuminate\Support\Arr; use InvalidArgumentException; /**
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Cache/composer.json
@@ -15,6 +15,7 @@ ], "require": { "php": "^7.3", + "illuminate/collections": "^8.0", "illuminate/contracts": "^8.0", "illuminate/macroable": "^8.0", "illuminate/support": "^8.0"
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Config/Repository.php
@@ -3,8 +3,8 @@ namespace Illuminate\Config; use ArrayAccess; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Config\Repository as ConfigContract; -use Illuminate\Support\Arr; class Repository implements ArrayAccess, ConfigContract {
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Config/composer.json
@@ -15,8 +15,8 @@ ], "require": { "php": "^7.3", - "illuminate/contracts": "^8.0", - "illuminate/support": "^8.0" + "illuminate/collections": "^8.0", + "illuminate/contracts": "^8.0" }, "autoload": { "psr-4": {
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Console/Scheduling/Event.php
@@ -6,11 +6,11 @@ use Cron\CronExpression; use GuzzleHttp\Client as HttpClient; use GuzzleHttp\Exception\TransferException; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Container\Container; use Illuminate\Contracts\Debug\ExceptionHandler; use Illuminate\Contracts\Mail\Mailer; use Illuminate\Macroable\Macroable; -use Illuminate\Support\Arr; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\Date; use Psr\Http\Client\ClientExceptionInterface;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Console/composer.json
@@ -15,6 +15,7 @@ ], "require": { "php": "^7.3", + "illuminate/collections": "^8.0", "illuminate/contracts": "^8.0", "illuminate/macroable": "^8.0", "illuminate/support": "^8.0",
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Container/Util.php
@@ -9,7 +9,7 @@ class Util /** * If the given value is not an array and not null, wrap it in one. * - * From Arr::wrap() in Illuminate\Support. + * From Arr::wrap() in Illuminate\Collections. * * @param mixed $value * @return array
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Cookie/CookieJar.php
@@ -2,9 +2,9 @@ namespace Illuminate\Cookie; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Cookie\QueueingFactory as JarContract; use Illuminate\Macroable\Macroable; -use Illuminate\Support\Arr; use Illuminate\Support\InteractsWithTime; use Symfony\Component\HttpFoundation\Cookie;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Cookie/composer.json
@@ -15,6 +15,7 @@ ], "require": { "php": "^7.3", + "illuminate/collections": "^8.0", "illuminate/contracts": "^8.0", "illuminate/macroable": "^8.0", "illuminate/support": "^8.0",
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Connection.php
@@ -6,6 +6,7 @@ use DateTimeInterface; use Doctrine\DBAL\Connection as DoctrineConnection; use Exception; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Database\Events\QueryExecuted; use Illuminate\Database\Events\StatementPrepared; @@ -17,7 +18,6 @@ use Illuminate\Database\Query\Grammars\Grammar as QueryGrammar; use Illuminate\Database\Query\Processors\Processor; use Illuminate\Database\Schema\Builder as SchemaBuilder; -use Illuminate\Support\Arr; use LogicException; use PDO; use PDOStatement;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Connectors/ConnectionFactory.php
@@ -2,13 +2,13 @@ namespace Illuminate\Database\Connectors; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Container\Container; use Illuminate\Database\Connection; use Illuminate\Database\MySqlConnection; use Illuminate\Database\PostgresConnection; use Illuminate\Database\SQLiteConnection; use Illuminate\Database\SqlServerConnection; -use Illuminate\Support\Arr; use InvalidArgumentException; use PDOException;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Connectors/SqlServerConnector.php
@@ -2,7 +2,7 @@ namespace Illuminate\Database\Connectors; -use Illuminate\Support\Arr; +use Illuminate\Collections\Arr; use PDO; class SqlServerConnector extends Connector implements ConnectorInterface
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/DatabaseManager.php
@@ -2,8 +2,8 @@ namespace Illuminate\Database; +use Illuminate\Collections\Arr; use Illuminate\Database\Connectors\ConnectionFactory; -use Illuminate\Support\Arr; use Illuminate\Support\ConfigurationUrlParser; use Illuminate\Support\Str; use InvalidArgumentException;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Eloquent/Builder.php
@@ -5,12 +5,12 @@ use BadMethodCallException; use Closure; use Exception; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Database\Concerns\BuildsQueries; use Illuminate\Database\Eloquent\Relations\Relation; use Illuminate\Database\Query\Builder as QueryBuilder; use Illuminate\Pagination\Paginator; -use Illuminate\Support\Arr; use Illuminate\Support\Str; use Illuminate\Support\Traits\ForwardsCalls; use ReflectionClass;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Eloquent/Collection.php
@@ -2,10 +2,10 @@ namespace Illuminate\Database\Eloquent; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Queue\QueueableCollection; use Illuminate\Contracts\Queue\QueueableEntity; use Illuminate\Contracts\Support\Arrayable; -use Illuminate\Support\Arr; use Illuminate\Support\Collection as BaseCollection; use Illuminate\Support\Str; use LogicException;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
@@ -4,12 +4,12 @@ use Carbon\CarbonInterface; use DateTimeInterface; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Database\Eloquent\Castable; use Illuminate\Contracts\Database\Eloquent\CastsInboundAttributes; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Database\Eloquent\JsonEncodingException; use Illuminate\Database\Eloquent\Relations\Relation; -use Illuminate\Support\Arr; use Illuminate\Support\Carbon; use Illuminate\Support\Collection as BaseCollection; use Illuminate\Support\Facades\Date;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Eloquent/Concerns/HasEvents.php
@@ -2,8 +2,8 @@ namespace Illuminate\Database\Eloquent\Concerns; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Events\Dispatcher; -use Illuminate\Support\Arr; use InvalidArgumentException; trait HasEvents
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Eloquent/Concerns/HasGlobalScopes.php
@@ -3,8 +3,8 @@ namespace Illuminate\Database\Eloquent\Concerns; use Closure; +use Illuminate\Collections\Arr; use Illuminate\Database\Eloquent\Scope; -use Illuminate\Support\Arr; use InvalidArgumentException; trait HasGlobalScopes
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php
@@ -2,6 +2,7 @@ namespace Illuminate\Database\Eloquent\Concerns; +use Illuminate\Collections\Arr; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; @@ -16,7 +17,6 @@ use Illuminate\Database\Eloquent\Relations\MorphTo; use Illuminate\Database\Eloquent\Relations\MorphToMany; use Illuminate\Database\Eloquent\Relations\Relation; -use Illuminate\Support\Arr; use Illuminate\Support\Str; trait HasRelationships
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Eloquent/Model.php
@@ -4,6 +4,7 @@ use ArrayAccess; use Exception; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Queue\QueueableCollection; use Illuminate\Contracts\Queue\QueueableEntity; use Illuminate\Contracts\Routing\UrlRoutable; @@ -12,7 +13,6 @@ use Illuminate\Database\ConnectionResolverInterface as Resolver; use Illuminate\Database\Eloquent\Relations\Concerns\AsPivot; use Illuminate\Database\Eloquent\Relations\Pivot; -use Illuminate\Support\Arr; use Illuminate\Support\Collection as BaseCollection; use Illuminate\Support\Str; use Illuminate\Support\Traits\ForwardsCalls;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Eloquent/ModelNotFoundException.php
@@ -2,7 +2,7 @@ namespace Illuminate\Database\Eloquent; -use Illuminate\Support\Arr; +use Illuminate\Collections\Arr; use RuntimeException; class ModelNotFoundException extends RuntimeException
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Eloquent/Relations/MorphToMany.php
@@ -2,9 +2,9 @@ namespace Illuminate\Database\Eloquent\Relations; +use Illuminate\Collections\Arr; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; -use Illuminate\Support\Arr; class MorphToMany extends BelongsToMany {
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Eloquent/Relations/Relation.php
@@ -3,12 +3,12 @@ namespace Illuminate\Database\Eloquent\Relations; use Closure; +use Illuminate\Collections\Arr; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Query\Expression; use Illuminate\Macroable\Macroable; -use Illuminate\Support\Arr; use Illuminate\Support\Traits\ForwardsCalls; /**
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Migrations/Migrator.php
@@ -2,6 +2,7 @@ namespace Illuminate\Database\Migrations; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Database\ConnectionResolverInterface as Resolver; use Illuminate\Database\Events\MigrationEnded; @@ -10,7 +11,6 @@ use Illuminate\Database\Events\MigrationStarted; use Illuminate\Database\Events\NoPendingMigrations; use Illuminate\Filesystem\Filesystem; -use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Support\Str; use Symfony\Component\Console\Output\OutputInterface;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Query/Builder.php
@@ -4,6 +4,7 @@ use Closure; use DateTimeInterface; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Database\Concerns\BuildsQueries; use Illuminate\Database\ConnectionInterface; @@ -12,7 +13,6 @@ use Illuminate\Database\Query\Processors\Processor; use Illuminate\Macroable\Macroable; use Illuminate\Pagination\Paginator; -use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Support\LazyCollection; use Illuminate\Support\Str;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Query/Grammars/Grammar.php
@@ -2,10 +2,10 @@ namespace Illuminate\Database\Query\Grammars; +use Illuminate\Collections\Arr; use Illuminate\Database\Grammar as BaseGrammar; use Illuminate\Database\Query\Builder; use Illuminate\Database\Query\JoinClause; -use Illuminate\Support\Arr; use Illuminate\Support\Str; use RuntimeException;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Query/Grammars/PostgresGrammar.php
@@ -2,8 +2,8 @@ namespace Illuminate\Database\Query\Grammars; +use Illuminate\Collections\Arr; use Illuminate\Database\Query\Builder; -use Illuminate\Support\Arr; use Illuminate\Support\Str; class PostgresGrammar extends Grammar
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php
@@ -2,8 +2,8 @@ namespace Illuminate\Database\Query\Grammars; +use Illuminate\Collections\Arr; use Illuminate\Database\Query\Builder; -use Illuminate\Support\Arr; use Illuminate\Support\Str; class SQLiteGrammar extends Grammar
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php
@@ -2,8 +2,8 @@ namespace Illuminate\Database\Query\Grammars; +use Illuminate\Collections\Arr; use Illuminate\Database\Query\Builder; -use Illuminate\Support\Arr; class SqlServerGrammar extends Grammar {
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php
@@ -3,9 +3,9 @@ namespace Illuminate\Database\Schema\Grammars; use Doctrine\DBAL\Schema\Index; +use Illuminate\Collections\Arr; use Illuminate\Database\Connection; use Illuminate\Database\Schema\Blueprint; -use Illuminate\Support\Arr; use Illuminate\Support\Fluent; use RuntimeException;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/Seeder.php
@@ -2,9 +2,9 @@ namespace Illuminate\Database; +use Illuminate\Collections\Arr; use Illuminate\Console\Command; use Illuminate\Container\Container; -use Illuminate\Support\Arr; use InvalidArgumentException; abstract class Seeder
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Database/composer.json
@@ -17,6 +17,7 @@ "require": { "php": "^7.3", "ext-json": "*", + "illuminate/collections": "^8.0", "illuminate/container": "^8.0", "illuminate/contracts": "^8.0", "illuminate/macroable": "^8.0",
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Events/Dispatcher.php
@@ -3,14 +3,14 @@ namespace Illuminate\Events; use Exception; +use Illuminate\Collections\Arr; use Illuminate\Container\Container; use Illuminate\Contracts\Broadcasting\Factory as BroadcastFactory; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Contracts\Container\Container as ContainerContract; use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Macroable\Macroable; -use Illuminate\Support\Arr; use Illuminate\Support\Str; use ReflectionClass;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Events/composer.json
@@ -15,6 +15,7 @@ ], "require": { "php": "^7.3", + "illuminate/collections": "^8.0", "illuminate/container": "^8.0", "illuminate/contracts": "^8.0", "illuminate/macroable": "^8.0",
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Filesystem/FilesystemAdapter.php
@@ -2,13 +2,13 @@ namespace Illuminate\Filesystem; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Filesystem\Cloud as CloudFilesystemContract; use Illuminate\Contracts\Filesystem\FileExistsException as ContractFileExistsException; use Illuminate\Contracts\Filesystem\FileNotFoundException as ContractFileNotFoundException; use Illuminate\Contracts\Filesystem\Filesystem as FilesystemContract; use Illuminate\Http\File; use Illuminate\Http\UploadedFile; -use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Support\Str; use InvalidArgumentException;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Filesystem/FilesystemManager.php
@@ -4,8 +4,8 @@ use Aws\S3\S3Client; use Closure; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Filesystem\Factory as FactoryContract; -use Illuminate\Support\Arr; use InvalidArgumentException; use League\Flysystem\Adapter\Ftp as FtpAdapter; use League\Flysystem\Adapter\Local as LocalAdapter;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Filesystem/composer.json
@@ -15,6 +15,7 @@ ], "require": { "php": "^7.3", + "illuminate/collections": "^8.0", "illuminate/contracts": "^8.0", "illuminate/macroable": "^8.0", "illuminate/support": "^8.0",
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Foundation/Application.php
@@ -3,6 +3,7 @@ namespace Illuminate\Foundation; use Closure; +use Illuminate\Collections\Arr; use Illuminate\Container\Container; use Illuminate\Contracts\Foundation\Application as ApplicationContract; use Illuminate\Contracts\Foundation\CachesConfiguration; @@ -15,7 +16,6 @@ use Illuminate\Http\Request; use Illuminate\Log\LogServiceProvider; use Illuminate\Routing\RoutingServiceProvider; -use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Support\Env; use Illuminate\Support\ServiceProvider;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Foundation/Console/Kernel.php
@@ -3,14 +3,14 @@ namespace Illuminate\Foundation\Console; use Closure; +use Illuminate\Collections\Arr; use Illuminate\Console\Application as Artisan; use Illuminate\Console\Command; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Contracts\Console\Kernel as KernelContract; use Illuminate\Contracts\Debug\ExceptionHandler; use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Foundation\Application; -use Illuminate\Support\Arr; use Illuminate\Support\Env; use Illuminate\Support\Str; use ReflectionClass;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Foundation/Console/RouteListCommand.php
@@ -3,10 +3,10 @@ namespace Illuminate\Foundation\Console; use Closure; +use Illuminate\Collections\Arr; use Illuminate\Console\Command; use Illuminate\Routing\Route; use Illuminate\Routing\Router; -use Illuminate\Support\Arr; use Illuminate\Support\Str; use Symfony\Component\Console\Input\InputOption;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Foundation/Console/VendorPublishCommand.php
@@ -2,9 +2,9 @@ namespace Illuminate\Foundation\Console; +use Illuminate\Collections\Arr; use Illuminate\Console\Command; use Illuminate\Filesystem\Filesystem; -use Illuminate\Support\Arr; use Illuminate\Support\ServiceProvider; use League\Flysystem\Adapter\Local as LocalAdapter; use League\Flysystem\Filesystem as Flysystem;
true
Other
laravel
framework
b9b00ecb3c142d6f89fc5ff7c44b69cf0d1e77f3.json
Replace Arr usages
src/Illuminate/Foundation/Exceptions/Handler.php
@@ -5,6 +5,7 @@ use Exception; use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Auth\AuthenticationException; +use Illuminate\Collections\Arr; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Contracts\Container\Container; use Illuminate\Contracts\Debug\ExceptionHandler as ExceptionHandlerContract; @@ -16,7 +17,6 @@ use Illuminate\Http\Response; use Illuminate\Routing\Router; use Illuminate\Session\TokenMismatchException; -use Illuminate\Support\Arr; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\View; use Illuminate\Support\ViewErrorBag;
true