Skip to content

Commit 2505aab

Browse files
committed
Rename
1 parent 0b93d69 commit 2505aab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SpatieLaravelData/Rules/ValidTypeRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ private function checkType(array $call, string $key, string $actualType, array $
105105
->map(fn (string $type) => explode('&', $type))
106106
->all();
107107

108-
foreach ($actualTypeParts as $actualTypePart) {
108+
foreach ($actualTypeParts as $actualIntersectionType) {
109109
foreach ($expectedTypes as $typeList) {
110110
if (empty($typeList)) {
111111
return null;
112112
}
113113

114114
$validType = collect($typeList)
115-
->reduce(fn (bool $result, string $expectedType) => $result && $this->isTypesMatching($actualTypePart, $expectedType), true);
115+
->reduce(fn (bool $result, string $expectedType) => $result && $this->isTypesMatching($actualIntersectionType, $expectedType), true);
116116

117117
if ($validType) {
118118
return null;

0 commit comments

Comments
 (0)