Skip to content

Require PHP 8.4 - #21

Merged
ellisgl merged 1 commit into
mainfrom
php84
Nov 25, 2026
Merged

ellisgl merged 1 commit into
mainfrom
php84

Conversation

@ellisgl

@ellisgl ellisgl commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Summary

On PHP 8.3, PDO's own SQL scanner doesn't recognise PostgreSQL dollar-quoted strings. A ? or :name inside $$...$$ failed with "mixed named and positional parameters", so two PostgreSQL tests were skipped on 8.3. PHP 8.4's PDO handles dollar quotes, so this raises the minimum version.

  • composer.json now requires php >=8.4. The lock file's hash and recorded platform version are refreshed; no dependencies changed.
  • CI tests PHP 8.4 and 8.5.
  • The #[RequiresPhp('>= 8.4.0')] attributes are removed from GLPDO2PostgreSQLTest, so the dollar-quote tests always run.
  • In the README, the install section says PHP 8.4 is required, and the PHP 8.3 dollar-quote limit is removed from the PostgreSQL section. The one PDO limit left is nested comments. The Development section lists the databases CI tests against.
  • The CHANGELOG notes the new requirement under "Unreleased".

Breaking for PHP 8.3 users: Composer won't install this version for them. Consider releasing it as a new minor version, or as 5.0.0 if a PHP bump counts as breaking.

Testing

  • The tests that need no database, PHPStan level 8 and PSR-12 pass locally. composer validate passes.
  • The two formerly skipped dollar-quote tests already passed on PHP 8.4 and 8.5 in CI for Add SQLite 3 support #20.

🤖 Generated with Claude Code

PHP 8.4's PDO understands PostgreSQL dollar-quoted strings, so a "?" or
":name" inside one no longer fails, and the two tests that skipped on
PHP 8.3 now always run.

- composer.json requires php >=8.4 (lock file hash refreshed).
- CI tests PHP 8.4 and 8.5.
- Drop the RequiresPhp attributes from GLPDO2PostgreSQLTest.
- README and CHANGELOG updated; the PHP 8.3 dollar-quote limit is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ellisgl
ellisgl merged commit b707b96 into main Nov 25, 2026
4 checks passed
@ellisgl
ellisgl deleted the php84 branch November 25, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant