Fix scalar overrides not applied without assertValid() by ruudk · Pull Request #1886 · webonyx/graphql-php
ruudk
mentioned this pull request
3 tasks
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
changed the title
Scalar overrides only works when
Fix scalar overrides not applied without assertValid()schema->assertValid is called
spawnia
marked this pull request as ready for review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters