Skip to content

Release 2.0.0: PHP ^8.2, portphp ^2.0, GitHub Actions#4

Merged
slashrsm merged 7 commits into
masterfrom
release/2.0.0
Jul 22, 2026
Merged

Release 2.0.0: PHP ^8.2, portphp ^2.0, GitHub Actions#4
slashrsm merged 7 commits into
masterfrom
release/2.0.0

Conversation

@slashrsm

Copy link
Copy Markdown
Contributor

Summary

Major modernization of the PDO adapter.

Breaking

  • php: ^8.2 (was >=5.4)
  • portphp/portphp: ^2.0

Other

  • GitHub Actions CI (PHP 8.2–8.5), Dependabot
  • Modern README; remove Travis/Scrutinizer
  • PHPUnit 9 updates
  • UPGRADE-2.0.md

Same-repo branch so Actions runs without fork approval.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR modernizes the Port PDO adapter for a 2.0.0 release by raising the minimum supported PHP version, updating dependencies to current major versions, and migrating CI/configuration from legacy services to GitHub Actions.

Changes:

  • Bump platform/runtime requirements to PHP ^8.2 and portphp/portphp ^2.0.
  • Migrate CI from Travis/Scrutinizer to GitHub Actions and add Dependabot configuration.
  • Update PHPUnit configuration/tests and refresh project documentation/metadata.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
UPGRADE-2.0.md Adds an upgrade note summarizing the breaking requirement changes and CI migration.
tests/PdoWriterTest.php Updates PHPUnit base class and setup signature for PHPUnit 9 compatibility.
tests/PdoReaderTest.php Updates PHPUnit base class and replaces deprecated assertion API with a modern equivalent.
README.md Refreshes badges/requirements/docs link and removes Travis/Scrutinizer references.
phpunit.xml.dist Updates PHPUnit configuration structure/strictness settings for PHPUnit 9.
composer.json Raises PHP and library constraints; updates dev dependencies to PHPUnit 9.6 and PDO SQLite extension.
.travis.yml Removes legacy Travis CI configuration.
.scrutinizer.yml Removes legacy Scrutinizer configuration.
.github/workflows/test.yml Adds GitHub Actions test workflow for PHP 8.2–8.5.
.github/dependabot.yml Adds Dependabot update configuration for Actions and Composer.
.gitattributes Removes export-ignore entries for deleted CI config files.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/PdoReaderTest.php
$i=1;
foreach ($this->getReader() as $row) {
$this->assertInternalType('array', $row);
$this->assertIsArray( $row);
Comment thread phpunit.xml.dist
<phpunit backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
Comment thread README.md
Comment on lines 34 to 38
Contributions are very welcome. Please see [CONTRIBUTING.md](CONTRIBUTING.md) for
details. Thanks to [everyone who has contributed](https://github.com/portphp/pdo/graphs/contributors)
already.

## Security

If you discover any security-related issues, please contact us at
[security@portphp.org](mailto:security@portphp.org).

## License
@slashrsm
slashrsm merged commit 573bc9d into master Jul 22, 2026
4 of 5 checks passed
@slashrsm
slashrsm deleted the release/2.0.0 branch July 22, 2026 12:27
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.

2 participants