Use ::class syntax instead of plain strings

parent 5c5966aa
...@@ -876,6 +876,6 @@ class DB2Platform extends AbstractPlatform ...@@ -876,6 +876,6 @@ class DB2Platform extends AbstractPlatform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\DB2Keywords'; return Keywords\DB2Keywords::class;
} }
} }
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
namespace Doctrine\DBAL\Platforms; namespace Doctrine\DBAL\Platforms;
use Doctrine\DBAL\Schema\Identifier; use Doctrine\DBAL\Schema\Identifier;
use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\DBAL\Schema\Index; use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\DBAL\Types\BinaryType; use Doctrine\DBAL\Types\BinaryType;
/** /**
...@@ -314,7 +314,7 @@ class DrizzlePlatform extends AbstractPlatform ...@@ -314,7 +314,7 @@ class DrizzlePlatform extends AbstractPlatform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\DrizzleKeywords'; return Keywords\DrizzleKeywords::class;
} }
/** /**
......
...@@ -79,7 +79,7 @@ class MySQL57Platform extends MySqlPlatform ...@@ -79,7 +79,7 @@ class MySQL57Platform extends MySqlPlatform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\MySQL57Keywords'; return Keywords\MySQL57Keywords::class;
} }
/** /**
......
...@@ -19,13 +19,13 @@ ...@@ -19,13 +19,13 @@
namespace Doctrine\DBAL\Platforms; namespace Doctrine\DBAL\Platforms;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Schema\Identifier; use Doctrine\DBAL\Schema\Identifier;
use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\DBAL\Schema\Index; use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\DBAL\Types\BlobType; use Doctrine\DBAL\Types\BlobType;
use Doctrine\DBAL\Types\TextType; use Doctrine\DBAL\Types\TextType;
use Doctrine\DBAL\Connection;
/** /**
* The MySqlPlatform provides the behavior, features and SQL dialect of the * The MySqlPlatform provides the behavior, features and SQL dialect of the
...@@ -1070,7 +1070,7 @@ class MySqlPlatform extends AbstractPlatform ...@@ -1070,7 +1070,7 @@ class MySqlPlatform extends AbstractPlatform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\MySQLKeywords'; return Keywords\MySQLKeywords::class;
} }
/** /**
......
...@@ -19,13 +19,13 @@ ...@@ -19,13 +19,13 @@
namespace Doctrine\DBAL\Platforms; namespace Doctrine\DBAL\Platforms;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Schema\ForeignKeyConstraint; use Doctrine\DBAL\Schema\ForeignKeyConstraint;
use Doctrine\DBAL\Schema\Identifier; use Doctrine\DBAL\Schema\Identifier;
use Doctrine\DBAL\Schema\Index; use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\Sequence; use Doctrine\DBAL\Schema\Sequence;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Schema\TableDiff; use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Types\BinaryType; use Doctrine\DBAL\Types\BinaryType;
/** /**
...@@ -1156,7 +1156,7 @@ END;'; ...@@ -1156,7 +1156,7 @@ END;';
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\OracleKeywords'; return Keywords\OracleKeywords::class;
} }
/** /**
......
...@@ -41,7 +41,7 @@ class PostgreSQL91Platform extends PostgreSqlPlatform ...@@ -41,7 +41,7 @@ class PostgreSQL91Platform extends PostgreSqlPlatform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\PostgreSQL91Keywords'; return Keywords\PostgreSQL91Keywords::class;
} }
/** /**
......
...@@ -61,7 +61,7 @@ class PostgreSQL92Platform extends PostgreSQL91Platform ...@@ -61,7 +61,7 @@ class PostgreSQL92Platform extends PostgreSQL91Platform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\PostgreSQL92Keywords'; return Keywords\PostgreSQL92Keywords::class;
} }
/** /**
......
...@@ -45,7 +45,7 @@ class PostgreSQL94Platform extends PostgreSQL92Platform ...@@ -45,7 +45,7 @@ class PostgreSQL94Platform extends PostgreSQL92Platform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\PostgreSQL94Keywords'; return Keywords\PostgreSQL94Keywords::class;
} }
/** /**
......
...@@ -1166,7 +1166,7 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -1166,7 +1166,7 @@ class PostgreSqlPlatform extends AbstractPlatform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\PostgreSQLKeywords'; return Keywords\PostgreSQLKeywords::class;
} }
/** /**
......
...@@ -42,6 +42,6 @@ class SQLAnywhere11Platform extends SQLAnywherePlatform ...@@ -42,6 +42,6 @@ class SQLAnywhere11Platform extends SQLAnywherePlatform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\SQLAnywhere11Keywords'; return Keywords\SQLAnywhere11Keywords::class;
} }
} }
...@@ -121,7 +121,7 @@ class SQLAnywhere12Platform extends SQLAnywhere11Platform ...@@ -121,7 +121,7 @@ class SQLAnywhere12Platform extends SQLAnywhere11Platform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\SQLAnywhere12Keywords'; return Keywords\SQLAnywhere12Keywords::class;
} }
/** /**
......
...@@ -55,6 +55,6 @@ class SQLAnywhere16Platform extends SQLAnywhere12Platform ...@@ -55,6 +55,6 @@ class SQLAnywhere16Platform extends SQLAnywhere12Platform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\SQLAnywhere16Keywords'; return Keywords\SQLAnywhere16Keywords::class;
} }
} }
...@@ -26,8 +26,8 @@ use Doctrine\DBAL\Schema\Column; ...@@ -26,8 +26,8 @@ use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\ColumnDiff; use Doctrine\DBAL\Schema\ColumnDiff;
use Doctrine\DBAL\Schema\Constraint; use Doctrine\DBAL\Schema\Constraint;
use Doctrine\DBAL\Schema\ForeignKeyConstraint; use Doctrine\DBAL\Schema\ForeignKeyConstraint;
use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\Identifier; use Doctrine\DBAL\Schema\Identifier;
use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Schema\TableDiff; use Doctrine\DBAL\Schema\TableDiff;
...@@ -1429,7 +1429,7 @@ class SQLAnywherePlatform extends AbstractPlatform ...@@ -1429,7 +1429,7 @@ class SQLAnywherePlatform extends AbstractPlatform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\SQLAnywhereKeywords'; return Keywords\SQLAnywhereKeywords::class;
} }
/** /**
......
...@@ -58,6 +58,6 @@ class SQLServer2005Platform extends SQLServerPlatform ...@@ -58,6 +58,6 @@ class SQLServer2005Platform extends SQLServerPlatform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\SQLServer2005Keywords'; return Keywords\SQLServer2005Keywords::class;
} }
} }
...@@ -114,6 +114,6 @@ class SQLServer2008Platform extends SQLServer2005Platform ...@@ -114,6 +114,6 @@ class SQLServer2008Platform extends SQLServer2005Platform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\SQLServer2008Keywords'; return Keywords\SQLServer2008Keywords::class;
} }
} }
...@@ -101,7 +101,7 @@ class SQLServer2012Platform extends SQLServer2008Platform ...@@ -101,7 +101,7 @@ class SQLServer2012Platform extends SQLServer2008Platform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\SQLServer2012Keywords'; return Keywords\SQLServer2012Keywords::class;
} }
/** /**
......
...@@ -22,11 +22,11 @@ namespace Doctrine\DBAL\Platforms; ...@@ -22,11 +22,11 @@ namespace Doctrine\DBAL\Platforms;
use Doctrine\DBAL\LockMode; use Doctrine\DBAL\LockMode;
use Doctrine\DBAL\Schema\Column; use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\ColumnDiff; use Doctrine\DBAL\Schema\ColumnDiff;
use Doctrine\DBAL\Schema\Identifier;
use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\DBAL\Schema\ForeignKeyConstraint; use Doctrine\DBAL\Schema\ForeignKeyConstraint;
use Doctrine\DBAL\Schema\Identifier;
use Doctrine\DBAL\Schema\Index; use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Schema\TableDiff;
/** /**
* The SQLServerPlatform provides the behavior, features and SQL dialect of the * The SQLServerPlatform provides the behavior, features and SQL dialect of the
...@@ -1512,7 +1512,7 @@ class SQLServerPlatform extends AbstractPlatform ...@@ -1512,7 +1512,7 @@ class SQLServerPlatform extends AbstractPlatform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\SQLServerKeywords'; return Keywords\SQLServerKeywords::class;
} }
/** /**
......
...@@ -21,12 +21,12 @@ namespace Doctrine\DBAL\Platforms; ...@@ -21,12 +21,12 @@ namespace Doctrine\DBAL\Platforms;
use Doctrine\DBAL\DBALException; use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Schema\Column; use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\TableDiff; use Doctrine\DBAL\Schema\Constraint;
use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Schema\ForeignKeyConstraint; use Doctrine\DBAL\Schema\ForeignKeyConstraint;
use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\Identifier; use Doctrine\DBAL\Schema\Identifier;
use Doctrine\DBAL\Schema\Constraint; use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Schema\TableDiff;
/** /**
* The SqlitePlatform class describes the specifics and dialects of the SQLite * The SqlitePlatform class describes the specifics and dialects of the SQLite
...@@ -633,7 +633,7 @@ class SqlitePlatform extends AbstractPlatform ...@@ -633,7 +633,7 @@ class SqlitePlatform extends AbstractPlatform
*/ */
protected function getReservedKeywordsClass() protected function getReservedKeywordsClass()
{ {
return 'Doctrine\DBAL\Platforms\Keywords\SQLiteKeywords'; return Keywords\SQLiteKeywords::class;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment