Skip to content

Conversation

@franzwilding
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
Docs? no
License MIT

The vertex ai factory create´method get called with one wrong "null" parameter. This removes the eventDispatcher, because it would be the 5th argument. Since method signature still is valid with null as 4th parameter, my AiBundleTest::testExtensionLoadDoesNotThrow` test did not catch it.

@carsonbot carsonbot added Status: Needs Review AI Bundle Issues & PRs about the AI integration bundle Bug Something isn't working labels Nov 24, 2025
@OskarStark
Copy link
Contributor

Can you please add a test to avoid regressions in the future?

@OskarStark OskarStark changed the title [AI Bundle] VertexAI factory get called with wrong arguments [AI Bundle][VertexAI] factory get called with wrong arguments Nov 24, 2025
@franzwilding
Copy link
Contributor Author

@OskarStark I already implemented the test some time ago, but the problem here is, that the platform is able to be created. Anyway. I added another check to see if the number of arguments of the factory method is gte the number of arguments. It is not very robust or elegant, but it catches at least some of the signature-mismatching problems.

@OskarStark
Copy link
Contributor

Good catch, thanks Franz.

@OskarStark OskarStark merged commit 07701c5 into symfony:main Nov 24, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Bundle Issues & PRs about the AI integration bundle Bug Something isn't working Status: Reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants