Skip to content

Remove obsolete PDO.patch for phpstorm-stubs#6073

Open
vrana wants to merge 1 commit into
phpstan:2.2.xfrom
vrana:patch-pdo
Open

Remove obsolete PDO.patch for phpstorm-stubs#6073
vrana wants to merge 1 commit into
phpstan:2.2.xfrom
vrana:patch-pdo

Conversation

@vrana

@vrana vrana commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

The patch replaced the PDO::FETCH_DEFAULT default value of PDO::pgsqlGetNotify() with a literal because resolving the constant used to fail with "Reflection error: Could not locate constant PDO::FETCH_DEFAULT" (phpstan/phpstan#6255). The constant now resolves fine - php-8-stubs declare both the PDO class constants and pgsqlGetNotify() itself. Verified with the original reproducer (testBug6255) on phpVersion 7.4, 8.1, and 8.5.

The patch replaced the PDO::FETCH_DEFAULT default value of
PDO::pgsqlGetNotify() with a literal because resolving the constant
used to fail with "Reflection error: Could not locate constant
PDO::FETCH_DEFAULT" (phpstan/phpstan#6255). The constant now resolves
fine - php-8-stubs declare both the PDO class constants and
pgsqlGetNotify() itself. Verified with the original reproducer
(testBug6255) on phpVersion 7.4, 8.1, and 8.5.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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