Skip to content

Conversation

@yoeunes
Copy link
Contributor

@yoeunes yoeunes commented Nov 23, 2025

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

When running debug:config with a path that traverses deep into a scalar value (e.g. debug:config framework secret.foo), the command crashes instead of reporting that the path does not exist.

before:

$ php bin/console debug:config framework secret.foo                                                                                                                                                                   14:43:06

In ConfigDebugCommand.php line 164:
                                                                                
  array_key_exists(): Argument #2 ($array) must be of type array, string given  
                                                                                

debug:config [--resolve-env] [--format FORMAT] [--] [<name> [<path>]]

after:

$ php bin/console debug:config framework secret.foo                                                                                                                                                                  

                                                                                                                        
 [ERROR] Unable to find configuration for "framework.secret.foo".                                                       
                                                                                                                        

@yoeunes yoeunes force-pushed the fix-framework-bundle-config-debug-scalar-type-error branch from 0edd6c3 to eea226a Compare November 23, 2025 13:56
@nicolas-grekas
Copy link
Member

Thank you @yoeunes.

@nicolas-grekas nicolas-grekas merged commit d37fc23 into symfony:6.4 Nov 24, 2025
10 of 11 checks passed
@fabpot fabpot mentioned this pull request Nov 27, 2025
This was referenced Dec 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants