Skip to content

Commit

Permalink
Merge branch refs/heads/1.12.x into 2.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
phpstan-bot committed Sep 14, 2024
2 parents 64ff598 + 2507e38 commit 7a5da50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Type/Constant/ConstantArrayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public function acceptsWithReason(Type $type, bool $strictTypes): AcceptsResult
$acceptsValue = $valueType->acceptsWithReason($otherValueType, $strictTypes)->decorateReasons(
static fn (string $reason) => sprintf(
'Offset %s (%s) does not accept type %s: %s',
$keyType->describe(VerbosityLevel::value()),
$keyType->describe(VerbosityLevel::precise()),
$valueType->describe($verbosity),
$otherValueType->describe($verbosity),
$reason,
Expand All @@ -337,7 +337,7 @@ public function acceptsWithReason(Type $type, bool $strictTypes): AcceptsResult
$acceptsValue = new AcceptsResult($acceptsValue->result, [
sprintf(
'Offset %s (%s) does not accept type %s.',
$keyType->describe(VerbosityLevel::value()),
$keyType->describe(VerbosityLevel::precise()),
$valueType->describe($verbosity),
$otherValueType->describe($verbosity),
),
Expand Down

0 comments on commit 7a5da50

Please sign in to comment.