Skip to content
Closed
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
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
},
"require": {
"php": ">=8.0",
"ext-swoole": "*",
"ext-swoole": "6.*",
"utopia-php/framework": "0.33.*"
},
"require-dev": {
"phpunit/phpunit": "^9.3",
"swoole/ide-helper": "5.0.2",
"swoole/ide-helper": "6.0.2",
"laravel/pint": "1.2.*",
Comment on lines 16 to 23
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Align PHP engine constraint with Swoole 6 requirements

You’ve bumped ext-swoole to 6.* and ide-helper to 6.0.2 (good), but composer still allows PHP >=8.0. Swoole 6 requires PHP >=8.1 per PECL/Packagist. Tighten the PHP constraint to prevent unsatisfiable installs on PHP 8.0 environments. (pecl.php.net, packagist.org)

-        "php": ">=8.0",
+        "php": ">=8.1",
         "ext-swoole": "6.*",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"php": ">=8.0",
"ext-swoole": "*",
"ext-swoole": "6.*",
"utopia-php/framework": "0.33.*"
},
"require-dev": {
"phpunit/phpunit": "^9.3",
"swoole/ide-helper": "5.0.2",
"swoole/ide-helper": "6.0.2",
"laravel/pint": "1.2.*",
"php": ">=8.1",
"ext-swoole": "6.*",
"utopia-php/framework": "0.33.*"
},
"require-dev": {
"phpunit/phpunit": "^9.3",
"swoole/ide-helper": "6.0.2",
"laravel/pint": "1.2.*",
🤖 Prompt for AI Agents
In composer.json around lines 16 to 23, the PHP engine constraint is ">=8.0" but
ext-swoole is set to "6.*" which requires PHP >=8.1; update the "php"
requirement to ">=8.1" (or a more specific range that includes 8.1+) so Composer
won't allow installs on PHP 8.0 and avoids unsatisfiable dependency resolution.

"phpstan/phpstan": "^1.10"
},
Expand Down
Loading
Loading