Fix scalar overrides not applied without assertValid() by ruudk · Pull Request #1886 · webonyx/graphql-php

@ruudk

@ruudk ruudk mentioned this pull request

Mar 23, 2026

3 tasks

github-actions[bot]

@spawnia

Schema::getType() fell back to global built-in scalar singletons
without checking config->types for scalar overrides. The override
logic only ran inside getTypeMap(), triggered by assertValid().

Extract scalar override detection into a lazy cached
getScalarOverrides() method used by both getType() and getTypeMap().

#1886

🤖 Generated with Claude Code

@spawnia spawnia changed the title Scalar overrides only works when schema->assertValid is called Fix scalar overrides not applied without assertValid()

Mar 29, 2026

@spawnia spawnia marked this pull request as ready for review

March 29, 2026 14:45