4

So I am a beginner working on a project with symfony 5.2 project with php 8, and I have been trying to run this command

symfony console doctrine:fixtures:load

And this is the error I get :

In Lorem.php line 95: join(): Argument #2 ($array) must be of type ?array, string given

Abdel Outaleb
  • 61
  • 1
  • 2

1 Answers1

16

Check the line 95 of Lorem.php, you will find:

return join($words, ' ') . '.';

change to:

return join(' ', $words) . '.';
Dharman
  • 30,962
  • 25
  • 85
  • 135
bas_baskara
  • 196
  • 2
  • 4