Skip to content

Incompatibility between graphqlite 8.2 and graphqlite-bundle #282

@charly-ffss

Description

@charly-ffss

🐛 Incompatibility between graphqlite 8.2 and graphqlite-bundle

Description

After running a standard Composer update, we encountered a runtime error due to an incompatibility between:

  • thecodingmachine/graphqlite 8.2.0
  • thecodingmachine/graphqlite-bundle

The application crashes during container compilation with the following error:

Attempted to call an undefined method named "getRequestAnnotation" 
of class "TheCodingMachine\GraphQLite\AnnotationReader".

Stack trace (excerpt)

GraphQLiteCompilerPass.php:340
Call to undefined method TheCodingMachine\GraphQLite\AnnotationReader::getRequestAnnotation()

Root cause

It seems that:

  • getRequestAnnotation() has been removed in graphqlite 8.2
  • but graphqlite-bundle still calls this method

This leads to a runtime incompatibility, even though Composer allows the installation.

Steps to reproduce

  1. Run:
    composer update -W
    
  2. Then:
    bin/console cache:clear
    

👉 Result: crash during container compilation

Expected behavior

  • Either:
    • graphqlite-bundle should be compatible with graphqlite 8.2
  • Or:
    • Composer constraints should prevent installing incompatible versions

Suggested fix

  • Update graphqlite-bundle to support graphqlite 8.2
  • OR tighten version constraints (e.g. <8.2)

Environment

  • Symfony: 7.4
  • PHP: 8.5
  • graphqlite: 8.2.0

Additional context

This mismatch is easy to hit during routine updates (composer update -W) and results in a hard runtime failure.


🙏 Thanks for your work on GraphQLite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions