Skip to content

Commit a97d94b

Browse files
committed
Allow PDO in the linked plugin driver
Apply the existing driver-specific PDO exemption when PHPCS follows the plugin's database symlink. Full repository scans can encounter the driver through either path.
1 parent acae854 commit a97d94b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎phpcs.xml.dist‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262

6363
<rule ref="WordPress.DB.RestrictedClasses.mysql__PDO">
6464
<exclude-pattern>/packages/mysql-on-sqlite/src/sqlite/*\.php</exclude-pattern>
65+
<!-- The plugin links to the same driver source. -->
66+
<exclude-pattern>/packages/plugin-sqlite-database-integration/wp-includes/database/sqlite/*\.php</exclude-pattern>
6567
<exclude-pattern>/tests/*</exclude-pattern>
6668
</rule>
6769

0 commit comments

Comments
 (0)