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
3ade2155a2af35964ee99f583f0a30d8ce70cb23.json
Add missing params in docblocks
src/Illuminate/Testing/ParallelConsoleOutput.php
@@ -27,7 +27,7 @@ class ParallelConsoleOutput extends ConsoleOutput /** * Create a new Parallel ConsoleOutput instance. * - * @param \Symfony\Component\Console\Output\OutputInterface + * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ publi...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
src/Illuminate/Bus/Batch.php
@@ -11,6 +11,7 @@ use Illuminate\Support\Arr; use Illuminate\Support\Collection; use JsonSerializable; +use ReturnTypeWillChange; use Throwable; class Batch implements Arrayable, JsonSerializable @@ -459,6 +460,7 @@ public function toArray() * * @return array */ + #[ReturnTypeWillChange] ...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
src/Illuminate/Collections/Traits/EnumeratesValues.php
@@ -13,6 +13,7 @@ use Illuminate\Support\HigherOrderCollectionProxy; use Illuminate\Support\HigherOrderWhenProxy; use JsonSerializable; +use ReturnTypeWillChange; use Symfony\Component\VarDumper\VarDumper; use Traversable; @@ -833,6 +834,7 @@ public function toArray() * * @return array */ + ...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
src/Illuminate/Database/Eloquent/Casts/ArrayObject.php
@@ -5,6 +5,7 @@ use ArrayObject as BaseArrayObject; use Illuminate\Contracts\Support\Arrayable; use JsonSerializable; +use ReturnTypeWillChange; class ArrayObject extends BaseArrayObject implements Arrayable, JsonSerializable { @@ -33,6 +34,7 @@ public function toArray() * * @return array */ + ...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
src/Illuminate/Database/Eloquent/Model.php
@@ -21,6 +21,7 @@ use Illuminate\Support\Traits\ForwardsCalls; use JsonSerializable; use LogicException; +use ReturnTypeWillChange; abstract class Model implements Arrayable, ArrayAccess, HasBroadcastChannel, Jsonable, JsonSerializable, QueueableEntity, UrlRoutable { @@ -1426,6 +1427,7 @@ public function toJson(...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
src/Illuminate/Http/Resources/Json/JsonResource.php
@@ -11,6 +11,7 @@ use Illuminate\Http\Resources\ConditionallyLoadsAttributes; use Illuminate\Http\Resources\DelegatesToResource; use JsonSerializable; +use ReturnTypeWillChange; class JsonResource implements ArrayAccess, JsonSerializable, Responsable, UrlRoutable { @@ -226,6 +227,7 @@ public function toResponse(...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
src/Illuminate/Pagination/CursorPaginator.php
@@ -10,6 +10,7 @@ use Illuminate\Support\Collection; use IteratorAggregate; use JsonSerializable; +use ReturnTypeWillChange; class CursorPaginator extends AbstractCursorPaginator implements Arrayable, ArrayAccess, Countable, IteratorAggregate, Jsonable, JsonSerializable, PaginatorContract { @@ -142,6 +143,7 @@ p...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
src/Illuminate/Pagination/LengthAwarePaginator.php
@@ -10,6 +10,7 @@ use Illuminate\Support\Collection; use IteratorAggregate; use JsonSerializable; +use ReturnTypeWillChange; class LengthAwarePaginator extends AbstractPaginator implements Arrayable, ArrayAccess, Countable, IteratorAggregate, Jsonable, JsonSerializable, LengthAwarePaginatorContract { @@ -213,6 +...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
src/Illuminate/Pagination/Paginator.php
@@ -10,6 +10,7 @@ use Illuminate\Support\Collection; use IteratorAggregate; use JsonSerializable; +use ReturnTypeWillChange; class Paginator extends AbstractPaginator implements Arrayable, ArrayAccess, Countable, IteratorAggregate, Jsonable, JsonSerializable, PaginatorContract { @@ -158,6 +159,7 @@ public functi...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
src/Illuminate/Session/ArraySessionHandler.php
@@ -3,6 +3,7 @@ namespace Illuminate\Session; use Illuminate\Support\InteractsWithTime; +use ReturnTypeWillChange; use SessionHandlerInterface; class ArraySessionHandler implements SessionHandlerInterface @@ -37,6 +38,7 @@ public function __construct($minutes) /** * {@inheritdoc} */ + #[Retu...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
src/Illuminate/Session/NullSessionHandler.php
@@ -2,13 +2,15 @@ namespace Illuminate\Session; +use ReturnTypeWillChange; use SessionHandlerInterface; class NullSessionHandler implements SessionHandlerInterface { /** * {@inheritdoc} */ + #[ReturnTypeWillChange] public function open($savePath, $sessionName) { return t...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
src/Illuminate/Support/Fluent.php
@@ -6,6 +6,7 @@ use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Jsonable; use JsonSerializable; +use ReturnTypeWillChange; class Fluent implements Arrayable, ArrayAccess, Jsonable, JsonSerializable { @@ -70,6 +71,7 @@ public function toArray() * * @return array */ +...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
src/Illuminate/Support/MessageBag.php
@@ -8,6 +8,7 @@ use Illuminate\Contracts\Support\MessageBag as MessageBagContract; use Illuminate\Contracts\Support\MessageProvider; use JsonSerializable; +use ReturnTypeWillChange; class MessageBag implements Arrayable, Countable, Jsonable, JsonSerializable, MessageBagContract, MessageProvider { @@ -389,6 +390,...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
src/Illuminate/Support/Stringable.php
@@ -7,6 +7,7 @@ use Illuminate\Support\Traits\Macroable; use Illuminate\Support\Traits\Tappable; use JsonSerializable; +use ReturnTypeWillChange; use Symfony\Component\VarDumper\VarDumper; class Stringable implements JsonSerializable @@ -782,6 +783,7 @@ public function dd() * * @return string *...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
tests/Database/DatabaseProcessorTest.php
@@ -8,6 +8,7 @@ use Mockery as m; use PDO; use PHPUnit\Framework\TestCase; +use ReturnTypeWillChange; class DatabaseProcessorTest extends TestCase { @@ -38,7 +39,8 @@ public function __construct() // } - public function lastInsertId($sequence = null) + #[ReturnTypeWillChange] + public fu...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
tests/Http/HttpJsonResponseTest.php
@@ -124,7 +124,7 @@ public function toJson($options = 0) class JsonResponseTestJsonSerializeObject implements JsonSerializable { - public function jsonSerialize() + public function jsonSerialize(): array { return ['foo' => 'bar']; }
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
tests/Http/HttpResponseTest.php
@@ -245,7 +245,7 @@ public function toJson($options = 0) class JsonSerializableStub implements JsonSerializable { - public function jsonSerialize() + public function jsonSerialize(): array { return ['foo' => 'bar']; }
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
tests/Integration/Http/Fixtures/JsonSerializableResource.php
@@ -13,7 +13,7 @@ public function __construct($resource) $this->resource = $resource; } - public function jsonSerialize() + public function jsonSerialize(): array { return [ 'id' => $this->resource->id,
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
tests/Integration/Http/JsonResponseTest.php
@@ -19,7 +19,7 @@ public function testResponseWithInvalidJsonThrowsException() Route::get('/response', function () { return new JsonResponse(new class implements \JsonSerializable { - public function jsonSerialize() + public function jsonSerialize(): stri...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
tests/Integration/Http/ResponseTest.php
@@ -19,7 +19,7 @@ public function testResponseWithInvalidJsonThrowsException() Route::get('/response', function () { return (new Response())->setContent(new class implements \JsonSerializable { - public function jsonSerialize() + public function jsonSeria...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
tests/Support/SupportCollectionTest.php
@@ -4789,15 +4789,15 @@ public function toJson($options = 0) class TestJsonSerializeObject implements JsonSerializable { - public function jsonSerialize() + public function jsonSerialize(): array { return ['foo' => 'bar']; } } class TestJsonSerializeWithScalarValueObject implements Json...
true
Other
laravel
framework
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa.json
add ReturnTypeWillChange attribute (#37838)
tests/Testing/TestResponseTest.php
@@ -1381,7 +1381,7 @@ private function makeMockResponse($content) class JsonSerializableMixedResourcesStub implements JsonSerializable { - public function jsonSerialize() + public function jsonSerialize(): array { return [ 'foo' => 'bar', @@ -1415,7 +1415,7 @@ public function jsonSe...
true
Other
laravel
framework
f46a96c8b5fec4a8778f27b786c5d9f6f49b2949.json
Apply fixes from StyleCI (#37805)
src/Illuminate/Http/ResponseTrait.php
@@ -40,7 +40,7 @@ public function status() public function statusText() { return $this->statusText; - } + } /** * Get the content of the response.
true
Other
laravel
framework
f46a96c8b5fec4a8778f27b786c5d9f6f49b2949.json
Apply fixes from StyleCI (#37805)
tests/Http/HttpResponseTest.php
@@ -119,7 +119,7 @@ public function testSetStatusCodeAndRetrieveStatusText() $response->setStatusCode(404); $this->assertSame('Not Found', $response->statusText()); } - + public function testOnlyInputOnRedirect() { $response = new RedirectResponse('foo.bar');
true
Other
laravel
framework
cc84229a96870027793e11e7e8cf2182fc9fbba1.json
Fix merge conflicts
src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php
@@ -68,12 +68,8 @@ use Illuminate\Queue\Console\ForgetFailedCommand as ForgetFailedQueueCommand; use Illuminate\Queue\Console\ListenCommand as QueueListenCommand; use Illuminate\Queue\Console\ListFailedCommand as ListFailedQueueCommand; -<<<<<<< HEAD use Illuminate\Queue\Console\PruneBatchesCommand as QueuePruneBat...
false
Other
laravel
framework
96fe7ec3bab10b64ad19756ac0ade27d6719999d.json
Apply fixes from StyleCI (#37763)
tests/Http/HttpTestingFileFactoryTest.php
@@ -44,8 +44,9 @@ public function testImageJpeg() public function testImageGif() { - if (! function_exists('imagegif')) + if (! function_exists('imagegif')) { $this->markTestSkipped('The extension gd is missing from your system or was compiled without GIF support.'); + } ...
false
Other
laravel
framework
4be33548469b417bebbdb034562877d29eb9f453.json
Add collection `sliding` method (#37751)
src/Illuminate/Collections/Collection.php
@@ -959,6 +959,22 @@ public function shuffle($seed = null) return new static(Arr::shuffle($this->items, $seed)); } + /** + * Create chunks representing a "sliding window" view of the items in the collection. + * + * @param int $size + * @param int $step + * @return static + ...
true
Other
laravel
framework
4be33548469b417bebbdb034562877d29eb9f453.json
Add collection `sliding` method (#37751)
src/Illuminate/Collections/LazyCollection.php
@@ -920,6 +920,45 @@ public function shuffle($seed = null) return $this->passthru('shuffle', func_get_args()); } + /** + * Create chunks representing a "sliding window" view of the items in the collection. + * + * @param int $size + * @param int $step + * @return static + ...
true
Other
laravel
framework
4be33548469b417bebbdb034562877d29eb9f453.json
Add collection `sliding` method (#37751)
tests/Support/SupportCollectionTest.php
@@ -235,6 +235,65 @@ public function testShiftReturnsAndRemovesFirstItemInCollection() $this->assertNull($data->first()); } + /** + * @dataProvider collectionClassProvider + */ + public function testSliding($collection) + { + // Default parameters: $size = 2, $step = 1 + $...
true
Other
laravel
framework
4be33548469b417bebbdb034562877d29eb9f453.json
Add collection `sliding` method (#37751)
tests/Support/SupportLazyCollectionIsLazyTest.php
@@ -897,6 +897,29 @@ public function testShuffleIsLazy() }); } + public function testSlidingIsLazy() + { + $this->assertDoesNotEnumerate(function ($collection) { + $collection->sliding(); + }); + + $this->assertEnumerates(2, function ($collection) { + $co...
true
Other
laravel
framework
8c7d2dc9842f72344cd44dd75e45e3a921e50046.json
fix minor spelling error
src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
@@ -773,7 +773,7 @@ public function getResults() public function get($columns = ['*']) { // First we'll add the proper select columns onto the query so it is run with - // the proper columns. Then, we will get the results and hydrate out pivot + // the proper columns. Then, we will get ...
false
Other
laravel
framework
c655e6fc7dd07805b1f7cc3a95c53fcc2bbfb40b.json
add tests for singletonInstance
tests/Foundation/Testing/Concerns/InteractsWithContainerTest.php
@@ -27,4 +27,12 @@ public function testWithMixRestoresOriginalHandlerAndReturnsInstance() $this->assertSame($handler, resolve(Mix::class)); $this->assertSame($this, $instance); } + + public function testSingletonBoundInstancesCanBeResolved() + { + $this->singletonInstance('foo', 'bar...
false
Other
laravel
framework
952f84a3a5449a5f80190479240fce15bdaad558.json
add missing docblock (#37733) small follow up to #37720
src/Illuminate/Filesystem/FilesystemManager.php
@@ -119,6 +119,7 @@ protected function get($name) * Resolve the given disk. * * @param string $name + * @param array|null $config * @return \Illuminate\Contracts\Filesystem\Filesystem * * @throws \InvalidArgumentException
false
Other
laravel
framework
416339e57a0b49f7df89b4425c2c07f7baea014b.json
Fix 7.3 regression with short closure
src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php
@@ -185,7 +185,9 @@ protected function compileAnsiOffset(Builder $query, $components) // move the bindings to the right position: right after "select". if ($this->queryOrderContainsSubquery($query)) { $preferredBindingOrder = ['select', 'order', 'from', 'join', 'where', 'groupBy', 'having...
false
Other
laravel
framework
3abd69a10f0062540f5991431363ed7ed54004a8.json
Apply fixes from StyleCI (#37732)
src/Illuminate/Filesystem/FilesystemManager.php
@@ -100,7 +100,7 @@ public function build($config) { return $this->resolve('ondemand', is_array($config) ? $config : [ 'driver' => 'local', - 'root' => $config + 'root' => $config, ]); }
false
Other
laravel
framework
27ddf7da753290940a3a359ef7c3be37542b84d9.json
Use regular function for php 7.3 compatibility
src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php
@@ -184,7 +184,9 @@ protected function compileAnsiOffset(Builder $query, $components) // As this moves the order statement to be part of the "select" statement, we need to // move the bindings to the right position: right after "select". $preferredBindingOrder = ['select', 'order', 'from', 'j...
false
Other
laravel
framework
2bcdbb0d13e3d9d7bcbc5ba20c4ddead67cf77fc.json
Fix style issue
src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php
@@ -184,7 +184,7 @@ protected function compileAnsiOffset(Builder $query, $components) // As this moves the order statement to be part of the "select" statement, we need to // move the bindings to the right position: right after "select". $preferredBindingOrder = ['select', 'order', 'from', 'j...
false
Other
laravel
framework
3ec57b2d21129d5af78fe8978d247d1db50b602d.json
add method to build an on-demand filesystem the `build` method allows the user to create an on-demand filesystem disk. a string passed to the method will be treated as the "root" of a local driver (99% use case). passing an array allows full customization of the disk config.
src/Illuminate/Filesystem/FilesystemManager.php
@@ -90,6 +90,19 @@ public function cloud() return $this->disks[$name] = $this->get($name); } + /** + * Build an on-demand disk. + * + * @param string|array $root + * @return \Illuminate\Contracts\Filesystem\Filesystem + */ + public function build($root) + { + $confi...
true
Other
laravel
framework
3ec57b2d21129d5af78fe8978d247d1db50b602d.json
add method to build an on-demand filesystem the `build` method allows the user to create an on-demand filesystem disk. a string passed to the method will be treated as the "root" of a local driver (99% use case). passing an array allows full customization of the disk config.
src/Illuminate/Support/Facades/Storage.php
@@ -8,6 +8,7 @@ * @method static \Illuminate\Contracts\Filesystem\Filesystem assertExists(string|array $path) * @method static \Illuminate\Contracts\Filesystem\Filesystem assertMissing(string|array $path) * @method static \Illuminate\Contracts\Filesystem\Filesystem cloud() + * @method static \Illuminate\Contracts...
true
Other
laravel
framework
3ec57b2d21129d5af78fe8978d247d1db50b602d.json
add method to build an on-demand filesystem the `build` method allows the user to create an on-demand filesystem disk. a string passed to the method will be treated as the "root" of a local driver (99% use case). passing an array allows full customization of the disk config.
tests/Filesystem/FilesystemManagerTest.php
@@ -2,6 +2,7 @@ namespace Illuminate\Tests\Filesystem; +use Illuminate\Contracts\Filesystem\Filesystem; use Illuminate\Filesystem\FilesystemManager; use Illuminate\Foundation\Application; use InvalidArgumentException; @@ -20,4 +21,18 @@ public function testExceptionThrownOnUnsupportedDriver() $filesy...
true
Other
laravel
framework
40104bac79e74aeea5b2b5479de3d9430198899a.json
Update Builder.php (#37717)
src/Illuminate/Database/Eloquent/Builder.php
@@ -283,7 +283,7 @@ public function where($column, $operator = null, $value = null, $boolean = 'and' * @param mixed $operator * @param mixed $value * @param string $boolean - * @return \Illuminate\Database\Eloquent\Model|static + * @return \Illuminate\Database\Eloquent\Model|static|null ...
false
Other
laravel
framework
5781ad4fc123731eb485c919a1d388faef467da9.json
Apply fixes from StyleCI (#37689)
src/Illuminate/Validation/Rules/RequiredIf.php
@@ -24,7 +24,7 @@ public function __construct($condition) if (! is_string($condition) && (is_bool($condition) || is_callable($condition))) { $this->condition = $condition; } else { - throw new InvalidArgumentException("The provided condition must be a callable or boolean."); + ...
false
Other
laravel
framework
a590739385318b7fba687c91142d72049a01a307.json
Simplify `Conditionable` tests (#37657)
tests/Support/SupportConditionableTest.php
@@ -2,107 +2,87 @@ namespace Illuminate\Tests\Support; -use Exception; use Illuminate\Support\Traits\Conditionable; use PHPUnit\Framework\TestCase; class SupportConditionableTest extends TestCase { public function testWhenConditionCallback() { - $object = (new CustomConditionableObject()) - ...
false
Other
laravel
framework
0b1610f7a934787856b141205a9f178f33e17f8b.json
fix callable password defaults
src/Illuminate/Validation/Rules/Password.php
@@ -132,7 +132,9 @@ public static function defaults($callback = null) */ public static function default() { - $password = value(static::$defaultCallback); + $password = is_callable(static::$defaultCallback) + ? call_user_func(static::$defaultCallback) + ...
false
Other
laravel
framework
019277c92d8f5c00fc307ea73ece23d242fa73c9.json
Apply fixes from StyleCI (#37655)
src/Illuminate/Validation/Rules/Password.php
@@ -168,7 +168,7 @@ public function setValidator($validator) $this->validator = $validator; return $this; - } + } /** * Set the data under validation.
false
Other
laravel
framework
bf2acca4e7f3db44ceb28483a0b43b9e66375eec.json
Apply fixes from StyleCI (#37637)
tests/Testing/Fluent/AssertTest.php
@@ -435,13 +435,13 @@ public function testAssertWhereContainsFailsWithMissingNestedValue() $this->expectException(AssertionFailedError::class); $this->expectExceptionMessage('Property [id] does not contain [5].'); - $assert->whereContains('id', [1,2,3,4,5]); + $assert->whereContains('i...
false
Other
laravel
framework
ee1e6b4db76ff11505deb9e5faba3a04de424e97.json
add setter for record modification state
src/Illuminate/Database/Connection.php
@@ -891,6 +891,19 @@ public function recordsHaveBeenModified($value = true) } } + /** + * Set the record modification state. + * + * @param bool $value + * @return $this + */ + public function setRecordModificationState(bool $value) + { + $this->recordsModified = $v...
false
Other
laravel
framework
451f08565d7d491328fe3fa7be7e142f5c81ebd3.json
Adjust code doc
src/Illuminate/Testing/Fluent/Concerns/Matching.php
@@ -104,7 +104,7 @@ public function whereAllType(array $bindings): self } /** - * Asserts that all values exist and match their expected values. + * Asserts that the property matches their expected values. * * @param string $key * @param array|string $expected
false
Other
laravel
framework
3ff3c9a81207acd7c2825cc0c737e2fd41a82e41.json
Add another test
tests/Testing/Fluent/AssertTest.php
@@ -504,6 +504,14 @@ public function testAssertWhereHasWithOutOfOrderNestedMatchingType() $assert->whereHas('baz', 4); } + public function testAssertWhereHasWithNullExpectation() + { + $assert = AssertableJson::fromArray([ + 'foo' => 1, + ]); + + $assert->whereHas('...
false
Other
laravel
framework
77c577a4ac1c431c6012d24e6c64cdc59e9e9327.json
Fix typo and move below other where methods
src/Illuminate/Testing/Fluent/Concerns/Matching.php
@@ -9,42 +9,6 @@ trait Matching { - /** - * Assets that all values exist and match their expected values. - * - * @param string $key - * @param array|string $expected - * - * @return $this - */ - public function whereHas(string $key, $expected) - { - $actual = Colle...
false
Other
laravel
framework
cbdfde20578553816a69ccd8f4d1f9e42958ba72.json
Add `whereHas` assertable JSON method
src/Illuminate/Testing/Fluent/Concerns/Matching.php
@@ -9,6 +9,42 @@ trait Matching { + /** + * Assets that all values exist and match their expected values. + * + * @param string $key + * @param array|string $expected + * + * @return $this + */ + public function whereHas(string $key, $expected) + { + $actual = Colle...
true
Other
laravel
framework
cbdfde20578553816a69ccd8f4d1f9e42958ba72.json
Add `whereHas` assertable JSON method
tests/Testing/Fluent/AssertTest.php
@@ -401,6 +401,109 @@ public function testAssertWhereFailsWhenDoesNotMatchValueUsingArrayable() ]); } + public function testAssertWhereHasFailsWithEmptyValue() + { + $assert = AssertableJson::fromArray([]); + + $this->expectException(AssertionFailedError::class); + $this->...
true
Other
laravel
framework
fc46309cfa4678f06acf0a91a5eee34d33f3516d.json
Apply fixes from StyleCI (#37620)
src/Illuminate/Foundation/Providers/FoundationServiceProvider.php
@@ -87,7 +87,7 @@ public function registerRequestSignatureValidation() }); Request::macro('hasValidSignatureWhileIgnoring', function ($ignoreQuery = [], $absolute = true) { - return URL::hasValidSignature($this, $absolute, $ignoreQuery); - }); + return URL::hasValidSig...
false
Other
laravel
framework
a2dc47c89efa8101d14a3592dec4e666bf8146fa.json
use modern template
src/Illuminate/Foundation/Console/stubs/markdown-notification.stub
@@ -1,13 +1,13 @@ <?php -namespace DummyNamespace; +namespace {{ namespace }}; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; -class DummyClass extends Notification +class {{ class }} exte...
true
Other
laravel
framework
a2dc47c89efa8101d14a3592dec4e666bf8146fa.json
use modern template
src/Illuminate/Foundation/Console/stubs/notification.stub
@@ -1,13 +1,13 @@ <?php -namespace DummyNamespace; +namespace {{ namespace }}; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; -class DummyClass extends Notification +class {{ class }} exte...
true
Other
laravel
framework
c0ed2e420d1853e213c7b39729346a3c9c51a6e5.json
Apply fixes from StyleCI (#37547)
src/Illuminate/Mail/MailManager.php
@@ -263,8 +263,8 @@ protected function createSendmailTransport(array $config) protected function createSesTransport(array $config) { $config = array_merge( - $this->app['config']->get('services.ses', []), - ['version' => 'latest', 'service' => 'email'], + $this->app...
false
Other
laravel
framework
b3eafbdbb054b1cf0f59fb674eec8f92474f7c7d.json
Remove unused dependency (#37542)
src/Illuminate/Foundation/Console/DownCommand.php
@@ -5,7 +5,6 @@ use Exception; use Illuminate\Console\Command; use Illuminate\Foundation\Exceptions\RegisterErrorViewPaths; -use Illuminate\Support\Facades\View; class DownCommand extends Command {
false
Other
laravel
framework
1808581f2cb08b7fa79f79760668f3e17abe9162.json
Introduce Conditional trait on validation rules
src/Illuminate/Support/Traits/Conditional.php
@@ -0,0 +1,45 @@ +<?php + +namespace Illuminate\Support\Traits; + +use BadMethodCallException; +use Closure; +use ReflectionClass; +use ReflectionMethod; + +trait Conditional +{ + /** + * Apply the callback if the given "value" is true. + * + * @param mixed $value + * @param callable $ca...
true
Other
laravel
framework
1808581f2cb08b7fa79f79760668f3e17abe9162.json
Introduce Conditional trait on validation rules
src/Illuminate/Validation/Rules/Dimensions.php
@@ -2,8 +2,12 @@ namespace Illuminate\Validation\Rules; +use Illuminate\Support\Traits\Conditional; + class Dimensions { + use Conditional; + /** * The constraints for the dimensions rule. *
true
Other
laravel
framework
1808581f2cb08b7fa79f79760668f3e17abe9162.json
Introduce Conditional trait on validation rules
src/Illuminate/Validation/Rules/Exists.php
@@ -2,9 +2,12 @@ namespace Illuminate\Validation\Rules; +use Illuminate\Support\Traits\Conditional; + class Exists { use DatabaseRule; + use Conditional; /** * Convert the rule to a validation string.
true
Other
laravel
framework
1808581f2cb08b7fa79f79760668f3e17abe9162.json
Introduce Conditional trait on validation rules
src/Illuminate/Validation/Rules/Password.php
@@ -8,10 +8,13 @@ use Illuminate\Contracts\Validation\UncompromisedVerifier; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Validator; +use Illuminate\Support\Traits\Conditional; use InvalidArgumentException; class Password implements Rule, DataAwareRule { + use Conditional; + /** * Th...
true
Other
laravel
framework
1808581f2cb08b7fa79f79760668f3e17abe9162.json
Introduce Conditional trait on validation rules
src/Illuminate/Validation/Rules/Unique.php
@@ -3,10 +3,12 @@ namespace Illuminate\Validation\Rules; use Illuminate\Database\Eloquent\Model; +use Illuminate\Support\Traits\Conditional; class Unique { use DatabaseRule; + use Conditional; /** * The ID that should be ignored.
true
Other
laravel
framework
1808581f2cb08b7fa79f79760668f3e17abe9162.json
Introduce Conditional trait on validation rules
tests/Validation/ValidationDimensionsRuleTest.php
@@ -29,5 +29,14 @@ public function testItCorrectlyFormatsAStringVersionOfTheRule() $rule = Rule::dimensions()->minWidth(300)->minHeight(400); $this->assertSame('dimensions:min_width=300,min_height=400', (string) $rule); + + $rule = Rule::dimensions() + ->when(true, function($rule) ...
true
Other
laravel
framework
1808581f2cb08b7fa79f79760668f3e17abe9162.json
Introduce Conditional trait on validation rules
tests/Validation/ValidationExistsRuleTest.php
@@ -116,6 +116,35 @@ public function testItChoosesValidRecordsUsingWhereNotInRule() $this->assertTrue($v->passes()); } + public function testItChoosesValidRecordsUsingConditionalModifiers() + { + $rule = new Exists('users', 'id'); + $rule->when(true, function($rule) { + $r...
true
Other
laravel
framework
1808581f2cb08b7fa79f79760668f3e17abe9162.json
Introduce Conditional trait on validation rules
tests/Validation/ValidationPasswordRuleTest.php
@@ -41,6 +41,25 @@ public function testMin() $this->passes(new Password(8), ['88888888']); } + public function testConditional() + { + $is_privileged_user = true; + $rule = (new Password(8))->when($is_privileged_user, function($rule) { + $rule->symbols(); + }); + + ...
true
Other
laravel
framework
1808581f2cb08b7fa79f79760668f3e17abe9162.json
Introduce Conditional trait on validation rules
tests/Validation/ValidationUniqueRuleTest.php
@@ -40,6 +40,16 @@ public function testItCorrectlyFormatsAStringVersionOfTheRule() $rule->where('foo', 'bar'); $this->assertSame('unique:table,column,"Taylor, Otwell",id_column,foo,"bar"', (string) $rule); + $rule = new Unique(EloquentModelStub::class, 'column'); + $rule->where('foo', ...
true
Other
laravel
framework
e4b509e6571bbdc99db0725ce3ca897d47afccf1.json
Extract removable symlink check to method
src/Illuminate/Foundation/Console/StorageLinkCommand.php
@@ -33,7 +33,7 @@ public function handle() $force = $this->option('force'); foreach ($this->links() as $link => $target) { - if (file_exists($link) && ! (is_link($link) && $force)) { + if (file_exists($link) && ! $this->removableSymlink($link, $force)) { $this-...
false
Other
laravel
framework
968a36478814c740d25ec4d6f9c8bef859a2f834.json
Update signature formatting Co-authored-by: Dries Vints <dries@vints.io>
src/Illuminate/Foundation/Console/StorageLinkCommand.php
@@ -11,7 +11,8 @@ class StorageLinkCommand extends Command * * @var string */ - protected $signature = 'storage:link {--relative : Create the symbolic link using relative paths} + protected $signature = 'storage:link + {--relative : Create the symbolic link using relative paths} ...
false
Other
laravel
framework
306208394bf05f9acebce3663c3cfb7e3b1ac21c.json
Fix types of Console\Command properties (#37495) `Command::$description` and `Command::$help` are never null, because they are set via `Command::setDescription()` and `Command::setHelp()` respectively in the constructor.
src/Illuminate/Console/Command.php
@@ -38,14 +38,14 @@ class Command extends SymfonyCommand /** * The console command description. * - * @var string|null + * @var string */ protected $description; /** * The console command help text. * - * @var string|null + * @var string */ prote...
false
Other
laravel
framework
5a92f04b0287c609d025cd8ea87829b9c7b3e290.json
fix #37483 (aggregates with having) (#37487)
src/Illuminate/Database/Query/Builder.php
@@ -2826,8 +2826,8 @@ public function average($column) */ public function aggregate($function, $columns = ['*']) { - $results = $this->cloneWithout($this->unions ? [] : ['columns']) - ->cloneWithoutBindings($this->unions ? [] : ['select']) + $results = $this->cloneWi...
true
Other
laravel
framework
5a92f04b0287c609d025cd8ea87829b9c7b3e290.json
fix #37483 (aggregates with having) (#37487)
src/Illuminate/Database/Query/Grammars/Grammar.php
@@ -45,7 +45,7 @@ class Grammar extends BaseGrammar */ public function compileSelect(Builder $query) { - if ($query->unions && $query->aggregate) { + if (($query->unions || $query->havings) && $query->aggregate) { return $this->compileUnionAggregate($query); }
true
Other
laravel
framework
5a92f04b0287c609d025cd8ea87829b9c7b3e290.json
fix #37483 (aggregates with having) (#37487)
tests/Database/DatabaseQueryBuilderTest.php
@@ -1034,6 +1034,22 @@ public function testUnionAggregate() $builder->from('posts')->union($this->getSqlServerBuilder()->from('videos'))->count(); } + public function testHavingAggregate() + { + $expected = 'select count(*) as aggregate from (select (select `count(*)` from `videos` where `p...
true
Other
laravel
framework
188c99485dc3954be93c6c5e0f509d9cbe2ab13d.json
Add global callback handler Adds a way to call `Model::handleLazyLoadingViolationUsing()` from a service provider to add a way to handle violations for all models instead of overriding `violatedLazyLoading` on the models themselves.
src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
@@ -468,6 +468,11 @@ public function isRelation($key) */ protected function violatedLazyLoading($key) { + if (isset(static::$violatedLazyLoadingCallback)) { + call_user_func(static::$violatedLazyLoadingCallback, $this, $key); + return; + } + throw new LazyLoa...
true
Other
laravel
framework
188c99485dc3954be93c6c5e0f509d9cbe2ab13d.json
Add global callback handler Adds a way to call `Model::handleLazyLoadingViolationUsing()` from a service provider to add a way to handle violations for all models instead of overriding `violatedLazyLoading` on the models themselves.
src/Illuminate/Database/Eloquent/Model.php
@@ -158,6 +158,13 @@ abstract class Model implements Arrayable, ArrayAccess, Jsonable, JsonSerializab */ protected static $modelsShouldPreventLazyLoading = false; + /** + * The callback that is responsible for handing lazy loading violations. + * + * @var callable|null + */ + protecte...
true
Other
laravel
framework
188c99485dc3954be93c6c5e0f509d9cbe2ab13d.json
Add global callback handler Adds a way to call `Model::handleLazyLoadingViolationUsing()` from a service provider to add a way to handle violations for all models instead of overriding `violatedLazyLoading` on the models themselves.
tests/Integration/Database/EloquentStrictLoadingTest.php
@@ -100,6 +100,35 @@ public function testStrictModeThrowsAnExceptionOnLazyLoadingInRelations() $models[0]->modelTwos[0]->modelThrees; } + + public function testStrictModeWithCustomCallbackOnLazyLoading() + { + $this->expectsEvents(ViolatedLazyLoadingEvent::class); + + Model::handleLa...
true
Other
laravel
framework
bed4033c8ff1a987a957c20126d6d2f7cc519cb8.json
Add model support for database assertions
src/Illuminate/Foundation/Testing/Concerns/InteractsWithDatabase.php
@@ -17,15 +17,15 @@ trait InteractsWithDatabase /** * Assert that a given where condition exists in the database. * - * @param string $table + * @param \Illuminate\Database\Eloquent\Model|string $table * @param array $data * @param string|null $connection * @return $th...
true
Other
laravel
framework
bed4033c8ff1a987a957c20126d6d2f7cc519cb8.json
Add model support for database assertions
tests/Foundation/FoundationInteractsWithDatabaseTest.php
@@ -41,6 +41,14 @@ public function testSeeInDatabaseFindsResults() $this->assertDatabaseHas($this->table, $this->data); } + public function testAssertDatabaseHasSupportModels() + { + $this->mockCountBuilder(1); + + $this->assertDatabaseHas(ProductStub::class, $this->data); + $...
true
Other
laravel
framework
3a0af0a42cc22b030089ecc794e0211da6f64650.json
Add default timeout to NotPwnedVerifier
src/Illuminate/Validation/NotPwnedVerifier.php
@@ -15,15 +15,24 @@ class NotPwnedVerifier implements UncompromisedVerifier */ protected $factory; + /** + * The number of seconds the request can run before timing out. + * + * @var int + */ + public $timeout; + /** * Create a new uncompromised verifier. * * @p...
true
Other
laravel
framework
3a0af0a42cc22b030089ecc794e0211da6f64650.json
Add default timeout to NotPwnedVerifier
tests/Validation/ValidationNotPwnedVerifierTest.php
@@ -46,6 +46,12 @@ public function testApiResponseGoesWrong() ->with(['Add-Padding' => true]) ->andReturn($httpFactory); + $httpFactory + ->shouldReceive('timeout') + ->once() + ->with(15) + ->andReturn($httpFactory); + $httpFactory...
true
Other
laravel
framework
6a42e1216210b3ad3f738ab27e51e850190d9a1f.json
Apply fixes from StyleCI (#37427)
src/Illuminate/Database/Eloquent/Builder.php
@@ -356,7 +356,6 @@ public function hydrate(array $items) $model->preventsLazyLoading = Model::preventsLazyLoading(); - return $model; }, $items)); }
true
Other
laravel
framework
6a42e1216210b3ad3f738ab27e51e850190d9a1f.json
Apply fixes from StyleCI (#37427)
src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
@@ -11,7 +11,6 @@ use Illuminate\Database\Eloquent\JsonEncodingException; use Illuminate\Database\Eloquent\Relations\Relation; use Illuminate\Database\LazyLoadingViolationException; -use Illuminate\Database\StrictLoadingViolationException; use Illuminate\Support\Arr; use Illuminate\Support\Carbon; use Illuminate\...
true
Other
laravel
framework
6a42e1216210b3ad3f738ab27e51e850190d9a1f.json
Apply fixes from StyleCI (#37427)
tests/Integration/Database/EloquentStrictLoadingTest.php
@@ -4,8 +4,8 @@ use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; -use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\LazyLoadingViolationException; +use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; /**
true
Other
laravel
framework
b68826962fe28117f0efa9be001eee4d8fe7ad2e.json
Fix code style
src/Illuminate/Contracts/Foundation/ExceptionRenderer.php
@@ -7,8 +7,7 @@ interface ExceptionRenderer /** * Renders the given exception as HTML. * - * @param \Throwable $throwable - * + * @param \Throwable $throwable * @return string */ public function render($throwable);
false
Other
laravel
framework
3baf47598da6cfdefda6625c713e79f0ff2c29a5.json
Apply fixes from StyleCI
src/Illuminate/Database/Eloquent/Relations/HasOne.php
@@ -70,10 +70,10 @@ public function match(array $models, Collection $results, $relation) */ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, $columns = ['*']) { - if($this->isOneOfMany()) { + if ($this->isOneOfMany()) { $this->mergeJoinsTo($query...
true
Other
laravel
framework
3baf47598da6cfdefda6625c713e79f0ff2c29a5.json
Apply fixes from StyleCI
src/Illuminate/Database/Eloquent/Relations/MorphOne.php
@@ -68,7 +68,7 @@ public function match(array $models, Collection $results, $relation) */ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, $columns = ['*']) { - if($this->isOneOfMany()) { + if ($this->isOneOfMany()) { $this->mergeJoinsTo($query);...
true
Other
laravel
framework
3baf47598da6cfdefda6625c713e79f0ff2c29a5.json
Apply fixes from StyleCI
tests/Database/DatabaseEloquentMorphOneOfManyTest.php
@@ -133,7 +133,7 @@ public function testWithExistsWithConstraintsInJoinSubSelect() $product->states()->create([ 'state' => 'draft', - 'type' => 'foo' + 'type' => 'foo', ]); $product = MorphOneOfManyTestProduct::withExists('current_foo_state')->first(); ...
true
Other
laravel
framework
12b4a9e3fefe28b0afe9f5dd590394b13e1efdce.json
Fix PostgreSQL dump and load for Windows (#37320)
src/Illuminate/Database/Schema/PostgresSchemaState.php
@@ -25,7 +25,7 @@ public function dump(Connection $connection, $path) })->implode(' '); $this->makeProcess( - $this->baseDumpCommand().' --file=$LARAVEL_LOAD_PATH '.$excludedTables + $this->baseDumpCommand().' --file="${:LARAVEL_LOAD_PATH}" '.$excludedTables ...
false
Other
laravel
framework
0f2db34406f6fb0aab98de10e3d2fce5a8f97fc6.json
remove header setting
src/Illuminate/Routing/Router.php
@@ -795,10 +795,6 @@ public static function toResponse($request, $response) $response->setNotModified(); } - if (! $response->headers->has('Permissions-Policy')) { - $response->headers->set('Permissions-Policy', 'interest-cohort=()'); - } - return $response->pre...
false
Other
laravel
framework
0740f78a9869f0c96a78781b21ccd4c127ce460f.json
Apply fixes from StyleCI (#37241)
tests/Support/SupportStrTest.php
@@ -20,7 +20,7 @@ public function testStringCanBeLimitedByWordsNonAscii() $this->assertSame('这是...', Str::words('这是 段中文', 1)); $this->assertSame('这是___', Str::words('这是 段中文', 1, '___')); $this->assertSame('这是-段中文', Str::words('这是-段中文', 3, '___')); - $this->assertSame('这是___', Str::word...
false
Other
laravel
framework
c42988a551ffdae0e70aa15959969732265789c0.json
set interest cohort
src/Illuminate/Routing/Router.php
@@ -795,6 +795,10 @@ public static function toResponse($request, $response) $response->setNotModified(); } + if (! $response->headers->has('Permissions-Policy')) { + $response->headers->set('Permissions-Policy', 'interest-cohort=()'); + } + return $response->pre...
false
Other
laravel
framework
227f982f11c8485ce7dda6e75bcb91eea7b9a23d.json
enhance Handle docblocks (#37211)
src/Illuminate/Foundation/Exceptions/Handler.php
@@ -54,28 +54,28 @@ class Handler implements ExceptionHandlerContract /** * A list of the exception types that are not reported. * - * @var array + * @var string[] */ protected $dontReport = []; /** * The callbacks that should be used during reporting. * - * @v...
false
Other
laravel
framework
f370220e794b3ee6faa447979bf8978e4ebfef10.json
Apply fixes from StyleCI (#37194)
tests/Support/SupportStringableTest.php
@@ -439,7 +439,7 @@ public function testReplace() $this->assertSame('foo/foo/foo', (string) $this->stringable('?/?/?')->replace('?', 'foo')); $this->assertSame('bar/bar', (string) $this->stringable('?/?')->replace('?', 'bar')); $this->assertSame('?/?/?', (string) $this->stringable('? ? ?')->r...
false
Other
laravel
framework
9edd46fc6dcd550e4fd5d081bea37b0a43162165.json
Apply fixes from StyleCI (#37170)
src/Illuminate/Database/Eloquent/Model.php
@@ -782,7 +782,7 @@ public function update(array $attributes = [], array $options = []) return $this->fill($attributes)->save($options); } - + /** * Update the model in the database without raising any events. *
false
Other
laravel
framework
86fd558b4e5d8d7d45cf457cd1a72d54334297a1.json
Remove redundant check
src/Illuminate/Validation/Concerns/ValidatesAttributes.php
@@ -1516,7 +1516,7 @@ protected function prepareValuesAndOther($parameters) $values = $this->convertValuesToBoolean($values); } - if ($this->shouldConvertToNull($parameters[0]) || is_null($other)) { + if (is_null($other)) { $values = $this->convertValuesToNull($values)...
false
Other
laravel
framework
be961c33d08d3892c797b6bc883c8c7a1e561a3f.json
fix return type of pool (#37137)
src/Illuminate/Http/Client/Factory.php
@@ -35,7 +35,7 @@ * @method \Illuminate\Http\Client\PendingRequest dump() * @method \Illuminate\Http\Client\PendingRequest dd() * @method \Illuminate\Http\Client\PendingRequest async() - * @method \Illuminate\Http\Client\Pool pool(callable $callback) + * @method array pool(callable $callback) * @method \Illumin...
true
Other
laravel
framework
be961c33d08d3892c797b6bc883c8c7a1e561a3f.json
fix return type of pool (#37137)
src/Illuminate/Support/Facades/Http.php
@@ -33,7 +33,7 @@ * @method static \Illuminate\Http\Client\PendingRequest dump() * @method static \Illuminate\Http\Client\PendingRequest dd() * @method static \Illuminate\Http\Client\PendingRequest async() - * @method static \Illuminate\Http\Client\Pool pool(callable $callback) + * @method static array pool(calla...
true
Other
laravel
framework
7ad5e59a7130143db98d6302a9427fd7dc033062.json
remove invalid test (#37112)
tests/View/ViewBladeCompilerTest.php
@@ -177,16 +177,6 @@ public function testDontIncludeEmptyPath() $compiler->compile(); } - public function testDontIncludeNullPath() - { - $compiler = new BladeCompiler($files = $this->getFiles(), __DIR__); - $files->shouldReceive('get')->once()->with(null)->andReturn('Hello World'); ...
false
Other
laravel
framework
724cd761e662971d6d36799934b3ac7c57cefb7d.json
Adjust JsonResource $wrap DocBlock (#37115)
src/Illuminate/Http/Resources/Json/JsonResource.php
@@ -42,7 +42,7 @@ class JsonResource implements ArrayAccess, JsonSerializable, Responsable, UrlRou /** * The "data" wrapper that should be applied. * - * @var string + * @var string|null */ public static $wrap = 'data';
false
Other
laravel
framework
597f5ab16d0d2df67e50fedfd2fa66789b29998c.json
remove invalid docblock (#37077)
src/Illuminate/Database/Eloquent/SoftDeletes.php
@@ -6,7 +6,6 @@ * @method static static|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder withTrashed(bool $withTrashed = true) * @method static static|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder onlyTrashed() * @method static static|\Illuminate\Database\Eloquen...
false
Other
laravel
framework
c35631b524a05d87702c1363bfbf5344550389c0.json
Add tests for `queueForget()` method
tests/Cookie/CookieTest.php
@@ -118,6 +118,22 @@ public function testHasQueuedWithPath(): void $this->assertFalse($cookieJar->hasQueued('foo', '/wrongPath')); } + public function testQueueForget() + { + $cookieJar = $this->getCreator(); + $this->assertCount(0, $cookieJar->getQueuedCookies()); + + $cookie...
false