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 | e2518c79d793094533bc97a522c32922ada17d8f.json | Simplify mock returns. | tests/Queue/QueueSqsQueueTest.php | @@ -72,7 +72,7 @@ public function testPopProperlyPopsJobOffOfSqs()
{
$queue = $this->getMockBuilder(SqsQueue::class)->setMethods(['getQueue'])->setConstructorArgs([$this->sqs, $this->queueName, $this->account])->getMock();
$queue->setContainer(m::mock(Container::class));
- $queue->expects(... | true |
Other | laravel | framework | e2518c79d793094533bc97a522c32922ada17d8f.json | Simplify mock returns. | tests/Support/SupportCollectionTest.php | @@ -218,7 +218,7 @@ public function testJsonSerializeCallsToArrayOrJsonSerializeOnEachItemInCollecti
public function testToJsonEncodesTheJsonSerializeResult()
{
$c = $this->getMockBuilder(Collection::class)->setMethods(['jsonSerialize'])->getMock();
- $c->expects($this->once())->method('jsonSe... | true |
Other | laravel | framework | e2518c79d793094533bc97a522c32922ada17d8f.json | Simplify mock returns. | tests/Support/SupportFluentTest.php | @@ -108,7 +108,7 @@ public function testToArrayReturnsAttribute()
public function testToJsonEncodesTheToArrayResult()
{
$fluent = $this->getMockBuilder(Fluent::class)->setMethods(['toArray'])->getMock();
- $fluent->expects($this->once())->method('toArray')->will($this->returnValue('foo'));
+ ... | true |
Other | laravel | framework | e2518c79d793094533bc97a522c32922ada17d8f.json | Simplify mock returns. | tests/Translation/TranslationTranslatorTest.php | @@ -19,19 +19,19 @@ protected function tearDown(): void
public function testHasMethodReturnsFalseWhenReturnedTranslationIsNull()
{
$t = $this->getMockBuilder(Translator::class)->setMethods(['get'])->setConstructorArgs([$this->getLoader(), 'en'])->getMock();
- $t->expects($this->once())->method... | true |
Other | laravel | framework | e2518c79d793094533bc97a522c32922ada17d8f.json | Simplify mock returns. | tests/Validation/ValidationValidatorTest.php | @@ -1098,9 +1098,9 @@ public function testGreaterThan()
$this->assertTrue($v->fails());
$fileOne = $this->getMockBuilder(File::class)->setMethods(['getSize'])->setConstructorArgs([__FILE__, false])->getMock();
- $fileOne->expects($this->any())->method('getSize')->will($this->returnValue(5472)... | true |
Other | laravel | framework | 637d17ce60082009e0740c02fbf1f8964cf1edb8.json | Fix 2 tests. | tests/Foundation/FoundationAuthorizesRequestsTraitTest.php | @@ -139,14 +139,14 @@ public function update()
return true;
}
- public function test_policy_method_may_be_guessed_passing_model_instance()
+ public function testPolicyMethodMayBeGuessedPassingModelInstance()
{
$_SERVER['_test.authorizes.trait.policy'] = true;
return true;
... | false |
Other | laravel | framework | cc1c9ad549b44b0550278f1a4af91316d614d63b.json | Remove useless namespace prefix. | tests/Integration/Support/ManagerTest.php | @@ -4,13 +4,14 @@
use InvalidArgumentException;
use Orchestra\Testbench\TestCase;
+use Illuminate\Tests\Integration\Support\Fixtures\NullableManager;
class ManagerTest extends TestCase
{
public function testDefaultDriverCannotBeNull()
{
$this->expectException(InvalidArgumentException::class);... | false |
Other | laravel | framework | 7bdd8007a2785330f9c60955676707d45d0ab5ef.json | Close mockery in the teardown method | tests/Redis/RedisManagerExtensionTest.php | @@ -45,6 +45,11 @@ protected function setUp(): void
});
}
+ protected function tearDown(): void
+ {
+ m::close();
+ }
+
public function test_using_custom_redis_connector_with_single_redis_instance()
{
$this->assertEquals( | false |
Other | laravel | framework | 88ec20dbaac61453f1f48e4013af3b3d96ad0729.json | Remove new password validation from broker
These changes remove all hardcoded valdation from the PasswordBroker. The reason for this is because this is a hardcoded constraint in validation and thus limits people from building password reset forms with their specific flow. The validation is already done within the Rese... | src/Illuminate/Auth/Passwords/PasswordBroker.php | @@ -25,22 +25,14 @@ class PasswordBroker implements PasswordBrokerContract
*/
protected $users;
- /**
- * The custom password validator callback.
- *
- * @var \Closure
- */
- protected $passwordValidator;
-
/**
* Create a new password broker instance.
*
* @param... | true |
Other | laravel | framework | 88ec20dbaac61453f1f48e4013af3b3d96ad0729.json | Remove new password validation from broker
These changes remove all hardcoded valdation from the PasswordBroker. The reason for this is because this is a hardcoded constraint in validation and thus limits people from building password reset forms with their specific flow. The validation is already done within the Rese... | src/Illuminate/Contracts/Auth/PasswordBroker.php | @@ -27,13 +27,6 @@ interface PasswordBroker
*/
const INVALID_USER = 'passwords.user';
- /**
- * Constant representing an invalid password.
- *
- * @var string
- */
- const INVALID_PASSWORD = 'passwords.password';
-
/**
* Constant representing an invalid token.
*
@@ -5... | true |
Other | laravel | framework | 88ec20dbaac61453f1f48e4013af3b3d96ad0729.json | Remove new password validation from broker
These changes remove all hardcoded valdation from the PasswordBroker. The reason for this is because this is a hardcoded constraint in validation and thus limits people from building password reset forms with their specific flow. The validation is already done within the Rese... | tests/Auth/AuthPasswordBrokerTest.php | @@ -72,48 +72,11 @@ public function testRedirectIsReturnedByResetWhenUserCredentialsInvalid()
}));
}
- public function testRedirectReturnedByRemindWhenPasswordsDontMatch()
- {
- $creds = ['password' => 'foo', 'password_confirmation' => 'bar'];
- $broker = $this->getBroker($mocks = $t... | true |
Other | laravel | framework | 4a2083bc25c37b44dc966161d4172f36a1215464.json | Return collect() and add missing ->filter() | src/Illuminate/Console/Command.php | @@ -239,9 +239,9 @@ protected function context()
{
$options = array_only($this->option(), ['no-interaction', 'ansi', 'no-ansi', 'quiet', 'verbose']);
- collect($options)->mapWithKeys(function ($value, $key) {
+ return collect($options)->mapWithKeys(function ($value, $key) {
re... | false |
Other | laravel | framework | a879fd1428713913bd0d67b2eb7612d1dd4edd19.json | Use method to detect the application environment | src/Illuminate/Console/ConfirmableTrait.php | @@ -48,7 +48,7 @@ public function confirmToProceed($warning = 'Application In Production!', $callb
protected function getDefaultConfirmCallback()
{
return function () {
- return $this->getLaravel()->environment() === 'production';
+ return $this->getLaravel()->isProduction();
... | true |
Other | laravel | framework | a879fd1428713913bd0d67b2eb7612d1dd4edd19.json | Use method to detect the application environment | src/Illuminate/Foundation/Bootstrap/HandleExceptions.php | @@ -46,7 +46,7 @@ public function bootstrap(Application $app)
register_shutdown_function([$this, 'handleShutdown']);
- if (! $app->environment('testing')) {
+ if (! $app->runningUnitTests()) {
ini_set('display_errors', 'Off');
}
} | true |
Other | laravel | framework | 8e54534afcb4a0347107fc04535a6276431be285.json | Remove some unused variables. | tests/Database/DatabaseEloquentModelTest.php | @@ -1877,7 +1877,7 @@ public function testIsWithAnotherConnection()
public function testWithoutTouchingCallback()
{
- $model = new EloquentModelStub(['id' => 1]);
+ new EloquentModelStub(['id' => 1]);
$called = false;
@@ -1890,7 +1890,7 @@ public function testWithoutTouchingCallba... | true |
Other | laravel | framework | 8e54534afcb4a0347107fc04535a6276431be285.json | Remove some unused variables. | tests/Database/DatabaseQueryBuilderTest.php | @@ -3004,7 +3004,6 @@ public function testPaginate()
public function testPaginateWithDefaultArguments()
{
$perPage = 15;
- $columns = ['*'];
$pageName = 'page';
$page = 1;
$builder = $this->getMockQueryBuilder();
@@ -3035,7 +3034,6 @@ public function testPaginateWith... | true |
Other | laravel | framework | 8e54534afcb4a0347107fc04535a6276431be285.json | Remove some unused variables. | tests/Foundation/Http/Middleware/CheckForMaintenanceModeTest.php | @@ -96,7 +96,7 @@ public function testApplicationDeniesSomeIPs()
$middleware = new CheckForMaintenanceMode($this->createMaintenanceApplication());
- $result = $middleware->handle(Request::create('/'), function ($request) {
+ $middleware->handle(Request::create('/'), function ($request) {
... | true |
Other | laravel | framework | 8e54534afcb4a0347107fc04535a6276431be285.json | Remove some unused variables. | tests/Integration/Session/SessionPersistenceTest.php | @@ -30,7 +30,7 @@ public function test_session_is_persisted_even_if_exception_is_thrown_from_route
throw new TokenMismatchException;
})->middleware('web');
- $response = $this->get('/');
+ $this->get('/');
$this->assertTrue($handler->written);
}
| true |
Other | laravel | framework | 8e54534afcb4a0347107fc04535a6276431be285.json | Remove some unused variables. | tests/Support/SupportHelpersTest.php | @@ -520,7 +520,7 @@ public function testRetryWithFailingWhenCallback()
{
$this->expectException(RuntimeException::class);
- $attempts = retry(2, function ($attempts) {
+ retry(2, function ($attempts) {
if ($attempts > 1) {
return $attempts;
} | true |
Other | laravel | framework | 3b67d44a563116f7bbf4f8a0a8a632d0c4a5fcd6.json | Simplify Blade tests. | tests/View/Blade/AbstractBladeTestCase.php | @@ -9,11 +9,14 @@
abstract class AbstractBladeTestCase extends TestCase
{
+ /**
+ * @var \Illuminate\View\Compilers\BladeCompiler
+ */
protected $compiler;
protected function setUp(): void
{
- $this->compiler = new BladeCompiler(m::mock(Filesystem::class), __DIR__);
+ $this... | true |
Other | laravel | framework | 3b67d44a563116f7bbf4f8a0a8a632d0c4a5fcd6.json | Simplify Blade tests. | tests/View/Blade/BladeElseAuthStatementsTest.php | @@ -2,21 +2,10 @@
namespace Illuminate\Tests\View\Blade;
-use Mockery as m;
-use PHPUnit\Framework\TestCase;
-use Illuminate\Filesystem\Filesystem;
-use Illuminate\View\Compilers\BladeCompiler;
-
-class BladeElseAuthStatementsTest extends TestCase
+class BladeElseAuthStatementsTest extends AbstractBladeTestCase
{... | true |
Other | laravel | framework | 3b67d44a563116f7bbf4f8a0a8a632d0c4a5fcd6.json | Simplify Blade tests. | tests/View/Blade/BladeElseGuestStatementsTest.php | @@ -2,21 +2,10 @@
namespace Illuminate\Tests\View\Blade;
-use Mockery as m;
-use PHPUnit\Framework\TestCase;
-use Illuminate\Filesystem\Filesystem;
-use Illuminate\View\Compilers\BladeCompiler;
-
-class BladeElseGuestStatementsTest extends TestCase
+class BladeElseGuestStatementsTest extends AbstractBladeTestCase
... | true |
Other | laravel | framework | 3b67d44a563116f7bbf4f8a0a8a632d0c4a5fcd6.json | Simplify Blade tests. | tests/View/Blade/BladeIfAuthStatementsTest.php | @@ -2,44 +2,27 @@
namespace Illuminate\Tests\View\Blade;
-use Mockery as m;
-use PHPUnit\Framework\TestCase;
-use Illuminate\Filesystem\Filesystem;
-use Illuminate\View\Compilers\BladeCompiler;
-
-class BladeIfAuthStatementsTest extends TestCase
+class BladeIfAuthStatementsTest extends AbstractBladeTestCase
{
- ... | true |
Other | laravel | framework | 3b67d44a563116f7bbf4f8a0a8a632d0c4a5fcd6.json | Simplify Blade tests. | tests/View/Blade/BladeIfGuestStatementsTest.php | @@ -2,32 +2,16 @@
namespace Illuminate\Tests\View\Blade;
-use Mockery as m;
-use PHPUnit\Framework\TestCase;
-use Illuminate\Filesystem\Filesystem;
-use Illuminate\View\Compilers\BladeCompiler;
-
-class BladeIfGuestStatementsTest extends TestCase
+class BladeIfGuestStatementsTest extends AbstractBladeTestCase
{
-... | true |
Other | laravel | framework | e9253da59b8542f25ae3cc0ce287da7d4dd433cf.json | Implement usage of global `last()` helper
Co-Authored-By: Jonas Staudenmeir <mail@jonas-staudenmeir.de> | src/Illuminate/Database/Query/Grammars/PostgresGrammar.php | @@ -248,7 +248,7 @@ protected function compileUpdateColumns($query, $values)
// columns and convert it to a parameter value. Then we will concatenate a
// list of the columns that can be added into this update query clauses.
return collect($values)->map(function ($value, $key) {
- ... | false |
Other | laravel | framework | dbe03179ecac5aeafacd5c7355eb29ac129c554b.json | Add additional tests for object binding
This adds additional testing of binding datetimes for update statements with the query builder.
Provides extra coverage for https://github.com/laravel/framework/pull/29146 and https://github.com/laravel/framework/pull/29388 | tests/Database/DatabaseQueryBuilderTest.php | @@ -2,6 +2,7 @@
namespace Illuminate\Tests\Database;
+use DateTime;
use stdClass;
use Mockery as m;
use RuntimeException;
@@ -2295,10 +2296,11 @@ public function testMySqlUpdateWrappingJsonArray()
$connection->expects($this->once())
->method('update')
->with(
-... | false |
Other | laravel | framework | 647f59fd66999bea333554befc930c7acea1601a.json | Register ConnectionResolverInterface as core alias
This will allow us to resolve the interface rather than the concrete implementation from the container. | src/Illuminate/Foundation/Application.php | @@ -1138,7 +1138,7 @@ public function registerCoreContainerAliases()
'config' => [\Illuminate\Config\Repository::class, \Illuminate\Contracts\Config\Repository::class],
'cookie' => [\Illuminate\Cookie\CookieJar::class, \Illuminate\Contracts\Cookie\Factory::class, \I... | true |
Other | laravel | framework | 647f59fd66999bea333554befc930c7acea1601a.json | Register ConnectionResolverInterface as core alias
This will allow us to resolve the interface rather than the concrete implementation from the container. | tests/Integration/Foundation/CoreContainerAliasesTest.php | @@ -0,0 +1,15 @@
+<?php
+
+namespace Illuminate\Tests\Integration\Foundation;
+
+use Orchestra\Testbench\TestCase;
+use Illuminate\Database\DatabaseManager;
+use Illuminate\Database\ConnectionResolverInterface;
+
+class CoreContainerAliasesTest extends TestCase
+{
+ public function test_it_can_resolve_core_container... | true |
Other | laravel | framework | bd5bbb64802afa975b124917f5918f6421bae3e0.json | Remove extra space | src/Illuminate/Foundation/Application.php | @@ -1128,7 +1128,7 @@ public function isLocale($locale)
public function registerCoreContainerAliases()
{
foreach ([
- 'app' => [self::class, \Illuminate\Contracts\Container\Container::class, \Illuminate\Contracts\Foundation\Application::class, \Psr\Container\ContainerInte... | false |
Other | laravel | framework | df041d2f92c3cc324617ee6707c8846e4e634872.json | Add test for cookie stuff. | tests/Integration/Cookie/CookieTest.php | @@ -0,0 +1,64 @@
+<?php
+
+namespace Illuminate\Tests\Integration\Cookie;
+
+use Mockery;
+use Illuminate\Support\Str;
+use Illuminate\Http\Response;
+use Illuminate\Support\Carbon;
+use Orchestra\Testbench\TestCase;
+use Illuminate\Support\Facades\Route;
+use Illuminate\Support\Facades\Session;
+use Illuminate\Session... | false |
Other | laravel | framework | 78c19ef9a37e405e4e718e3723b3ec5458f872a0.json | add tests for session's save method | tests/Session/SessionStoreTest.php | @@ -4,6 +4,7 @@
use Mockery as m;
use ReflectionClass;
+use Illuminate\Support\Str;
use SessionHandlerInterface;
use Illuminate\Session\Store;
use PHPUnit\Framework\TestCase;
@@ -93,7 +94,7 @@ public function testSessionInvalidate()
$this->assertCount(0, $session->all());
}
- public function t... | false |
Other | laravel | framework | 3dafb5a3840053420d850e1ccb249efc980af94e.json | Add line break for plain text mails
This change adds a manual line break in addition to the existing HTML-only `<br>`. Before this change the text was `Regards,Laravel`. | src/Illuminate/Notifications/resources/views/email.blade.php | @@ -43,7 +43,8 @@
@if (! empty($salutation))
{{ $salutation }}
@else
-@lang('Regards'),<br>{{ config('app.name') }}
+@lang('Regards'),<br>
+{{ config('app.name') }}
@endif
{{-- Subcopy --}} | false |
Other | laravel | framework | 6cd0b1bd909cd48ca40d2d8e1826364684e123ec.json | Add logoutCurrentDevice method | src/Illuminate/Auth/Events/CurrentDeviceLogout.php | @@ -0,0 +1,37 @@
+<?php
+
+namespace Illuminate\Auth\Events;
+
+use Illuminate\Queue\SerializesModels;
+
+class CurrentDeviceLogout
+{
+ use SerializesModels;
+
+ /**
+ * The authentication guard name.
+ *
+ * @var string
+ */
+ public $guard;
+
+ /**
+ * The authenticated user.
+ *
... | true |
Other | laravel | framework | 6cd0b1bd909cd48ca40d2d8e1826364684e123ec.json | Add logoutCurrentDevice method | src/Illuminate/Auth/SessionGuard.php | @@ -531,6 +531,32 @@ protected function cycleRememberToken(AuthenticatableContract $user)
$this->provider->updateRememberToken($user, $token);
}
+ /**
+ * Log this session out for the current user.
+ *
+ * @return void
+ */
+ public function logoutCurrentDevice()
+ {
+ $u... | true |
Other | laravel | framework | 6cd0b1bd909cd48ca40d2d8e1826364684e123ec.json | Add logoutCurrentDevice method | tests/Auth/AuthGuardTest.php | @@ -19,6 +19,7 @@
use Symfony\Component\HttpFoundation\Request;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Contracts\Encryption\Encrypter;
+use Illuminate\Auth\Events\CurrentDeviceLogout;
use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;
class AuthGuardTest extends TestCase... | true |
Other | laravel | framework | 6cd0b1bd909cd48ca40d2d8e1826364684e123ec.json | Add logoutCurrentDevice method | tests/Integration/Auth/AuthenticationTest.php | @@ -229,6 +229,24 @@ public function test_logging_in_out_via_attempt_remembering()
$this->assertNotEquals($oldToken, $user->getRememberToken());
}
+ public function test_logging_in_out_current_device_via_remembering()
+ {
+ $this->assertTrue(
+ $this->app['auth']->attempt(['email... | true |
Other | laravel | framework | 3495ebd7c830ed37b737003d58d991038b479616.json | Improve UPDATE and DELETE queries on PostgreSQL | src/Illuminate/Database/Query/Grammars/PostgresGrammar.php | @@ -243,11 +243,13 @@ public function compileUpdate(Builder $query, $values)
// the values in the list of bindings so we can make the sets statements.
$columns = $this->compileUpdateColumns($query, $values);
- $from = $this->compileUpdateFrom($query);
+ if (isset($query->joins) || isse... | true |
Other | laravel | framework | 3495ebd7c830ed37b737003d58d991038b479616.json | Improve UPDATE and DELETE queries on PostgreSQL | tests/Database/DatabaseQueryBuilderTest.php | @@ -2040,20 +2040,20 @@ public function testUpdateMethodWithoutJoinsOnPostgres()
public function testUpdateMethodWithJoinsOnPostgres()
{
$builder = $this->getPostgresBuilder();
- $builder->getConnection()->shouldReceive('update')->once()->with('update "users" set "email" = ?, "name" = ? from "... | true |
Other | laravel | framework | 0ccd8687e010c7d335cc34e48a618a7c7722ad38.json | Apply fixes from StyleCI (#29390) | tests/Integration/Queue/CallQueuedHandlerTest.php | @@ -160,9 +160,10 @@ public function middleware()
public function handle($command, $next)
{
CallQueuedHandlerTestJobWithMiddleware::$middlewareCommand = $command;
+
return $next($command);
}
- }
+ },
... | false |
Other | laravel | framework | a37d88a3a3c193882f29aab88b33accbd995c749.json | change default job attempts from unlimited to 1 | src/Illuminate/Queue/Console/ListenCommand.php | @@ -21,7 +21,7 @@ class ListenCommand extends Command
{--queue= : The queue to listen on}
{--sleep=3 : Number of seconds to sleep when no job is available}
{--timeout=60 : The number of seconds a child process can run}
- ... | true |
Other | laravel | framework | a37d88a3a3c193882f29aab88b33accbd995c749.json | change default job attempts from unlimited to 1 | src/Illuminate/Queue/Console/WorkCommand.php | @@ -29,7 +29,7 @@ class WorkCommand extends Command
{--memory=128 : The memory limit in megabytes}
{--sleep=3 : Number of seconds to sleep when no job is available}
{--timeout=60 : The number of seconds a child process can run}
- ... | true |
Other | laravel | framework | a37d88a3a3c193882f29aab88b33accbd995c749.json | change default job attempts from unlimited to 1 | src/Illuminate/Queue/ListenerOptions.php | @@ -23,7 +23,7 @@ class ListenerOptions extends WorkerOptions
* @param bool $force
* @return void
*/
- public function __construct($environment = null, $delay = 0, $memory = 128, $timeout = 60, $sleep = 3, $maxTries = 0, $force = false)
+ public function __construct($environment = null, $delay... | true |
Other | laravel | framework | a37d88a3a3c193882f29aab88b33accbd995c749.json | change default job attempts from unlimited to 1 | src/Illuminate/Queue/WorkerOptions.php | @@ -65,7 +65,7 @@ class WorkerOptions
* @param bool $stopWhenEmpty
* @return void
*/
- public function __construct($delay = 0, $memory = 128, $timeout = 60, $sleep = 3, $maxTries = 0, $force = false, $stopWhenEmpty = false)
+ public function __construct($delay = 0, $memory = 128, $timeout = 60... | true |
Other | laravel | framework | a37d88a3a3c193882f29aab88b33accbd995c749.json | change default job attempts from unlimited to 1 | tests/Queue/QueueListenerTest.php | @@ -49,7 +49,7 @@ public function testMakeProcessCorrectlyFormatsCommandLine()
$this->assertInstanceOf(Process::class, $process);
$this->assertEquals(__DIR__, $process->getWorkingDirectory());
$this->assertEquals(3, $process->getTimeout());
- $this->assertEquals($escape.PHP_BINARY.$esc... | true |
Other | laravel | framework | 9c5c640d0871924a77a4f7db2b82884fb4227d89.json | Apply suggestions from code review
Co-Authored-By: Dries Vints <dries.vints@gmail.com> | src/Illuminate/Foundation/Testing/TestResponse.php | @@ -676,9 +676,11 @@ public function assertJsonValidationErrors($errors)
if (! is_int($key)) {
$hasError = false;
+
foreach (Arr::wrap($jsonErrors[$key]) as $jsonErrorMessage) {
if (Str::contains($jsonErrorMessage, $value)) {
... | false |
Other | laravel | framework | 706e4640221804bc9615025753ce4c7ce5de51b8.json | Improve code to break early | src/Illuminate/Foundation/Testing/TestResponse.php | @@ -679,6 +679,7 @@ public function assertJsonValidationErrors($errors)
foreach (Arr::wrap($jsonErrors[$key]) as $jsonErrorMessage) {
if (Str::contains($jsonErrorMessage, $value)) {
$hasError = true;
+ break;
}
... | false |
Other | laravel | framework | 9d8c11d5190e81b879f1b2bfdb4f4acfe9d94b88.json | Fix coding style | src/Illuminate/Foundation/Testing/TestResponse.php | @@ -682,9 +682,9 @@ public function assertJsonValidationErrors($errors)
}
}
- if (!$hasError) {
+ if (! $hasError) {
PHPUnit::fail(
- "Failed to find a validation error in the response for key and message: ... | false |
Other | laravel | framework | 2f803194545b122b1b2646be82793e9e99f97baa.json | Fix worker timeout handler for null `$job`
The queue worker timeout handler may be called with a null `$job` if the
timeout is reached when there is no job processing (perhaps it took too long
to fetch the next job in the worker loop). This fix checks to make sure there
is a job before attempting to mark the as fai... | src/Illuminate/Queue/Worker.php | @@ -140,9 +140,11 @@ protected function registerTimeoutHandler($job, WorkerOptions $options)
// process if it is running too long because it has frozen. This uses the async
// signals supported in recent versions of PHP to accomplish it conveniently.
pcntl_signal(SIGALRM, function () use ($jo... | false |
Other | laravel | framework | e558d8b5d91276fa377b5da46ebc072f8a3ac226.json | Fix some docblocks params. | src/Illuminate/Database/Eloquent/Relations/Concerns/AsPivot.php | @@ -203,7 +203,7 @@ public function setPivotKeys($foreignKey, $relatedKey)
/**
* Determine if the pivot model or given attributes has timestamp attributes.
*
- * @param $attributes array|null
+ * @param array|null $attributes
* @return bool
*/
public function hasTimestampAt... | true |
Other | laravel | framework | e558d8b5d91276fa377b5da46ebc072f8a3ac226.json | Fix some docblocks params. | src/Illuminate/Redis/Connections/PhpRedisConnection.php | @@ -149,7 +149,7 @@ public function hsetnx($hash, $key, $value)
*
* @param string $key
* @param int $count
- * @param $value $value
+ * @param mixed $value
* @return int|false
*/
public function lrem($key, $count, $value) | true |
Other | laravel | framework | e558d8b5d91276fa377b5da46ebc072f8a3ac226.json | Fix some docblocks params. | tests/Http/HttpJsonResponseTest.php | @@ -15,7 +15,7 @@ class HttpJsonResponseTest extends TestCase
/**
* @dataProvider setAndRetrieveDataProvider
*
- * @param $data
+ * @param mixed $data
*/
public function testSetAndRetrieveData($data): void
{ | true |
Other | laravel | framework | e558d8b5d91276fa377b5da46ebc072f8a3ac226.json | Fix some docblocks params. | tests/Queue/RedisQueueIntegrationTest.php | @@ -68,7 +68,7 @@ public function testExpiredJobsArePopped($driver)
/**
* @dataProvider redisDriverProvider
*
- * @param $driver
+ * @param mixed $driver
*
* @throws \Exception
*/ | true |
Other | laravel | framework | 1e4486ad7e95929c7c4adda0c85273dc5cc4e150.json | Use pure class name (stdClass) | tests/Auth/AuthAccessGateTest.php | @@ -63,7 +63,7 @@ public function test_before_can_allow_guests()
$gate = new Gate(new Container, function () {
});
- $gate->before(function (?StdClass $user) {
+ $gate->before(function (?stdClass $user) {
return true;
});
@@ -75,7 +75,7 @@ public function test_a... | false |
Other | laravel | framework | 5deeb7febb93729cc43a96b3c0218be347af132f.json | Remove temporary variable | src/Illuminate/Http/Request.php | @@ -422,16 +422,14 @@ public static function createFromBase(SymfonyRequest $request)
return $request;
}
- $content = $request->content;
-
$newRequest = (new static)->duplicate(
$request->query->all(), $request->request->all(), $request->attributes->all(),
... | false |
Other | laravel | framework | 3702636d8c2bb0b2aadbd85ec9ddf122d85a7b6a.json | Fix version constraints | src/Illuminate/Cache/composer.json | @@ -16,7 +16,7 @@
"require": {
"php": "^7.2",
"illuminate/contracts": "^6.0",
- "illuminate/support": "^6.0*"
+ "illuminate/support": "^6.0"
},
"autoload": {
"psr-4": { | true |
Other | laravel | framework | 3702636d8c2bb0b2aadbd85ec9ddf122d85a7b6a.json | Fix version constraints | src/Illuminate/Queue/composer.json | @@ -16,7 +16,7 @@
"require": {
"php": "^7.2",
"ext-json": "*",
- "illuminate/console": "^6.0*",
+ "illuminate/console": "^6.0",
"illuminate/container": "^6.0",
"illuminate/contracts": "^6.0",
"illuminate/database": "^6.0", | true |
Other | laravel | framework | 422754fb7b28fe6c75ee57f1dd476eaadc2a4c40.json | Add assertSessionHasInput to TestResponse | src/Illuminate/Foundation/Testing/TestResponse.php | @@ -913,6 +913,41 @@ public function assertSessionHasAll(array $bindings)
return $this;
}
+ /**
+ * Assert that the session has a given value in the flashed input array.
+ *
+ * @param string|array $key
+ * @param mixed $value
+ * @return $this
+ */
+ public function as... | false |
Other | laravel | framework | 38278b29e05680ba5d2f992235c29d317e1c8309.json | Remove 5.7 changelog from master | CHANGELOG-5.7.md | @@ -1,517 +0,0 @@
-# Release Notes for 5.7.x
-
-## [Unreleased](https://github.com/laravel/framework/compare/v5.7.28...5.7)
-
-
-## [v5.7.28 (2019-02-26)](https://github.com/laravel/framework/compare/v5.7.27...v5.7.28)
-
-### Added
-- Add support for `Pheanstalk 4.x` ([#27622](https://github.com/laravel/framework/pull/... | false |
Other | laravel | framework | 0ecc2589023f8d0b51353c2cdd04f683342e1a61.json | Add WEBP to image validation rule | src/Illuminate/Validation/Concerns/ValidatesAttributes.php | @@ -988,7 +988,7 @@ public function validateLte($attribute, $value, $parameters)
*/
public function validateImage($attribute, $value)
{
- return $this->validateMimes($attribute, $value, ['jpeg', 'png', 'gif', 'bmp', 'svg']);
+ return $this->validateMimes($attribute, $value, ['jpeg', 'png',... | true |
Other | laravel | framework | 0ecc2589023f8d0b51353c2cdd04f683342e1a61.json | Add WEBP to image validation rule | tests/Validation/ValidationValidatorTest.php | @@ -2436,6 +2436,12 @@ public function testValidateImage()
$file6->expects($this->any())->method('getClientOriginalExtension')->will($this->returnValue('svg'));
$v = new Validator($trans, ['x' => $file6], ['x' => 'Image']);
$this->assertTrue($v->passes());
+
+ $file7 = $this->getMockBu... | true |
Other | laravel | framework | 5b99ece878d0a7e3ed711a246588eeb9570c338f.json | Fix DELETE queries with joins on PostgreSQL | src/Illuminate/Database/Query/Grammars/PostgresGrammar.php | @@ -400,9 +400,9 @@ protected function compileDeleteWithJoins($query, $table)
return $this->wrapTable($join->table);
})->implode(', ');
- $where = count($query->wheres) > 0 ? ' '.$this->compileUpdateWheres($query) : '';
+ $where = $this->compileUpdateWheres($query);
- retu... | true |
Other | laravel | framework | 5b99ece878d0a7e3ed711a246588eeb9570c338f.json | Fix DELETE queries with joins on PostgreSQL | tests/Database/DatabaseQueryBuilderTest.php | @@ -2183,6 +2183,11 @@ public function testDeleteWithJoinMethod()
})->where('name', 'baz')
->delete();
$this->assertEquals(1, $result);
+
+ $builder = $this->getPostgresBuilder();
+ $builder->getConnection()->shouldReceive('delete')->once()->with('delete from "users" USI... | true |
Other | laravel | framework | cc569504434599ad656ae81ca4fc745f4e7b6ab6.json | Fix deprecation comments | src/Illuminate/Database/Eloquent/Relations/BelongsTo.php | @@ -373,7 +373,7 @@ public function getRelationName()
* Get the name of the relationship.
*
* @return string
- * @deprecated The getRelationName() method should be used instead. Will be removed in Laravel 5.9.
+ * @deprecated The getRelationName() method should be used instead. Will be removed... | true |
Other | laravel | framework | cc569504434599ad656ae81ca4fc745f4e7b6ab6.json | Fix deprecation comments | src/Illuminate/Support/ServiceProvider.php | @@ -17,7 +17,7 @@ abstract class ServiceProvider
/**
* Indicates if loading of the provider is deferred.
*
- * @deprecated Implement the \Illuminate\Contracts\Support\DeferrableProvider interface instead. Will be removed in Laravel 5.9.
+ * @deprecated Implement the \Illuminate\Contracts\Suppor... | true |
Other | laravel | framework | e5bc19c54761ff53a8f297088a7b7d482e5b0a6b.json | Fix typo in test methods names | tests/Database/DatabaseEloquentBelongsToManyWithDefaultAttributesTest.php | @@ -15,13 +15,13 @@ protected function tearDown(): void
m::close();
}
- public function testwithPivotValueMethodSetsWhereConditionsForFetching()
+ public function testWithPivotValueMethodSetsWhereConditionsForFetching()
{
$relation = $this->getMockBuilder(BelongsToMany::class)->setMe... | false |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | bin/release.sh | @@ -9,7 +9,7 @@ then
exit 1
fi
-CURRENT_BRANCH="5.9"
+CURRENT_BRANCH="6.0"
VERSION=$1
# Always prepend with "v" | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | composer.json | @@ -110,7 +110,7 @@
},
"extra": {
"branch-alias": {
- "dev-master": "5.9-dev"
+ "dev-master": "6.0-dev"
}
},
"suggest": { | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Auth/composer.json | @@ -15,10 +15,10 @@
],
"require": {
"php": "^7.2",
- "illuminate/contracts": "5.9.*",
- "illuminate/http": "5.9.*",
- "illuminate/queue": "5.9.*",
- "illuminate/support": "5.9.*"
+ "illuminate/contracts": "^6.0",
+ "illuminate/http": "^6.0",
+ "illumin... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Broadcasting/composer.json | @@ -17,10 +17,10 @@
"php": "^7.2",
"ext-json": "*",
"psr/log": "^1.0",
- "illuminate/bus": "5.9.*",
- "illuminate/contracts": "5.9.*",
- "illuminate/queue": "5.9.*",
- "illuminate/support": "5.9.*"
+ "illuminate/bus": "^6.0",
+ "illuminate/contracts":... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Bus/composer.json | @@ -15,9 +15,9 @@
],
"require": {
"php": "^7.2",
- "illuminate/contracts": "5.9.*",
- "illuminate/pipeline": "5.9.*",
- "illuminate/support": "5.9.*"
+ "illuminate/contracts": "^6.0",
+ "illuminate/pipeline": "^6.0",
+ "illuminate/support": "^6.0"
},
... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Cache/composer.json | @@ -15,8 +15,8 @@
],
"require": {
"php": "^7.2",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*"
+ "illuminate/contracts": "^6.0",
+ "illuminate/support": "^6.0*"
},
"autoload": {
"psr-4": {
@@ -25,13 +25,13 @@
},
"extra": {
... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Config/composer.json | @@ -15,8 +15,8 @@
],
"require": {
"php": "^7.2",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*"
+ "illuminate/contracts": "^6.0",
+ "illuminate/support": "^6.0"
},
"autoload": {
"psr-4": {
@@ -25,7 +25,7 @@
},
"extra": {
... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Console/composer.json | @@ -15,8 +15,8 @@
],
"require": {
"php": "^7.2",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*",
+ "illuminate/contracts": "^6.0",
+ "illuminate/support": "^6.0",
"symfony/console": "^4.3",
"symfony/process": "^4.3"
},
@@ -27,13 +... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Container/composer.json | @@ -15,8 +15,8 @@
],
"require": {
"php": "^7.2",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*",
+ "illuminate/contracts": "^6.0",
+ "illuminate/support": "^6.0",
"psr/container": "^1.0"
},
"autoload": {
@@ -26,7 +26,7 @@
},
... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Contracts/composer.json | @@ -25,7 +25,7 @@
},
"extra": {
"branch-alias": {
- "dev-master": "5.9-dev"
+ "dev-master": "6.0-dev"
}
},
"config": { | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Cookie/composer.json | @@ -15,8 +15,8 @@
],
"require": {
"php": "^7.2",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*",
+ "illuminate/contracts": "^6.0",
+ "illuminate/support": "^6.0",
"symfony/http-foundation": "^4.3",
"symfony/http-kernel": "^4.3"
},... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Database/composer.json | @@ -17,9 +17,9 @@
"require": {
"php": "^7.2",
"ext-json": "*",
- "illuminate/container": "5.9.*",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*"
+ "illuminate/container": "^6.0",
+ "illuminate/contracts": "^6.0",
+ "illuminate/support"... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Encryption/composer.json | @@ -18,8 +18,8 @@
"ext-json": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*"
+ "illuminate/contracts": "^6.0",
+ "illuminate/support": "^6.0"
},
"autoload": {
"psr-4": {
@@ -28,7 +... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Events/composer.json | @@ -15,9 +15,9 @@
],
"require": {
"php": "^7.2",
- "illuminate/container": "5.9.*",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*"
+ "illuminate/container": "^6.0",
+ "illuminate/contracts": "^6.0",
+ "illuminate/support": "^6.0"
},
... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Filesystem/composer.json | @@ -15,8 +15,8 @@
],
"require": {
"php": "^7.2",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*",
+ "illuminate/contracts": "^6.0",
+ "illuminate/support": "^6.0",
"symfony/finder": "^4.3"
},
"autoload": {
@@ -26,7 +26,7 @@
},
... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Foundation/Application.php | @@ -30,7 +30,7 @@ class Application extends Container implements ApplicationContract, HttpKernelIn
*
* @var string
*/
- const VERSION = '5.9-dev';
+ const VERSION = '6.0-dev';
/**
* The base path for the Laravel installation. | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Hashing/composer.json | @@ -15,8 +15,8 @@
],
"require": {
"php": "^7.2",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*"
+ "illuminate/contracts": "^6.0",
+ "illuminate/support": "^6.0"
},
"autoload": {
"psr-4": {
@@ -25,7 +25,7 @@
},
"extra": {
... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Http/composer.json | @@ -16,8 +16,8 @@
"require": {
"php": "^7.2",
"ext-json": "*",
- "illuminate/session": "5.9.*",
- "illuminate/support": "5.9.*",
+ "illuminate/session": "^6.0",
+ "illuminate/support": "^6.0",
"symfony/http-foundation": "^4.3",
"symfony/http-kernel": ... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Log/composer.json | @@ -15,8 +15,8 @@
],
"require": {
"php": "^7.2",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*",
+ "illuminate/contracts": "^6.0",
+ "illuminate/support": "^6.0",
"monolog/monolog": "^1.11"
},
"autoload": {
@@ -26,7 +26,7 @@
},
... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Mail/composer.json | @@ -17,9 +17,9 @@
"php": "^7.2",
"ext-json": "*",
"erusev/parsedown": "^1.7",
- "illuminate/container": "5.9.*",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*",
+ "illuminate/container": "^6.0",
+ "illuminate/contracts": "^6.0",
+ ... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Notifications/composer.json | @@ -15,14 +15,14 @@
],
"require": {
"php": "^7.2",
- "illuminate/broadcasting": "5.9.*",
- "illuminate/bus": "5.9.*",
- "illuminate/container": "5.9.*",
- "illuminate/contracts": "5.9.*",
- "illuminate/filesystem": "5.9.*",
- "illuminate/mail": "5.9.*",
- ... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Pagination/composer.json | @@ -16,8 +16,8 @@
"require": {
"php": "^7.2",
"ext-json": "*",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*"
+ "illuminate/contracts": "^6.0",
+ "illuminate/support": "^6.0"
},
"autoload": {
"psr-4": {
@@ -26,7 +26,7 @@
},
... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Pipeline/composer.json | @@ -15,8 +15,8 @@
],
"require": {
"php": "^7.2",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*"
+ "illuminate/contracts": "^6.0",
+ "illuminate/support": "^6.0"
},
"autoload": {
"psr-4": {
@@ -25,7 +25,7 @@
},
"extra": {
... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Queue/composer.json | @@ -16,12 +16,12 @@
"require": {
"php": "^7.2",
"ext-json": "*",
- "illuminate/console": "5.9.*",
- "illuminate/container": "5.9.*",
- "illuminate/contracts": "5.9.*",
- "illuminate/database": "5.9.*",
- "illuminate/filesystem": "5.9.*",
- "illuminate/sup... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Redis/composer.json | @@ -15,8 +15,8 @@
],
"require": {
"php": "^7.2",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*",
+ "illuminate/contracts": "^6.0",
+ "illuminate/support": "^6.0",
"predis/predis": "^1.0"
},
"autoload": {
@@ -26,7 +26,7 @@
},
... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Routing/composer.json | @@ -16,12 +16,12 @@
"require": {
"php": "^7.2",
"ext-json": "*",
- "illuminate/container": "5.9.*",
- "illuminate/contracts": "5.9.*",
- "illuminate/http": "5.9.*",
- "illuminate/pipeline": "5.9.*",
- "illuminate/session": "5.9.*",
- "illuminate/support":... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Session/composer.json | @@ -16,9 +16,9 @@
"require": {
"php": "^7.2",
"ext-json": "*",
- "illuminate/contracts": "5.9.*",
- "illuminate/filesystem": "5.9.*",
- "illuminate/support": "5.9.*",
+ "illuminate/contracts": "^6.0",
+ "illuminate/filesystem": "^6.0",
+ "illuminate/suppo... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Support/composer.json | @@ -18,7 +18,7 @@
"ext-json": "*",
"ext-mbstring": "*",
"doctrine/inflector": "^1.1",
- "illuminate/contracts": "5.9.*",
+ "illuminate/contracts": "^6.0",
"nesbot/carbon": "^2.0"
},
"conflict": {
@@ -34,11 +34,11 @@
},
"extra": {
"branch-ali... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Translation/composer.json | @@ -16,9 +16,9 @@
"require": {
"php": "^7.2",
"ext-json": "*",
- "illuminate/contracts": "5.9.*",
- "illuminate/filesystem": "5.9.*",
- "illuminate/support": "5.9.*"
+ "illuminate/contracts": "^6.0",
+ "illuminate/filesystem": "^6.0",
+ "illuminate/suppor... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/Validation/composer.json | @@ -17,10 +17,10 @@
"php": "^7.2",
"ext-json": "*",
"egulias/email-validator": "^2.0",
- "illuminate/container": "5.9.*",
- "illuminate/contracts": "5.9.*",
- "illuminate/support": "5.9.*",
- "illuminate/translation": "5.9.*",
+ "illuminate/container": "^6.0... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | src/Illuminate/View/composer.json | @@ -16,11 +16,11 @@
"require": {
"php": "^7.2",
"ext-json": "*",
- "illuminate/container": "5.9.*",
- "illuminate/contracts": "5.9.*",
- "illuminate/events": "5.9.*",
- "illuminate/filesystem": "5.9.*",
- "illuminate/support": "5.9.*",
+ "illuminate/conta... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | tests/Console/ConsoleApplicationTest.php | @@ -53,7 +53,7 @@ public function testResolveAddsCommandViaApplicationResolution()
public function testCallFullyStringCommandLine()
{
$app = new Application(
- $app = m::mock(ApplicationContract::class, ['version' => '5.9']),
+ $app = m::mock(ApplicationContract::class, ['versio... | true |
Other | laravel | framework | f588c458574be4c7a7fa2714baab18c599d8dc66.json | Update version constraints for 6.0 | tests/Support/SupportTestingMailFakeTest.php | @@ -146,7 +146,7 @@ class MailableStub extends Mailable implements MailableContract
{
public $framework = 'Laravel';
- protected $version = '5.9';
+ protected $version = '6.0';
/**
* Build the message.
@@ -164,7 +164,7 @@ class QueueableMailableStub extends Mailable implements ShouldQueue
{
... | true |
Other | laravel | framework | 647cca5a44ad2bd56be1969a096dbd94b18dc3c6.json | Test the extend system | tests/Redis/RedisManagerExtensionTest.php | @@ -0,0 +1,88 @@
+<?php
+
+namespace Illuminate\Tests\Redis;
+
+use Illuminate\Contracts\Redis\Connector;
+use Illuminate\Foundation\Application;
+use Illuminate\Redis\RedisManager;
+use PHPUnit\Framework\TestCase;
+
+class RedisManagerExtensionTest extends TestCase
+{
+ /**
+ * Redis manager instance.
+ *
+... | false |
Other | laravel | framework | 847b196c7bf3cadae09ce9ebb6d4a2a4664518d2.json | Add support for custom drivers
This portion of code is heavily inspired by the CacheManager extension system. | src/Illuminate/Contracts/Redis/Connector.php | @@ -0,0 +1,25 @@
+<?php
+
+namespace Illuminate\Contracts\Redis;
+
+interface Connector
+{
+ /**
+ * Create a new clustered Predis connection.
+ *
+ * @param array $config
+ * @param array $options
+ * @return \Illuminate\Contracts\Redis\Connection
+ */
+ public function connect(array ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.