-
-
Notifications
You must be signed in to change notification settings - Fork 214
PHP 8.5 support #1221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
PHP 8.5 support #1221
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,7 +47,8 @@ For details on how to use this package, check out our [documentation](.docs). | |
|
|
||
| | State | Version | Branch | Nette | PHP | | ||
| |--------|-----------|----------|--------|---------| | ||
| | dev | `^7.1.x` | `master` | `3.2+` | `>=8.2` | | ||
| | dev | `^7.2.x` | `master` | `3.2+` | `>=8.2` | | ||
| | stable | `^7.1.0` | `master` | `3.2+` | `>=8.2` | | ||
|
Comment on lines
+50
to
+51
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainPHP version requirement in README does not reflect PHP 8.5 support status. The Versions table shows PHP requirement as
Currently, the README and workflows are misaligned, which could mislead users about actual PHP 8.5 support availability. 🏁 Script executed: #!/bin/bash
# Check README.md content around lines 50-51 to verify PHP version requirement
echo "=== README.md lines 40-60 ==="
sed -n '40,60p' README.mdLength of output: 756 🏁 Script executed: #!/bin/bash
# Find and examine workflow files for PHP 8.5 references
echo "=== Searching for workflow files ==="
fd -e yml -e yaml --path '*workflow*' --path '*.github*'
echo ""
echo "=== Searching for PHP 8.5 references in workflows ==="
rg -n 'php.*8\.5|8\.5.*php' -g '*.yml' -g '*.yaml'Length of output: 325 🏁 Script executed: #!/bin/bash
# Check if there are any recent changes to workflows or PHP version configs
echo "=== Checking for PHP version configuration files ==="
fd -e json -e yml -e yaml -e toml | grep -E '(php|composer)' | head -20Length of output: 66 🏁 Script executed: #!/bin/bash
# Find workflow files correctly
echo "=== Workflow files in .github/workflows ==="
fd -type f -name '*.yml' -o -name '*.yaml' .github/workflows 2>/dev/null
echo ""
echo "=== Content of workflow files ==="
find .github/workflows -type f \( -name '*.yml' -o -name '*.yaml' \) -exec echo "File: {}" \; -exec cat {} \;Length of output: 3506 🏁 Script executed: #!/bin/bash
# Check composer.json for PHP version requirements
echo "=== composer.json content ==="
cat composer.jsonLength of output: 1965 🏁 Script executed: #!/bin/bash
# Broad search for any reference to 8.5 in the repository
echo "=== All references to '8.5' in repository ==="
rg '8\.5' -nLength of output: 266 Update README to document PHP 8.5 support status in workflows. Your review comment is correct: the workflows now test PHP 8.5 (in
Currently, users relying on the README won't know that PHP 8.5 compatibility is being actively maintained. 🤖 Prompt for AI Agents |
||
| | stable | `^7.0.0` | `master` | `3.2+` | `>=8.1` | | ||
| | stable | `^6.10.0` | `master` | `3.0+` | `>=7.2` | | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,7 +75,7 @@ | |
| }, | ||
| "extra": { | ||
| "branch-alias": { | ||
| "dev-master": "7.1.x-dev" | ||
| "dev-master": "7.2.x-dev" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainVerify nette/tester compatibility with PHP 8.5. The branch alias bump from 7.1.x-dev to 7.2.x-dev is appropriate for adding PHP 8.5 support. However, confirm that 🌐 Web query: 💡 Result: No. Tester 2.3.x (including 2.3.4) is documented as compatible with PHP 7.1–8.0, so it does not support PHP 8.5. [1][2] Sources:
Update nette/tester constraint to support PHP 8.5. The branch alias bump to 7.2.x-dev indicates PHP 8.5 support, but nette/tester 2.3.4 only supports PHP 7.1–8.0. The constraint 🤖 Prompt for AI Agents |
||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Dependency compatibility concern: LeanMapper does not support PHP 8.5.
According to the PR comments, LeanMapper—a project dependency—does not yet support PHP 8.5 (see LeanMapper issue #171). Updating the workflow to use PHP 8.5 will fail during dependency installation if composer cannot resolve the dependency tree.
Verify that either:
I'll verify this dependency compatibility concern by checking the project's composer configuration and the current status of LeanMapper's PHP 8.5 support.
🏁 Script executed:
Length of output: 230
🌐 Web query:
💡 Result:
Short answer: As of Nov 23, 2025 LeanMapper does not yet declare PHP 8.5 support — current releases require PHP up to 8.4. [1][2] PHP 8.5 reached GA on Nov 20, 2025, so LeanMapper would need an update to add official 8.5 compatibility. [3]
Sources:
Let me correct the shell script and examine the project's composer configuration and workflow context:
🏁 Script executed:
Length of output: 1962
Let me retrieve the complete workflow file content:
🏁 Script executed:
Length of output: 271
Revert workflow to PHP 8.4 or update LeanMapper constraint.
The critical issue is confirmed. LeanMapper does not yet declare PHP 8.5 support — current releases require PHP up to 8.4. The project's
composer.jsonspecifies"tharos/leanmapper": "^3.4.2 || ^4.0.0"in require-dev, which will fail to resolve when the workflow runs with PHP 8.5 because no matching LeanMapper version supports PHP 8.5.Update line 18 in
.github/workflows/codesniffer.ymlto use PHP 8.4 instead, or defer this change until LeanMapper releases PHP 8.5 support and the project updates its dependency constraint.🤖 Prompt for AI Agents