Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
- [Installing Statamic](#installing-statamic)
- [Checking Statamic versions](#checking-statamic-versions)
- [Updating Statamic](#updating-statamic)
- [Troubleshooting](#troubleshooting)
- [Composer version conflicts](#composer-version-conflicts)

## Installing the CLI tool

Expand Down Expand Up @@ -119,3 +121,14 @@ statamic update
```

This is just syntactic sugar for the `composer update statamic/cms --with-dependencies` command.

## Troubleshooting

### Composer version conflicts

If you installed the CLI tool [directly](#installing-directly), it shares Composer's global dependencies with every
other globally required package. When those packages need different versions of the same dependency, Composer may fail
to install or update the CLI tool.

The easiest fix is to remove the global install (`composer global remove statamic/cli`) and
[use cpx](#installing-the-cli-tool) instead, which runs the CLI tool in isolation.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"keywords": ["statamic"],
"license": "MIT",
"require": {
"php": "^8.1",
"composer-runtime-api": "^2.0",
"php": "^8.2",
"composer-runtime-api": "^2.2",
"guzzlehttp/guzzle": "^6.5.5|^7.0.1",
"illuminate/collections": "^10.0|^11.0|^12.0|^13.0",
"laravel/prompts": "^0.1.3|^0.2.0|^0.3.0",
"symfony/console": "^4.0|^5.0|^6.0|^7.0",
"symfony/process": "^4.2|^5.0|^6.0|^7.0"
"laravel/prompts": "^0.3.19",
"symfony/console": "^6.2|^7.0",
"symfony/process": "^6.0|^7.0"
},
"require-dev": {
"phpunit/phpunit": "^8.0"
Expand Down
2 changes: 0 additions & 2 deletions src/Concerns/RunsCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Statamic\Cli\Concerns;

use Laravel\Prompts\Support\Logger;
use Laravel\Prompts\Task;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Process\Process;

Expand Down Expand Up @@ -100,7 +99,6 @@ private function shouldRunAsTask(): bool
{
return $this->output->getVerbosity() === OutputInterface::VERBOSITY_NORMAL
&& $this->output->isDecorated()
&& property_exists(Task::class, 'keepSummary')
&& function_exists('pcntl_fork');
}

Expand Down
Loading