Skip to content
Closed
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
2 changes: 1 addition & 1 deletion web/themes/custom/drevops/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "drupal-theme",
"license": "proprietary",
"require": {
"php": ">=8.3"
"php": ">=8.5.3"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

# Find all composer.json files and their PHP version constraints
echo "=== All composer.json files in repo ==="
find . -name "composer.json" -type f | grep -v node_modules | head -20

echo -e "\n=== PHP version constraints in all composer.json files ==="
find . -name "composer.json" -type f | grep -v node_modules | xargs grep -H "\"php\"" 2>/dev/null | head -30

echo -e "\n=== Root composer.json PHP constraint ==="
if [ -f composer.json ]; then
  grep -A2 -B2 '"php"' composer.json
fi

echo -e "\n=== CI/Workflow files checking for PHP versions ==="
find .github -type f \( -name "*.yml" -o -name "*.yaml" \) 2>/dev/null | while read f; do
  if grep -q -i "php" "$f"; then
    echo "File: $f"
    grep -n -i "php" "$f" | head -5
  fi
done

echo -e "\n=== Docker configurations ==="
find . -maxdepth 3 -type f \( -name "Dockerfile*" -o -name "docker-compose*.yml" -o -name "docker-compose*.yaml" \) 2>/dev/null | while read f; do
  echo "File: $f"
  grep -i -n "php\|FROM" "$f" | head -10
done

Repository: drevops/website

Length of output: 1989


Resolve PHP version constraint conflict with root composer.json.

The custom theme requires PHP >=8.5.3, but the root composer.json specifies PHP >=8.3 with platform constraint pinned to 8.3.28. This creates a Composer constraint violation that will prevent the theme from being installed. Either lower the theme's PHP requirement to >=8.3 or update the root composer.json and platform configuration to >=8.5.3.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@web/themes/custom/drevops/composer.json` at line 7, The theme's composer.json
currently requires "php": ">=8.5.3", which conflicts with the root platform
pinned to 8.3.28; either lower the requirement in the theme's composer.json to
"php": ">=8.3" (replace the "php": ">=8.5.3" entry) or update the root
composer.json/platform config to >=8.5.3 so both composer.json files agree on
the PHP platform version.

},
"extra": {
"civictheme": {
Expand Down