Skip to content

Fatal Error #158

@christopherpinnock

Description

@christopherpinnock

I'm new to mozart. When I type composer require --dev coenjacobs/mozart at the command line I get this response, and I don't know if I should worry, because the namespace prefixes have been appropriately added:

Failed loading E:/wamp64/bin/php/php8.4.0/zend_ext/php_xdebug-3.4.0beta1-8.4-x86_64.dll
./composer.json has been updated
Running composer update coenjacobs/mozart
Loading composer repositories with package information
Updating dependencies
Lock file operations: 14 installs, 0 updates, 0 removals
  - Locking coenjacobs/mozart (0.7.1)
  - Locking league/flysystem (1.1.10)
  - Locking league/mime-type-detection (1.16.0)
  - Locking psr/container (2.0.2)
  - Locking symfony/console (v5.4.47)
  - Locking symfony/deprecation-contracts (v3.5.1)
  - Locking symfony/finder (v5.4.45)
  - Locking symfony/polyfill-ctype (v1.31.0)
  - Locking symfony/polyfill-intl-grapheme (v1.31.0)
  - Locking symfony/polyfill-intl-normalizer (v1.31.0)
  - Locking symfony/polyfill-php73 (v1.31.0)
  - Locking symfony/polyfill-php80 (v1.31.0)
  - Locking symfony/service-contracts (v3.5.1)
  - Locking symfony/string (v6.4.15)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 14 installs, 0 updates, 0 removals
    0 [>---------------------------]    0 [->--------------------------]
  - Installing symfony/polyfill-php80 (v1.31.0): Extracting archive
  - Installing symfony/deprecation-contracts (v3.5.1): Extracting archive
  - Installing symfony/finder (v5.4.45): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.31.0): Extracting archive
  - Installing symfony/polyfill-intl-grapheme (v1.31.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.31.0): Extracting archive
  - Installing symfony/string (v6.4.15): Extracting archive
  - Installing psr/container (2.0.2): Extracting archive
  - Installing symfony/service-contracts (v3.5.1): Extracting archive
  - Installing symfony/polyfill-php73 (v1.31.0): Extracting archive
  - Installing symfony/console (v5.4.47): Extracting archive
  - Installing league/mime-type-detection (1.16.0): Extracting archive
  - Installing league/flysystem (1.1.10): Extracting archive
  - Installing coenjacobs/mozart (0.7.1): Extracting archive
 0/4 [>---------------------------]   0%
 3/4 [=====================>------]  75%
 4/4 [============================] 100%
16 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
14 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> "vendor/bin/mozart" compose
Failed loading E:/wamp64/bin/php/php8.4.0/zend_ext/php_xdebug-3.4.0beta1-8.4-x86_64.dll

Deprecated: League\Flysystem\Filesystem::get(): Implicitly marking parameter $handler as nullable is deprecated, the explicit nullable type must be used instead in C:\sites\vhost-wp\wp-content
\plugins\describr\assets\libs\vendor\league\flysystem\src\Filesystem.php on line 363

Deprecated: League\Flysystem\FilesystemInterface::get(): Implicitly marking parameter $handler as nullable is deprecated, the explicit nullable type must be used instead in C:\sites\vhost-wp\w
p-content\plugins\describr\assets\libs\vendor\league\flysystem\src\FilesystemInterface.php on line 274

Warning: Undefined property: stdClass::$classmap_directory in C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\coenjacobs\mozart\src\Mover.php on line 53

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\league\flysystem\src\U
til.php on line 106

Warning: Undefined property: stdClass::$classmap_directory in C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\coenjacobs\mozart\src\Mover.php on line 100

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\league\flysystem\src\U
til.php on line 106

Warning: Undefined property: stdClass::$classmap_directory in C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\coenjacobs\mozart\src\Console\Commands\Compose.php on line 91

Fatal error: Uncaught TypeError: CoenJacobs\Mozart\Replacer::replaceParentClassesInDirectory(): Argument #1 ($directory) must be of type string, null given, called in C:\sites\vhost-wp\wp-cont
ent\plugins\describr\assets\libs\vendor\coenjacobs\mozart\src\Console\Commands\Compose.php on line 91 and defined in C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\coenjacobs
\mozart\src\Replacer.php:121
Stack trace:
#0 C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\coenjacobs\mozart\src\Console\Commands\Compose.php(91): CoenJacobs\Mozart\Replacer->replaceParentClassesInDirectory(NULL)
#1 C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\symfony\console\Command\Command.php(298): CoenJacobs\Mozart\Console\Commands\Compose->execute(Object(Symfony\Component\Conso
le\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\symfony\console\Application.php(1040): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input
\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\symfony\console\Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(CoenJacobs\Mozart\Console\C
ommands\Compose), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\symfony\console\Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\Ar
gvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\coenjacobs\mozart\bin\mozart(28): Symfony\Component\Console\Application->run()
#6 C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\coenjacobs\mozart\bin\mozart(29): {closure:C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\coenjacobs\mozar
t\bin\mozart:3}('0.7.1')
#7 C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\bin\mozart(119): include('C:\\sites\\vhost-...')
#8 {main}
  thrown in C:\sites\vhost-wp\wp-content\plugins\describr\assets\libs\vendor\coenjacobs\mozart\src\Replacer.php on line 121
Script "vendor/bin/mozart" compose handling the post-update-cmd event returned with error code 255

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions