From 4689321b53e7d55139099c866b5e0e166d325d45 Mon Sep 17 00:00:00 2001 From: Michal Hubatka Date: Tue, 3 Oct 2023 15:01:00 +0200 Subject: [PATCH 01/14] Support for phpredis 6.0.0 (#48362) (#48380) Co-authored-by: Steff Missot --- .../Redis/Connectors/PhpRedisConnector.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Illuminate/Redis/Connectors/PhpRedisConnector.php b/src/Illuminate/Redis/Connectors/PhpRedisConnector.php index 8953c5f57934..8875c852a14a 100644 --- a/src/Illuminate/Redis/Connectors/PhpRedisConnector.php +++ b/src/Illuminate/Redis/Connectors/PhpRedisConnector.php @@ -188,15 +188,15 @@ protected function createRedisClusterInstance(array $servers, array $options) return tap(new RedisCluster(...$parameters), function ($client) use ($options) { if (! empty($options['prefix'])) { - $client->setOption(RedisCluster::OPT_PREFIX, $options['prefix']); + $client->setOption(Redis::OPT_PREFIX, $options['prefix']); } if (! empty($options['scan'])) { - $client->setOption(RedisCluster::OPT_SCAN, $options['scan']); + $client->setOption(Redis::OPT_SCAN, $options['scan']); } if (! empty($options['failover'])) { - $client->setOption(RedisCluster::OPT_SLAVE_FAILOVER, $options['failover']); + $client->setOption(Redis::OPT_SLAVE_FAILOVER, $options['failover']); } if (! empty($options['name'])) { @@ -204,15 +204,15 @@ protected function createRedisClusterInstance(array $servers, array $options) } if (array_key_exists('serializer', $options)) { - $client->setOption(RedisCluster::OPT_SERIALIZER, $options['serializer']); + $client->setOption(Redis::OPT_SERIALIZER, $options['serializer']); } if (array_key_exists('compression', $options)) { - $client->setOption(RedisCluster::OPT_COMPRESSION, $options['compression']); + $client->setOption(Redis::OPT_COMPRESSION, $options['compression']); } if (array_key_exists('compression_level', $options)) { - $client->setOption(RedisCluster::OPT_COMPRESSION_LEVEL, $options['compression_level']); + $client->setOption(Redis::OPT_COMPRESSION_LEVEL, $options['compression_level']); } }); } From 850d3c3cad674db29d47d3f3e8621146f1a63213 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 3 Oct 2023 08:01:42 -0500 Subject: [PATCH 02/14] wip --- src/Illuminate/Redis/Connectors/PhpRedisConnector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Redis/Connectors/PhpRedisConnector.php b/src/Illuminate/Redis/Connectors/PhpRedisConnector.php index 8875c852a14a..bc6e63f927df 100644 --- a/src/Illuminate/Redis/Connectors/PhpRedisConnector.php +++ b/src/Illuminate/Redis/Connectors/PhpRedisConnector.php @@ -196,7 +196,7 @@ protected function createRedisClusterInstance(array $servers, array $options) } if (! empty($options['failover'])) { - $client->setOption(Redis::OPT_SLAVE_FAILOVER, $options['failover']); + $client->setOption(RedisCluster::OPT_SLAVE_FAILOVER, $options['failover']); } if (! empty($options['name'])) { From 082345d76fc6a55b649572efe10b11b03e279d24 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 3 Oct 2023 08:02:30 -0500 Subject: [PATCH 03/14] patch --- src/Illuminate/Foundation/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Application.php b/src/Illuminate/Foundation/Application.php index 6e0c949a4897..f1b72f455ab2 100755 --- a/src/Illuminate/Foundation/Application.php +++ b/src/Illuminate/Foundation/Application.php @@ -38,7 +38,7 @@ class Application extends Container implements ApplicationContract, CachesConfig * * @var string */ - const VERSION = '9.52.15'; + const VERSION = '9.52.16'; /** * The base path for the Laravel installation. From f510d4b3ef6449328ac7a099787e779dd297be69 Mon Sep 17 00:00:00 2001 From: driesvints Date: Fri, 22 Dec 2023 14:42:33 +0000 Subject: [PATCH 04/14] Update CHANGELOG --- CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2cafe7f4574..dc2f134bf2f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # Release Notes for 10.x -## [Unreleased](https://github.com/laravel/framework/compare/v10.38.1...10.x) +## [Unreleased](https://github.com/laravel/framework/compare/v10.38.2...10.x) + +## [v10.38.2](https://github.com/laravel/framework/compare/v10.38.1...v10.38.2) - 2023-12-22 + +* [10.x] Add `conflict` for `doctrine/dbal:^4.0` to `illuminate/database` by [@crynobone](https://github.com/crynobone) in https://github.com/laravel/framework/pull/49456 +* [10.x] Simplify Arr::dot by [@bastien-phi](https://github.com/bastien-phi) in https://github.com/laravel/framework/pull/49461 +* [10.x] Illuminate\Filesystem\join_paths(): Argument #2 must be of type string, null given by [@tylernathanreed](https://github.com/tylernathanreed) in https://github.com/laravel/framework/pull/49467 +* [10.x] Allow deprecation logging in tests by [@timacdonald](https://github.com/timacdonald) in https://github.com/laravel/framework/pull/49457 +* [10.x] Fix missing Validation rules not working with nested array by [@aabadawy](https://github.com/aabadawy) in https://github.com/laravel/framework/pull/49449 ## [v10.38.1](https://github.com/laravel/framework/compare/v10.38.0...v10.38.1) - 2023-12-20 From f331b5c344d3e4c4595a7c9512a63ccb96d8e81e Mon Sep 17 00:00:00 2001 From: Di Date: Fri, 22 Dec 2023 17:41:29 +0100 Subject: [PATCH 05/14] [10.x] Dynamic `maxTries` for queued jobs (#49473) * Added new method getJobTries to Queue.php to allow dynamic retry attempts on a job level * formatting --------- Co-authored-by: Taylor Otwell --- src/Illuminate/Queue/Queue.php | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Queue/Queue.php b/src/Illuminate/Queue/Queue.php index 4f36b80db75b..93a9a5420298 100755 --- a/src/Illuminate/Queue/Queue.php +++ b/src/Illuminate/Queue/Queue.php @@ -142,7 +142,7 @@ protected function createObjectPayload($job, $queue) 'uuid' => (string) Str::uuid(), 'displayName' => $this->getDisplayName($job), 'job' => 'Illuminate\Queue\CallQueuedHandler@call', - 'maxTries' => $job->tries ?? null, + 'maxTries' => $this->getJobTries($job) ?? null, 'maxExceptions' => $job->maxExceptions ?? null, 'failOnTimeout' => $job->failOnTimeout ?? false, 'backoff' => $this->getJobBackoff($job), @@ -178,6 +178,27 @@ protected function getDisplayName($job) ? $job->displayName() : get_class($job); } + /** + * Get the maximum number of attempts for an object-based queue handler. + * + * @param mixed $job + * @return mixed + */ + public function getJobTries($job) + { + if (! method_exists($job, 'tries') && ! isset($job->tries)) { + return; + } + + if (isset($job->tries)) { + return $job->tries; + } + + if (method_exists($job, 'tries') && ! is_null($job->tries())) { + return $job->tries(); + } + } + /** * Get the backoff for an object-based queue handler. * From 74441ad6e7f8c2846d952aa08685b66b3660b2a2 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Fri, 22 Dec 2023 16:41:49 +0000 Subject: [PATCH 06/14] Apply fixes from StyleCI --- src/Illuminate/Queue/Queue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Queue/Queue.php b/src/Illuminate/Queue/Queue.php index 93a9a5420298..1aa09ee30bdb 100755 --- a/src/Illuminate/Queue/Queue.php +++ b/src/Illuminate/Queue/Queue.php @@ -178,7 +178,7 @@ protected function getDisplayName($job) ? $job->displayName() : get_class($job); } - /** + /** * Get the maximum number of attempts for an object-based queue handler. * * @param mixed $job From 6c53284a09b77dc7e958a41fd6da998c68ef997e Mon Sep 17 00:00:00 2001 From: taylorotwell Date: Fri, 22 Dec 2023 16:42:26 +0000 Subject: [PATCH 07/14] Update facade docblocks --- src/Illuminate/Support/Facades/Queue.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Illuminate/Support/Facades/Queue.php b/src/Illuminate/Support/Facades/Queue.php index 34663eb15ff6..2646f09d6658 100755 --- a/src/Illuminate/Support/Facades/Queue.php +++ b/src/Illuminate/Support/Facades/Queue.php @@ -31,6 +31,7 @@ * @method static \Illuminate\Contracts\Queue\Job|null pop(string|null $queue = null) * @method static string getConnectionName() * @method static \Illuminate\Contracts\Queue\Queue setConnectionName(string $name) + * @method static mixed getJobTries(mixed $job) * @method static mixed getJobBackoff(mixed $job) * @method static mixed getJobExpiration(mixed $job) * @method static void createPayloadUsing(callable|null $callback) From 8837c1f9ab8db1634623ecc4ccdcbe688109eeb7 Mon Sep 17 00:00:00 2001 From: Rogelio Jacinto Date: Sat, 23 Dec 2023 08:07:45 -0700 Subject: [PATCH 08/14] [10.x] Avoid TypeError when using json validation rule when PHP < 8.3 (#49474) * test: validateJson should return false when value is null Fails with Laravel Framework 10.38.2 in PHP < 8.3, introduced in #49413 * fix: validateJson should return false when value is null Return false when $value is null. Avoid TypeError: json_validate(): Argument #1 ($json) must be of type string, null given, when using symfony/polyfill-php83 in PHP < 8.3. Avoid deprecation warning: json_validate(): Passing null to parameter #1 ($json) of type string is deprecated, when using PHP 8.3. --------- Co-authored-by: Rogelio Jacinto --- .../Validation/Concerns/ValidatesAttributes.php | 4 ++-- tests/Validation/ValidationValidatorTest.php | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Validation/Concerns/ValidatesAttributes.php b/src/Illuminate/Validation/Concerns/ValidatesAttributes.php index 312c0b71e34c..b4335fe90059 100644 --- a/src/Illuminate/Validation/Concerns/ValidatesAttributes.php +++ b/src/Illuminate/Validation/Concerns/ValidatesAttributes.php @@ -1430,11 +1430,11 @@ public function validateMacAddress($attribute, $value) */ public function validateJson($attribute, $value) { - if (is_array($value)) { + if (is_array($value) || is_null($value)) { return false; } - if (! is_scalar($value) && ! is_null($value) && ! method_exists($value, '__toString')) { + if (! is_scalar($value) && ! method_exists($value, '__toString')) { return false; } diff --git a/tests/Validation/ValidationValidatorTest.php b/tests/Validation/ValidationValidatorTest.php index f86123de3a70..aee3f9842100 100755 --- a/tests/Validation/ValidationValidatorTest.php +++ b/tests/Validation/ValidationValidatorTest.php @@ -19,6 +19,7 @@ use Illuminate\Support\Arr; use Illuminate\Support\Carbon; use Illuminate\Support\Exceptions\MathException; +use Illuminate\Support\Stringable; use Illuminate\Translation\ArrayLoader; use Illuminate\Translation\Translator; use Illuminate\Validation\DatabasePresenceVerifierInterface; @@ -2817,6 +2818,14 @@ public function testValidateJson() $trans = $this->getIlluminateArrayTranslator(); $v = new Validator($trans, ['foo' => ['array']], ['foo' => 'json']); $this->assertFalse($v->passes()); + + $trans = $this->getIlluminateArrayTranslator(); + $v = new Validator($trans, ['foo' => null], ['foo' => 'json']); + $this->assertFalse($v->passes()); + + $trans = $this->getIlluminateArrayTranslator(); + $v = new Validator($trans, ['foo' => new Stringable('[]')], ['foo' => 'json']); + $this->assertTrue($v->passes()); } public function testValidateBoolean() From 90ed27d8d29cef3523bae195334bbb752eea3ef6 Mon Sep 17 00:00:00 2001 From: Punyapal Shah <53343069+MrPunyapal@users.noreply.github.com> Date: Sat, 23 Dec 2023 20:39:08 +0530 Subject: [PATCH 09/14] [10.x] Fix use statement compilation in Blade templates (#49479) * Fix use statement compilation in Blade templates * added one more failing test * fix * fix typo --- .../Compilers/Concerns/CompilesUseStatements.php | 2 +- tests/View/Blade/BladeUseTest.php | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesUseStatements.php b/src/Illuminate/View/Compilers/Concerns/CompilesUseStatements.php index 8d74a77046d6..8218c9fdf2c6 100644 --- a/src/Illuminate/View/Compilers/Concerns/CompilesUseStatements.php +++ b/src/Illuminate/View/Compilers/Concerns/CompilesUseStatements.php @@ -14,7 +14,7 @@ protected function compileUse($expression) { $segments = explode(',', preg_replace("/[\(\)]/", '', $expression)); - $use = trim($segments[0], " '\""); + $use = ltrim(trim($segments[0], " '\""), '\\'); $as = isset($segments[1]) ? ' as '.trim($segments[1], " '\"") : ''; return ""; diff --git a/tests/View/Blade/BladeUseTest.php b/tests/View/Blade/BladeUseTest.php index bc1c8a708c2d..8e72c321540d 100644 --- a/tests/View/Blade/BladeUseTest.php +++ b/tests/View/Blade/BladeUseTest.php @@ -17,4 +17,18 @@ public function testUseStatementsWithoutAsAreCompiled() $expected = "Foo bar"; $this->assertEquals($expected, $this->compiler->compileString($string)); } + + public function testUseStatementsWithBackslashAtBeginningAreCompiled() + { + $string = "Foo @use('\SomeNamespace\SomeClass') bar"; + $expected = "Foo bar"; + $this->assertEquals($expected, $this->compiler->compileString($string)); + } + + public function testUseStatementsWithBackslashAtBeginningAndAliasedAreCompiled() + { + $string = "Foo @use('\SomeNamespace\SomeClass', 'Foo') bar"; + $expected = "Foo bar"; + $this->assertEquals($expected, $this->compiler->compileString($string)); + } } From a77d6b60fd84ea399c639ce35fd042d0fc5152e2 Mon Sep 17 00:00:00 2001 From: Andrea Marco Sartori Date: Sun, 24 Dec 2023 01:26:29 +1000 Subject: [PATCH 10/14] [10.x] Allow testing prompts validation (#49447) * [10.x] Allow testing prompts validation * [10.x] Move test * [10.x] Throw exception when testing prompt validation * Update ConfiguresPrompts.php --------- Co-authored-by: Taylor Otwell --- .../Console/Concerns/ConfiguresPrompts.php | 13 +++++-- .../Console/PromptValidationException.php | 9 +++++ src/Illuminate/Testing/PendingCommand.php | 3 ++ .../Console/PromptsValidationTest.php | 35 +++++++++++++++++++ 4 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 src/Illuminate/Console/PromptValidationException.php create mode 100644 tests/Integration/Console/PromptsValidationTest.php diff --git a/src/Illuminate/Console/Concerns/ConfiguresPrompts.php b/src/Illuminate/Console/Concerns/ConfiguresPrompts.php index 7bca27f45376..45d59495bf67 100644 --- a/src/Illuminate/Console/Concerns/ConfiguresPrompts.php +++ b/src/Illuminate/Console/Concerns/ConfiguresPrompts.php @@ -2,6 +2,7 @@ namespace Illuminate\Console\Concerns; +use Illuminate\Console\PromptValidationException; use Laravel\Prompts\ConfirmPrompt; use Laravel\Prompts\MultiSearchPrompt; use Laravel\Prompts\MultiSelectPrompt; @@ -132,7 +133,11 @@ protected function promptUntilValid($prompt, $required, $validate) if ($required && ($result === '' || $result === [] || $result === false)) { $this->components->error(is_string($required) ? $required : 'Required.'); - continue; + if ($this->laravel->runningUnitTests()) { + throw new PromptValidationException; + } else { + continue; + } } if ($validate) { @@ -141,7 +146,11 @@ protected function promptUntilValid($prompt, $required, $validate) if (is_string($error) && strlen($error) > 0) { $this->components->error($error); - continue; + if ($this->laravel->runningUnitTests()) { + throw new PromptValidationException; + } else { + continue; + } } } diff --git a/src/Illuminate/Console/PromptValidationException.php b/src/Illuminate/Console/PromptValidationException.php new file mode 100644 index 000000000000..218720967a0b --- /dev/null +++ b/src/Illuminate/Console/PromptValidationException.php @@ -0,0 +1,9 @@ +expectedExitCode !== null) { diff --git a/tests/Integration/Console/PromptsValidationTest.php b/tests/Integration/Console/PromptsValidationTest.php new file mode 100644 index 000000000000..de45ef16b669 --- /dev/null +++ b/tests/Integration/Console/PromptsValidationTest.php @@ -0,0 +1,35 @@ +registerCommand(new DummyPromptsValidationCommand()); + } + + public function testValidationForPrompts() + { + $this + ->artisan(DummyPromptsValidationCommand::class) + ->expectsQuestion('Test', 'bar') + ->expectsOutputToContain('error!'); + } +} + +class DummyPromptsValidationCommand extends Command +{ + protected $signature = 'prompts-validation-test'; + + public function handle() + { + text('Test', validate: fn ($value) => $value == 'foo' ? '' : 'error!'); + } +} From 8e6e056935785727f9b369f4d4bcdd0ed6c6560f Mon Sep 17 00:00:00 2001 From: Ahmed shamim Date: Sat, 23 Dec 2023 21:29:25 +0600 Subject: [PATCH 11/14] [10.x] Add 'Roundrobin' Symfony mailer transport driver (#49435) * add roundrobin symfony mailer transport driver * add test for roundrobin transport driver * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki --------- Signed-off-by: Mior Muhammad Zaki Co-authored-by: Mior Muhammad Zaki --- composer.json | 2 +- src/Illuminate/Mail/MailManager.php | 29 +++++++++++++++++++ .../Mail/MailRoundRobinTransportTest.php | 27 +++++++++++++++++ 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 tests/Integration/Mail/MailRoundRobinTransportTest.php diff --git a/composer.json b/composer.json index 5af97271ad45..dac49e5946c7 100644 --- a/composer.json +++ b/composer.json @@ -105,7 +105,7 @@ "league/flysystem-sftp-v3": "^3.0", "mockery/mockery": "^1.5.1", "nyholm/psr7": "^1.2", - "orchestra/testbench-core": "^8.15.1", + "orchestra/testbench-core": "^8.18", "pda/pheanstalk": "^4.0", "phpstan/phpstan": "^1.4.7", "phpunit/phpunit": "^10.0.7", diff --git a/src/Illuminate/Mail/MailManager.php b/src/Illuminate/Mail/MailManager.php index ecf094af2c15..f821aa933e40 100644 --- a/src/Illuminate/Mail/MailManager.php +++ b/src/Illuminate/Mail/MailManager.php @@ -21,6 +21,7 @@ use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory; use Symfony\Component\Mailer\Transport\Dsn; use Symfony\Component\Mailer\Transport\FailoverTransport; +use Symfony\Component\Mailer\Transport\RoundRobinTransport; use Symfony\Component\Mailer\Transport\SendmailTransport; use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport; use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransportFactory; @@ -375,6 +376,34 @@ protected function createFailoverTransport(array $config) return new FailoverTransport($transports); } + /** + * Create an instance of the Symfony Roundrobin Transport driver. + * + * @param array $config + * @return \Symfony\Component\Mailer\Transport\RoundRobinTransport + */ + protected function createRoundrobinTransport(array $config) + { + $transports = []; + + foreach ($config['mailers'] as $name) { + $config = $this->getConfig($name); + + if (is_null($config)) { + throw new InvalidArgumentException("Mailer [{$name}] is not defined."); + } + + // Now, we will check if the "driver" key exists and if it does we will set + // the transport configuration parameter in order to offer compatibility + // with any Laravel <= 6.x application style mail configuration files. + $transports[] = $this->app['config']['mail.driver'] + ? $this->createSymfonyTransport(array_merge($config, ['transport' => $name])) + : $this->createSymfonyTransport($config); + } + + return new RoundRobinTransport($transports); + } + /** * Create an instance of the Log Transport driver. * diff --git a/tests/Integration/Mail/MailRoundRobinTransportTest.php b/tests/Integration/Mail/MailRoundRobinTransportTest.php new file mode 100644 index 000000000000..cb1bd3c05222 --- /dev/null +++ b/tests/Integration/Mail/MailRoundRobinTransportTest.php @@ -0,0 +1,27 @@ + 'roundrobin', 'mailers' => ['sendmail', 'array']])] + public function testGetRoundRobinTransportWithConfiguredTransports() + { + $transport = app('mailer')->getSymfonyTransport(); + $this->assertInstanceOf(RoundRobinTransport::class, $transport); + } + + #[WithConfig('mail.driver', 'roundrobin')] + #[WithConfig('mail.mailers', ['sendmail', 'array'])] + #[WithConfig('mail.sendmail', '/usr/sbin/sendmail -bs')] + public function testGetRoundRobinTransportWithLaravel6StyleMailConfiguration() + { + $transport = app('mailer')->getSymfonyTransport(); + $this->assertInstanceOf(RoundRobinTransport::class, $transport); + } +} From dc2e925b2d75fc2673a5919c7ad727d68059c08e Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Mon, 25 Dec 2023 01:10:04 +0000 Subject: [PATCH 12/14] Apply fixes from StyleCI --- tests/Foundation/FoundationViteTest.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/Foundation/FoundationViteTest.php b/tests/Foundation/FoundationViteTest.php index 30d5bf7b2fe4..77e65c511b90 100644 --- a/tests/Foundation/FoundationViteTest.php +++ b/tests/Foundation/FoundationViteTest.php @@ -1137,21 +1137,21 @@ public function testItOnlyOutputsUniquePreloadTags() { $buildDir = Str::random(); $this->makeViteManifest([ - 'resources/js/app.css' => [ - 'file' => 'assets/app-versioned.css', - 'src' => 'resources/js/app.css', + 'resources/js/app.css' => [ + 'file' => 'assets/app-versioned.css', + 'src' => 'resources/js/app.css', ], - 'resources/js/Pages/Welcome.vue' => [ - 'file' => 'assets/Welcome-versioned.js', - 'src' => 'resources/js/Pages/Welcome.vue', - 'imports' => [ + 'resources/js/Pages/Welcome.vue' => [ + 'file' => 'assets/Welcome-versioned.js', + 'src' => 'resources/js/Pages/Welcome.vue', + 'imports' => [ 'resources/js/app.js', ], ], - 'resources/js/app.js' => [ - 'file' => 'assets/app-versioned.js', - 'src' => 'resources/js/app.js', - 'css' => [ + 'resources/js/app.js' => [ + 'file' => 'assets/app-versioned.js', + 'src' => 'resources/js/app.js', + 'css' => [ 'assets/app-versioned.css', ], ], From b184c5ec5572aaa21fdc13e0c59a209315b90c9d Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Mon, 25 Dec 2023 01:11:56 +0000 Subject: [PATCH 13/14] Apply fixes from StyleCI --- .../Support/Testing/Fakes/QueueFake.php | 2 +- tests/Support/SupportArrTest.php | 2 +- tests/Validation/ValidationValidatorTest.php | 34 +++++++++---------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Illuminate/Support/Testing/Fakes/QueueFake.php b/src/Illuminate/Support/Testing/Fakes/QueueFake.php index 032136089174..4117d5619754 100644 --- a/src/Illuminate/Support/Testing/Fakes/QueueFake.php +++ b/src/Illuminate/Support/Testing/Fakes/QueueFake.php @@ -359,7 +359,7 @@ public function push($job, $data = '', $queue = null) } $this->jobs[is_object($job) ? get_class($job) : $job][] = [ - 'job' => $this->serializeAndRestore ? $this->serializeAndRestoreJob($job) : $job, + 'job' => $this->serializeAndRestore ? $this->serializeAndRestoreJob($job) : $job, 'queue' => $queue, 'data' => $data, ]; diff --git a/tests/Support/SupportArrTest.php b/tests/Support/SupportArrTest.php index a539eb4b2b02..3ff9851fab4c 100644 --- a/tests/Support/SupportArrTest.php +++ b/tests/Support/SupportArrTest.php @@ -118,7 +118,7 @@ public function testDot() $this->assertSame([ 'user.name' => 'Taylor', 'user.age' => 25, - 'user.languages.0' =>'PHP', + 'user.languages.0' => 'PHP', 'user.languages.1' => 'C#', ], $array); diff --git a/tests/Validation/ValidationValidatorTest.php b/tests/Validation/ValidationValidatorTest.php index aee3f9842100..7c9d7b31d3a2 100755 --- a/tests/Validation/ValidationValidatorTest.php +++ b/tests/Validation/ValidationValidatorTest.php @@ -1929,31 +1929,31 @@ public function testValidateInArray() public function testValidateHexColor() { $trans = $this->getIlluminateArrayTranslator(); - $v = new Validator($trans, ['color'=> '#FFF'], ['color'=>'hex_color']); + $v = new Validator($trans, ['color' => '#FFF'], ['color' => 'hex_color']); $this->assertTrue($v->passes()); - $v = new Validator($trans, ['color'=> '#FFFF'], ['color'=>'hex_color']); + $v = new Validator($trans, ['color' => '#FFFF'], ['color' => 'hex_color']); $this->assertTrue($v->passes()); - $v = new Validator($trans, ['color'=> '#FFFFFF'], ['color'=>'hex_color']); + $v = new Validator($trans, ['color' => '#FFFFFF'], ['color' => 'hex_color']); $this->assertTrue($v->passes()); - $v = new Validator($trans, ['color'=> '#FF000080'], ['color'=>'hex_color']); + $v = new Validator($trans, ['color' => '#FF000080'], ['color' => 'hex_color']); $this->assertTrue($v->passes()); - $v = new Validator($trans, ['color'=> '#FF000080'], ['color'=>'hex_color']); + $v = new Validator($trans, ['color' => '#FF000080'], ['color' => 'hex_color']); $this->assertTrue($v->passes()); - $v = new Validator($trans, ['color'=> '#00FF0080'], ['color'=>'hex_color']); + $v = new Validator($trans, ['color' => '#00FF0080'], ['color' => 'hex_color']); $this->assertTrue($v->passes()); - $v = new Validator($trans, ['color'=> '#GGG'], ['color'=>'hex_color']); + $v = new Validator($trans, ['color' => '#GGG'], ['color' => 'hex_color']); $this->assertFalse($v->passes()); - $v = new Validator($trans, ['color'=> '#GGGG'], ['color'=>'hex_color']); + $v = new Validator($trans, ['color' => '#GGGG'], ['color' => 'hex_color']); $this->assertFalse($v->passes()); - $v = new Validator($trans, ['color'=> '#123AB'], ['color'=>'hex_color']); + $v = new Validator($trans, ['color' => '#123AB'], ['color' => 'hex_color']); $this->assertFalse($v->passes()); - $v = new Validator($trans, ['color'=> '#GGGGGG'], ['color'=>'hex_color']); + $v = new Validator($trans, ['color' => '#GGGGGG'], ['color' => 'hex_color']); $this->assertFalse($v->passes()); - $v = new Validator($trans, ['color'=> '#GGGGGGG'], ['color'=>'hex_color']); + $v = new Validator($trans, ['color' => '#GGGGGGG'], ['color' => 'hex_color']); $this->assertFalse($v->passes()); - $v = new Validator($trans, ['color'=> '#FFGG00FF'], ['color'=>'hex_color']); + $v = new Validator($trans, ['color' => '#FFGG00FF'], ['color' => 'hex_color']); $this->assertFalse($v->passes()); - $v = new Validator($trans, ['color'=> '#00FF008X'], ['color'=>'hex_color']); + $v = new Validator($trans, ['color' => '#00FF008X'], ['color' => 'hex_color']); $this->assertFalse($v->passes()); } @@ -8662,10 +8662,10 @@ public function testExcludeBeforeADependentRule() $this->getIlluminateArrayTranslator(), [ 'profile_id' => null, - 'type' => 'denied', + 'type' => 'denied', ], [ - 'type' => ['required', 'string', 'exclude'], + 'type' => ['required', 'string', 'exclude'], 'profile_id' => ['nullable', 'required_if:type,profile', 'integer'], ], ); @@ -8677,10 +8677,10 @@ public function testExcludeBeforeADependentRule() $this->getIlluminateArrayTranslator(), [ 'profile_id' => null, - 'type' => 'profile', + 'type' => 'profile', ], [ - 'type' => ['required', 'string', 'exclude'], + 'type' => ['required', 'string', 'exclude'], 'profile_id' => ['nullable', 'required_if:type,profile', 'integer'], ], ); From 114926b07bfb5fbf2545c03aa2ce5c8c37be650c Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 27 Dec 2023 08:26:28 -0600 Subject: [PATCH 14/14] minor release --- src/Illuminate/Foundation/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Application.php b/src/Illuminate/Foundation/Application.php index 5870e0263ce6..b7585b42e242 100755 --- a/src/Illuminate/Foundation/Application.php +++ b/src/Illuminate/Foundation/Application.php @@ -40,7 +40,7 @@ class Application extends Container implements ApplicationContract, CachesConfig * * @var string */ - const VERSION = '10.38.2'; + const VERSION = '10.39.0'; /** * The base path for the Laravel installation.