Skip to content

Provide Driver defaults#145

Merged
tyrsson merged 3 commits into
php-db:0.6.xfrom
tyrsson:provide-driver-defaults
Apr 13, 2026
Merged

Provide Driver defaults#145
tyrsson merged 3 commits into
php-db:0.6.xfrom
tyrsson:provide-driver-defaults

Conversation

@tyrsson

@tyrsson tyrsson commented Apr 1, 2026

Copy link
Copy Markdown
Member

Signed-off-by: Joey Smith jsmith@webinertia.net

Q A
Documentation no
Bugfix yes
BC Break yes
New Feature no
RFC no
QA yes
House Keeping no

Description

Provide driver defaults and move PDO contructors for ABstractPdo and AbstractPdoConnection to the concrete classes in the driver packages.

Signed-off-by: Joey Smith <jsmith@webinertia.net>
@tyrsson tyrsson self-assigned this Apr 1, 2026
@tyrsson tyrsson added bug Something isn't working enhancement New feature or request labels Apr 1, 2026
@tyrsson tyrsson added this to @phpdb Apr 1, 2026
@github-project-automation github-project-automation Bot moved this to Todo in @phpdb Apr 1, 2026
@tyrsson tyrsson added this to the 0.6.0 milestone Apr 1, 2026
Signed-off-by: Joey Smith <jsmith@webinertia.net>
@tyrsson tyrsson requested a review from simon-mundy April 3, 2026 18:18
simon-mundy
simon-mundy previously approved these changes Apr 3, 2026

@simon-mundy simon-mundy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

All good, just with the note re: cleanup. I think we should squish all the 'todo' wherever possible

Comment thread test/unit/Adapter/Driver/Pdo/TestAsset/TestPdo.php Outdated
…es will need to be made downstream in the driver packages.

Signed-off-by: Joey Smith <jsmith@webinertia.net>
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in @phpdb Apr 13, 2026
@tyrsson tyrsson merged commit 81844a5 into php-db:0.6.x Apr 13, 2026
13 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in @phpdb Apr 13, 2026
@tyrsson tyrsson deleted the provide-driver-defaults branch April 13, 2026 01:24
simon-mundy added a commit to simon-mundy/phpdb that referenced this pull request Jun 30, 2026
Resolve conflicts and reconcile with upstream API changes (PR php-db#144 phpstan-type
Profiler, PR php-db#145 provide-driver-defaults):

- Profiler.php: take upstream's phpstan-typed version (supersedes PR's dead-code pass)
- AdapterInterfaceDelegatorTest: union of both test sets; keep PR's #[Group]/
  #[CoversMethod] plus upstream's testDelegatorWithPluginManager
- ConnectionTest: keep upstream's testResource and the PR's real
  testConstructorWithPdoResourceSetsConnected (drop skipped placeholder)
- Remove getDatabasePlatformName from test assets (API method removed upstream)
- Rewrite TestPdoWithFeatures constructor to set properties directly
  (AbstractPdo constructor removed upstream)
- Drop obsolete testCloneWithNullParameterContainerDoesNotClone
  (Statement parameter container is now non-nullable)
- Remove invalid #[CoversMethod(...'__construct')] attributes in ConnectionTest
  and PdoTest that were marking tests risky and discarding coverage

Suite: 1444 tests pass, PHPStan clean, PHPCS clean, 99.94% line coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants