ddev / ddev-drupal-contrib

DDEV integration for developing Drupal contrib projects
Apache License 2.0
62 stars 11 forks source link

PHP warnings when running `ddev poser` #21

Closed mbomb007 closed 3 months ago

mbomb007 commented 5 months ago

I configured DDEV to use PHP 8.2, and I'm getting these warnings when running ddev poser.

$ ddev poser
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5182  100  5182    0     0  21325      0 --:--:-- --:--:-- --:--:-- 21325
PHP Warning:  file_get_contents(composer.json): Failed to open stream: No such file or directory in /var/www/html/expand_composer_json.php on line 16

Warning: file_get_contents(composer.json): Failed to open stream: No such file or directory in /var/www/html/expand_composer_json.php on line 16
PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/html/expand_composer_json.php on line 148

Warning: foreach() argument must be of type array|object, null given in /var/www/html/expand_composer_json.php on line 148
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 152 installs, 0 updates, 0 removals
...

... (everything continues and runs)

weitzman commented 5 months ago

Are you offline?

markdorison commented 4 months ago

I am able to reproduce this issue when configuring DDEV to use PHP 8.2. It is working as expected when I use PHP 8.1.

mbomb007 commented 4 months ago

Are you offline?

No, I was not offline.

mbomb007 commented 3 months ago

I don't have these warnings anymore.