Open chrisforrence opened 6 years ago
should it be updated to ^5.4.5?
Yes that would be great! (and thanks for digging into all that ^^)
I'm facing the same issue, with php v7.2.13 and composer v1.9.1
This is my first try with couscous
PHP Fatal error: Uncaught Error: Call to undefined function DI\object() in /Users/xxxxx/.composer/vendor/couscous/couscous/src/Module/Markdown/config.php:5
Stack trace:
#0 /Users/xxxxx/.composer/vendor/php-di/php-di/src/Definition/Source/DefinitionFile.php(59): require()
#1 /Users/xxxxx/.composer/vendor/php-di/php-di/src/Definition/Source/DefinitionFile.php(38): DI\Definition\Source\DefinitionFile->initialize()
#2 /Users/xxxxx/.composer/vendor/php-di/php-di/src/Definition/Source/SourceChain.php(53): DI\Definition\Source\DefinitionFile->getDefinition('Symfony\\Compone...')
#3 /Users/xxxxx/.composer/vendor/php-di/php-di/src/Container.php(164): DI\Definition\Source\SourceChain->getDefinition('Symfony\\Compone...')
#4 /Users/xxxxx/.composer/vendor/couscous/couscous/bin/couscous(37): DI\Container->make('Symfony\\Compone...', Array)
#5 {main}
thrown in /Users/xxxxx/.composer/vendor/couscous/couscous/src/Module/Markdown/config.php on line 5
Fatal error: Uncaught Error: Call to undefined function DI\object() in /Users/xxxxx/.composer/vendor/couscous/couscous/src/Module/Markdown/config.php:5
Stack trace:
#0 /Users/xxxxx/.composer/vendor/php-di/php-di/src/Definition/Source/DefinitionFile.php(59): require()
#1 /Users/xxxxx/.composer/vendor/php-di/php-di/src/Definition/Source/DefinitionFile.php(38): DI\Definition\Source\DefinitionFile->initialize()
#2 /Users/xxxxx/.composer/vendor/php-di/php-di/src/Definition/Source/SourceChain.php(53): DI\Definition\Source\DefinitionFile->getDefinition('Symfony\\Compone...')
#3 /Users/xxxxx/.composer/vendor/php-di/php-di/src/Container.php(164): DI\Definition\Source\SourceChain->getDefinition('Symfony\\Compone...')
#4 /Users/xxxxx/.composer/vendor/couscous/couscous/bin/couscous(37): DI\Container->make('Symfony\\Compone...', Array)
#5 {main}
thrown in /Users/xxxxx/.composer/vendor/couscous/couscous/src/Module/Markdown/config.php on line 5
Going off of the Getting Started page, I started by installing couscous/couscous globally, which pulled in 1.6.1 (released March 2017).
However, when I went to run
couscous preview
, I got the following fatal error:It looks like PHP-DI 5.4.4 was a broken release, so running
composer global update
did allow thecouscous preview
command to at least run.Should the composer.json file version requirement be updated to 5.2.*, or should it be updated to ^5.4.5?