Skip to content

Commit 61d8f3b

Browse files
committed
use TrinaryLogic over bool
1 parent 507727d commit 61d8f3b

17 files changed

+19
-18
lines changed

src/Type/Accessory/AccessoryArrayListType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function unsetOffset(Type $offsetType): Type
172172
return new ErrorType();
173173
}
174174

175-
public function getKeysArrayFiltered(Type $filterValueType, bool $strict): Type
175+
public function getKeysArrayFiltered(Type $filterValueType, TrinaryLogic $strict): Type
176176
{
177177
return $this->getKeysArray();
178178
}

src/Type/Accessory/HasOffsetType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ public function looseCompare(Type $type, PhpVersion $phpVersion): BooleanType
343343
return new BooleanType();
344344
}
345345

346-
public function getKeysArrayFiltered(Type $filterValueType, bool $strict): Type
346+
public function getKeysArrayFiltered(Type $filterValueType, TrinaryLogic $strict): Type
347347
{
348348
return $this->getKeysArray();
349349
}

src/Type/Accessory/HasOffsetValueType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function unsetOffset(Type $offsetType): Type
195195
return $this;
196196
}
197197

198-
public function getKeysArrayFiltered(Type $filterValueType, bool $strict): Type
198+
public function getKeysArrayFiltered(Type $filterValueType, TrinaryLogic $strict): Type
199199
{
200200
return $this->getKeysArray();
201201
}

src/Type/Accessory/NonEmptyArrayType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function unsetOffset(Type $offsetType): Type
159159
return new ErrorType();
160160
}
161161

162-
public function getKeysArrayFiltered(Type $filterValueType, bool $strict): Type
162+
public function getKeysArrayFiltered(Type $filterValueType, TrinaryLogic $strict): Type
163163
{
164164
return $this->getKeysArray();
165165
}

src/Type/Accessory/OversizedArrayType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function unsetOffset(Type $offsetType): Type
154154
return new ErrorType();
155155
}
156156

157-
public function getKeysArrayFiltered(Type $filterValueType, bool $strict): Type
157+
public function getKeysArrayFiltered(Type $filterValueType, TrinaryLogic $strict): Type
158158
{
159159
return $this->getKeysArray();
160160
}

src/Type/ArrayType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function generalizeValues(): self
170170
return new self($this->keyType, $this->itemType->generalize(GeneralizePrecision::lessSpecific()));
171171
}
172172

173-
public function getKeysArrayFiltered(Type $filterValueType, bool $strict): Type
173+
public function getKeysArrayFiltered(Type $filterValueType, TrinaryLogic $strict): Type
174174
{
175175
return $this->getKeysArray();
176176
}

src/Type/Constant/ConstantArrayType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ public function generalizeValues(): self
12511251
return new self($this->keyTypes, $valueTypes, $this->nextAutoIndexes, $this->optionalKeys, $this->isList);
12521252
}
12531253

1254-
public function getKeysArrayFiltered(Type $filterValueType, bool $strict): Type
1254+
public function getKeysArrayFiltered(Type $filterValueType, TrinaryLogic $strict): Type
12551255
{
12561256
$keysArray = $this->getKeysOrValuesArray($this->keyTypes);
12571257

src/Type/IntersectionType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ public function unsetOffset(Type $offsetType): Type
799799
return $this->intersectTypes(static fn (Type $type): Type => $type->unsetOffset($offsetType));
800800
}
801801

802-
public function getKeysArrayFiltered(Type $filterValueType, bool $strict): Type
802+
public function getKeysArrayFiltered(Type $filterValueType, TrinaryLogic $strict): Type
803803
{
804804
return $this->intersectTypes(static fn (Type $type): Type => $type->getKeysArrayFiltered($filterValueType, $strict));
805805
}

src/Type/MixedType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public function unsetOffset(Type $offsetType): Type
179179
return $this;
180180
}
181181

182-
public function getKeysArrayFiltered(Type $filterValueType, bool $strict): Type
182+
public function getKeysArrayFiltered(Type $filterValueType, TrinaryLogic $strict): Type
183183
{
184184
return $this->getKeysArray();
185185
}

src/Type/NeverType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public function unsetOffset(Type $offsetType): Type
273273
return new NeverType();
274274
}
275275

276-
public function getKeysArrayFiltered(Type $filterValueType, bool $strict): Type
276+
public function getKeysArrayFiltered(Type $filterValueType, TrinaryLogic $strict): Type
277277
{
278278
return $this->getKeysArray();
279279
}

0 commit comments

Comments
 (0)