diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 9f8386a0..73edc2b3 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -30,7 +30,7 @@ jobs: persist-credentials: false - name: Run zizmor - uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2 + uses: zizmorcore/zizmor-action@70fb788f84895a7701f5643d103d587e460b5c99 # v0.6.3 with: persona: auditor advanced-security: false diff --git a/src/ParseResult/ObjectFactory.php b/src/ParseResult/ObjectFactory.php index 48e8bda4..1dc23f6e 100644 --- a/src/ParseResult/ObjectFactory.php +++ b/src/ParseResult/ObjectFactory.php @@ -158,25 +158,23 @@ class_exists($name) */ private function getTypeMap(): array { - if ($this->typeMap === null) { - $this->typeMap = [ - 'string' => new StringValue(), - 'int' => new IntegerValue(), - 'float' => new FloatValue(), - 'true' => new TrueValue(), - 'bool' => new BooleanValue(), - DateTimeImmutable::class => new DateValue(), - ChatBoostSource::class => new ChatBoostSourceValue(), - RichBlock::class => new RichBlockValue(), - BackgroundFill::class => new BackgroundFillValue(), - BackgroundType::class => new BackgroundTypeValue(), - ChatMember::class => new ChatMemberValue(), - MessageOrigin::class => new MessageOriginValue(), - ReactionType::class => new ReactionTypeValue(), - RevenueWithdrawalState::class => new RevenueWithdrawalStateValue(), - TransactionPartner::class => new TransactionPartnerValue(), - ]; - } + $this->typeMap ??= [ + 'string' => new StringValue(), + 'int' => new IntegerValue(), + 'float' => new FloatValue(), + 'true' => new TrueValue(), + 'bool' => new BooleanValue(), + DateTimeImmutable::class => new DateValue(), + ChatBoostSource::class => new ChatBoostSourceValue(), + RichBlock::class => new RichBlockValue(), + BackgroundFill::class => new BackgroundFillValue(), + BackgroundType::class => new BackgroundTypeValue(), + ChatMember::class => new ChatMemberValue(), + MessageOrigin::class => new MessageOriginValue(), + ReactionType::class => new ReactionTypeValue(), + RevenueWithdrawalState::class => new RevenueWithdrawalStateValue(), + TransactionPartner::class => new TransactionPartnerValue(), + ]; return $this->typeMap; } }