Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Error when creating database #2

Closed
stephanvierkant opened this issue Nov 22, 2021 · 3 comments
Closed

Error when creating database #2

stephanvierkant opened this issue Nov 22, 2021 · 3 comments

Comments

@stephanvierkant
Copy link

Thanks for creating and sharing this repo!

I'm trying this on Symfony 5.4 with PHP 8.1. While the application seems to work, I've got problems in my test suite. This is what I get:


In MySQLPlatform.php line 1177:
                                                                                                           
  str_replace(): Argument #3 ($subject) must be of type array|string, App\Model\Enum\DocumentStatus given  
                                                                                                          

It's the \Doctrine\DBAL\Platforms\MySQLPlatform::quoteStringLiteral method.

Any idea how we can fix this?

@bpolaszek
Copy link
Owner

Hi @stephanvierkant, thanks for reaching out!

After a few tests, I didn't manage to reproduce your issue, and I have no clue where this could come from.
It looks like your doctrine/dbal version is 3.1+, although this bundle was tested with ~2.13.
But I just ran a sample app test suite with the 3.1.4 version and it passed seamlessly. I'll update the CI here.

Would you mind providing me a minimalist repo where I could reproduce your issue?

Thanks,
Ben

@stephanvierkant
Copy link
Author

Thanks! I'll try to create a test case.

@stephanvierkant
Copy link
Author

Looks like a caching problem, sorry! rm var/cache/* -rf fixed my problem.

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

No branches or pull requests

2 participants