diff --git a/PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml b/PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml index 2347520..083de97 100644 --- a/PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml +++ b/PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml @@ -25,7 +25,12 @@ Detection for the Deprecated attribute is incomplete in PHPCompatibility 10.0.0-alpha1. Handling for this should be added once the detection implementation is known. --> - + + + + + + @@ -43,6 +48,10 @@ /polyfill-php84/Resources/stubs/ReflectionConstant\.php$ + + /polyfill-php84/Resources/stubs/Pdo/(Dblib|Firebird|Mysql|Odbc|Pgsql|Sqlite)\.php$ + + /polyfill-php84/Resources/stubs/Deprecated\.php$ diff --git a/Test/SymfonyPolyfillPHP84Test.php b/Test/SymfonyPolyfillPHP84Test.php index 93f8d28..918713e 100644 --- a/Test/SymfonyPolyfillPHP84Test.php +++ b/Test/SymfonyPolyfillPHP84Test.php @@ -30,3 +30,11 @@ #[Deprecated] function foo() {} */ + +$db = new Pdo\Dblib; +$db = new \Pdo\Firebird; +function doSomething( + Pdo\Mysql $db +) : Pdo\Odbc {} +$db = new Pdo\Pgsql; +$db = new \Pdo\Sqlite;