File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77use Atk4 \Data \Type \LocalObjectType ;
88use Atk4 \Data \Type \MoneyType ;
99use Atk4 \Data \Type \Types ;
10- use Doctrine \DBAL \Platforms \SqlitePlatform ;
11- use Doctrine \DBAL \Schema \SqliteSchemaManager ;
10+ use Doctrine \DBAL \Platforms \SqlitePlatform ; // @phpstan-ignore class.nameCase
11+ use Doctrine \DBAL \Platforms \SQLitePlatform as SQLitePlatform4 ;
12+ use Doctrine \DBAL \Schema \SqliteSchemaManager ; // @phpstan-ignore class.nameCase
13+ use Doctrine \DBAL \Schema \SQLiteSchemaManager as SQLiteSchemaManager4 ;
1214use Doctrine \DBAL \Types as DbalTypes ;
1315
16+ // workaround https://github.com/phpstan/phpstan/issues/14036
17+ // remove once DBAL 3.x support is dropped
18+ try {
19+ new SQLitePlatform4 ();
20+ new SQLiteSchemaManager4 (); // @phpstan-ignore arguments.count
21+ } catch (\Error $ e ) {
22+ }
23+
1424// force SQLitePlatform and SQLiteSchemaManager classes load as in DBAL 3.x they are named with a different case
1525// remove once DBAL 3.x support is dropped
1626try {
17- new SqlitePlatform (); // @phpstan-ignore class.notFound
18- new SqliteSchemaManager (); // @phpstan-ignore class.notFound
27+ new SqlitePlatform (); // @phpstan-ignore class.nameCase
28+ new SqliteSchemaManager (); // @phpstan-ignore class.nameCase, arguments.count
1929} catch (\Error $ e ) {
2030}
2131
You can’t perform that action at this time.
0 commit comments