Skip to content

Commit 3c0d065

Browse files
committed
fix conflicts
2 parents 4284e61 + f1778fb commit 3c0d065

File tree

7 files changed

+27
-20
lines changed

7 files changed

+27
-20
lines changed

src/Illuminate/Collections/Traits/EnumeratesValues.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public function value($key, $default = null)
342342
*
343343
* @template TEnsureOfType
344344
*
345-
* @param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>>|scalar|'array'|'null' $type
345+
* @param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>>|'string'|'int'|'float'|'bool'|'array'|'null' $type
346346
* @return static<TKey, TEnsureOfType>
347347
*
348348
* @throws \UnexpectedValueException

src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ public function whereNotMorphedTo($relation, $model, $boolean = 'and')
674674
$models->groupBy(fn ($model) => $model->getMorphClass())->each(function ($models) use ($query, $relation) {
675675
$query->orWhere(function ($query) use ($relation, $models) {
676676
$query->where($relation->qualifyColumn($relation->getMorphType()), '<=>', $models->first()->getMorphClass())
677-
->whereNotIn($relation->qualifyColumn($relation->getForeignKeyName()), $models->map->getKey());
677+
->whereIn($relation->qualifyColumn($relation->getForeignKeyName()), $models->map->getKey());
678678
});
679679
});
680680
}, null, null, $boolean);

src/Illuminate/Database/Seeder.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,15 @@ public function callSilent($class, array $parameters = [])
110110
*/
111111
public function callOnce($class, $silent = false, array $parameters = [])
112112
{
113-
if (in_array($class, static::$called)) {
114-
return;
115-
}
113+
$classes = Arr::wrap($class);
114+
115+
foreach ($classes as $class) {
116+
if (in_array($class, static::$called)) {
117+
continue;
118+
}
116119

117-
$this->call($class, $silent, $parameters);
120+
$this->call($class, $silent, $parameters);
121+
}
118122
}
119123

120124
/**

src/Illuminate/Redis/Connections/PacksPhpRedisValues.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,26 +95,26 @@ public function withoutSerializationOrCompression(callable $callback)
9595
$oldSerializer = null;
9696

9797
if ($this->serialized()) {
98-
$oldSerializer = $client->getOption($client::OPT_SERIALIZER);
99-
$client->setOption($client::OPT_SERIALIZER, $client::SERIALIZER_NONE);
98+
$oldSerializer = $client->getOption(Redis::OPT_SERIALIZER);
99+
$client->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_NONE);
100100
}
101101

102102
$oldCompressor = null;
103103

104104
if ($this->compressed()) {
105-
$oldCompressor = $client->getOption($client::OPT_COMPRESSION);
106-
$client->setOption($client::OPT_COMPRESSION, $client::COMPRESSION_NONE);
105+
$oldCompressor = $client->getOption(Redis::OPT_COMPRESSION);
106+
$client->setOption(Redis::OPT_COMPRESSION, Redis::COMPRESSION_NONE);
107107
}
108108

109109
try {
110110
return $callback();
111111
} finally {
112112
if ($oldSerializer !== null) {
113-
$client->setOption($client::OPT_SERIALIZER, $oldSerializer);
113+
$client->setOption(Redis::OPT_SERIALIZER, $oldSerializer);
114114
}
115115

116116
if ($oldCompressor !== null) {
117-
$client->setOption($client::OPT_COMPRESSION, $oldCompressor);
117+
$client->setOption(Redis::OPT_COMPRESSION, $oldCompressor);
118118
}
119119
}
120120
}

src/Illuminate/Validation/Validator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ protected function replacePlaceholderInString(string $value)
421421
/**
422422
* Replace each field parameter dot placeholder with dot.
423423
*
424-
* @param string $value
425-
* @return string
424+
* @param array $parameters
425+
* @return array
426426
*/
427427
protected function replaceDotPlaceholderInParameters(array $parameters)
428428
{

tests/Database/DatabaseEloquentBuilderTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,7 +1859,7 @@ public function testWhereNotMorphedTo()
18591859

18601860
$builder = $model->whereNotMorphedTo('morph', $relatedModel);
18611861

1862-
$this->assertSame('select * from "eloquent_builder_test_model_parent_stubs" where not (("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" not in (?)))', $builder->toSql());
1862+
$this->assertSame('select * from "eloquent_builder_test_model_parent_stubs" where not (("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" in (?)))', $builder->toSql());
18631863
$this->assertEquals([$relatedModel->getMorphClass(), $relatedModel->getKey()], $builder->getBindings());
18641864
}
18651865

@@ -1876,7 +1876,7 @@ public function testWhereNotMorphedToCollection()
18761876

18771877
$builder = $model->whereNotMorphedTo('morph', new Collection([$firstRelatedModel, $secondRelatedModel]));
18781878

1879-
$this->assertSame('select * from "eloquent_builder_test_model_parent_stubs" where not (("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" not in (?, ?)))', $builder->toSql());
1879+
$this->assertSame('select * from "eloquent_builder_test_model_parent_stubs" where not (("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" in (?, ?)))', $builder->toSql());
18801880
$this->assertEquals([$firstRelatedModel->getMorphClass(), $firstRelatedModel->getKey(), $secondRelatedModel->getKey()], $builder->getBindings());
18811881
}
18821882

@@ -1896,7 +1896,7 @@ public function testWhereNotMorphedToCollectionWithDifferentModels()
18961896

18971897
$builder = $model->whereNotMorphedTo('morph', [$firstRelatedModel, $secondRelatedModel, $thirdRelatedModel]);
18981898

1899-
$this->assertSame('select * from "eloquent_builder_test_model_parent_stubs" where not (("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" not in (?, ?)) or ("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" not in (?)))', $builder->toSql());
1899+
$this->assertSame('select * from "eloquent_builder_test_model_parent_stubs" where not (("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" in (?, ?)) or ("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" in (?)))', $builder->toSql());
19001900
$this->assertEquals([$firstRelatedModel->getMorphClass(), $firstRelatedModel->getKey(), $thirdRelatedModel->getKey(), $secondRelatedModel->getMorphClass(), $secondRelatedModel->id], $builder->getBindings());
19011901
}
19021902

@@ -1972,7 +1972,7 @@ public function testOrWhereNotMorphedTo()
19721972

19731973
$builder = $model->where('bar', 'baz')->orWhereNotMorphedTo('morph', $relatedModel);
19741974

1975-
$this->assertSame('select * from "eloquent_builder_test_model_parent_stubs" where "bar" = ? or not (("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" not in (?)))', $builder->toSql());
1975+
$this->assertSame('select * from "eloquent_builder_test_model_parent_stubs" where "bar" = ? or not (("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" in (?)))', $builder->toSql());
19761976
$this->assertEquals(['baz', $relatedModel->getMorphClass(), $relatedModel->getKey()], $builder->getBindings());
19771977
}
19781978

@@ -1989,7 +1989,7 @@ public function testOrWhereNotMorphedToCollection()
19891989

19901990
$builder = $model->where('bar', 'baz')->orWhereNotMorphedTo('morph', new Collection([$firstRelatedModel, $secondRelatedModel]));
19911991

1992-
$this->assertSame('select * from "eloquent_builder_test_model_parent_stubs" where "bar" = ? or not (("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" not in (?, ?)))', $builder->toSql());
1992+
$this->assertSame('select * from "eloquent_builder_test_model_parent_stubs" where "bar" = ? or not (("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" in (?, ?)))', $builder->toSql());
19931993
$this->assertEquals(['baz', $firstRelatedModel->getMorphClass(), $firstRelatedModel->getKey(), $secondRelatedModel->getKey()], $builder->getBindings());
19941994
}
19951995

@@ -2009,7 +2009,7 @@ public function testOrWhereNotMorphedToCollectionWithDifferentModels()
20092009

20102010
$builder = $model->where('bar', 'baz')->orWhereNotMorphedTo('morph', [$firstRelatedModel, $secondRelatedModel, $thirdRelatedModel]);
20112011

2012-
$this->assertSame('select * from "eloquent_builder_test_model_parent_stubs" where "bar" = ? or not (("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" not in (?, ?)) or ("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" not in (?)))', $builder->toSql());
2012+
$this->assertSame('select * from "eloquent_builder_test_model_parent_stubs" where "bar" = ? or not (("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" in (?, ?)) or ("eloquent_builder_test_model_parent_stubs"."morph_type" <=> ? and "eloquent_builder_test_model_parent_stubs"."morph_id" in (?)))', $builder->toSql());
20132013
$this->assertEquals(['baz', $firstRelatedModel->getMorphClass(), $firstRelatedModel->getKey(), $thirdRelatedModel->getKey(), $secondRelatedModel->getMorphClass(), $secondRelatedModel->id], $builder->getBindings());
20142014
}
20152015

tests/Validation/ValidationEmailRuleTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Illuminate\Validation\Rules\Email;
1212
use Illuminate\Validation\ValidationServiceProvider;
1313
use Illuminate\Validation\Validator;
14+
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
1415
use PHPUnit\Framework\Attributes\TestWith;
1516
use PHPUnit\Framework\TestCase;
1617

@@ -165,6 +166,7 @@ public function testRfcCompliantStrict()
165166
);
166167
}
167168

169+
#[RequiresPhpExtension('intl')]
168170
public function testValidateMxRecord()
169171
{
170172
$this->fails(
@@ -696,6 +698,7 @@ public function testEmailsThatFailBothNativeValidationAndRfcCompliantStrict($ema
696698
);
697699
}
698700

701+
#[RequiresPhpExtension('intl')]
699702
public function testCombiningRules()
700703
{
701704
$this->passes(

0 commit comments

Comments
 (0)