Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP 8.2] OpenApi\\Analysis::getSchemaForSource(): Argument #1 ($fqdn) must be of type string, array given #1464

Closed
shakaran opened this issue Aug 4, 2023 · 2 comments

Comments

@shakaran
Copy link

shakaran commented Aug 4, 2023

PHP 8.2 with Symfony 6.3. I got this critical:

Uncaught PHP Exception TypeError: \"OpenApi\\Analysis::getSchemaForSource(): 
Argument #1 ($fqdn) must be of type string, array given, called in 
/var/www/html/vendor/zircote/swagger-php/src/Processors/AugmentSchemas.php on line 106\" 
at /var/www/html/vendor/zircote/swagger-php/src/Analysis.php line 326",

"context":{"exception":
{"class":"TypeError","message":"OpenApi\\Analysis::getSchemaForSource(): 
Argument #1 ($fqdn) must be of type string, array given, called in 
/var/www/html/vendor/zircote/swagger-php/src/Processors/AugmentSchemas.php on line 106",
"code":0,"file":"/var/www/html/vendor/zircote/swagger-php/src/Analysis.php:326"}},
"level":500,"level_name":"CRITICAL"
@DjordyKoert
Copy link
Contributor

NelmioApiDocBundle had the same issue. I managed to fix it by updating the api-platform/core dependency which was used. Maybe that could also be related to your problem? 😄

nelmio/NelmioApiDocBundle#2126

@DerManoMann
Copy link
Collaborator

Sounds like the root cause is unrelated to swagger-php.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants