Skip to content

Commit

Permalink
Attempt to fix an issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 2, 2021
1 parent e032df9 commit ae50bb4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Type/ObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,17 @@ public function describe(VerbosityLevel $level): string
$preciseNameCallback,
$preciseNameCallback,
$preciseWithSubtracted,
static function () use ($preciseWithSubtracted): string {
return $preciseWithSubtracted() . '-' . static::class;
function () use ($preciseWithSubtracted): string {
return $preciseWithSubtracted() . '-' . static::class . '-' . $this->describeAdditionalCacheKey();
}
);
}

protected function describeAdditionalCacheKey(): string
{
return '';
}

private function describeCache(): string
{
if (static::class !== self::class) {
Expand Down

0 comments on commit ae50bb4

Please sign in to comment.