aboutsummaryrefslogtreecommitdiffstats
path: root/core/Migrations
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-06-23 22:50:49 +0330
committerFaraz Samapoor <fsa@adlas.at>2023-06-23 22:50:49 +0330
commit04b12d9d2736d0f47aff0fea81ab94151e133355 (patch)
tree57e19fcd4f2541204b26aa7bebdf19ebac009328 /core/Migrations
parent877ddd28277e6bd263832209f4d22e713b4bdd87 (diff)
downloadnextcloud-server-04b12d9d2736d0f47aff0fea81ab94151e133355.tar.gz
nextcloud-server-04b12d9d2736d0f47aff0fea81ab94151e133355.zip
Uses PHP8's constructor property promotion.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
Diffstat (limited to 'core/Migrations')
-rw-r--r--core/Migrations/Version13000Date20170718121200.php8
-rw-r--r--core/Migrations/Version14000Date20180404140050.php8
-rw-r--r--core/Migrations/Version16000Date20190427105638.php8
-rw-r--r--core/Migrations/Version18000Date20190920085628.php8
-rw-r--r--core/Migrations/Version18000Date20191014105105.php8
-rw-r--r--core/Migrations/Version18000Date20191204114856.php8
-rw-r--r--core/Migrations/Version20000Date20201109081918.php8
-rw-r--r--core/Migrations/Version24000Date20211210141942.php8
-rw-r--r--core/Migrations/Version24000Date20211230140012.php8
-rw-r--r--core/Migrations/Version25000Date20221007010957.php7
-rw-r--r--core/Migrations/Version27000Date20230309104325.php2
11 files changed, 31 insertions, 50 deletions
diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php
index 05cdbcfd6b5..f0e489922fb 100644
--- a/core/Migrations/Version13000Date20170718121200.php
+++ b/core/Migrations/Version13000Date20170718121200.php
@@ -39,11 +39,9 @@ use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
class Version13000Date20170718121200 extends SimpleMigrationStep {
- /** @var IDBConnection */
- private $connection;
-
- public function __construct(IDBConnection $connection) {
- $this->connection = $connection;
+ public function __construct(
+ private IDBConnection $connection,
+ ) {
}
public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) {
diff --git a/core/Migrations/Version14000Date20180404140050.php b/core/Migrations/Version14000Date20180404140050.php
index e670fe525da..e7630ff88a0 100644
--- a/core/Migrations/Version14000Date20180404140050.php
+++ b/core/Migrations/Version14000Date20180404140050.php
@@ -35,11 +35,9 @@ use OCP\Migration\SimpleMigrationStep;
* Auto-generated migration step: Please modify to your needs!
*/
class Version14000Date20180404140050 extends SimpleMigrationStep {
- /** @var IDBConnection */
- private $connection;
-
- public function __construct(IDBConnection $connection) {
- $this->connection = $connection;
+ public function __construct(
+ private IDBConnection $connection,
+ ) {
}
public function name(): string {
diff --git a/core/Migrations/Version16000Date20190427105638.php b/core/Migrations/Version16000Date20190427105638.php
index 4df64a59250..4080ad68603 100644
--- a/core/Migrations/Version16000Date20190427105638.php
+++ b/core/Migrations/Version16000Date20190427105638.php
@@ -33,11 +33,9 @@ use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
class Version16000Date20190427105638 extends SimpleMigrationStep {
- /** @var IDBConnection */
- private $connection;
-
- public function __construct(IDBConnection $connection) {
- $this->connection = $connection;
+ public function __construct(
+ private IDBConnection $connection,
+ ) {
}
/**
diff --git a/core/Migrations/Version18000Date20190920085628.php b/core/Migrations/Version18000Date20190920085628.php
index d7b1727aa59..2d28468fd0b 100644
--- a/core/Migrations/Version18000Date20190920085628.php
+++ b/core/Migrations/Version18000Date20190920085628.php
@@ -36,11 +36,9 @@ use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
class Version18000Date20190920085628 extends SimpleMigrationStep {
- /** @var IDBConnection */
- protected $connection;
-
- public function __construct(IDBConnection $connection) {
- $this->connection = $connection;
+ public function __construct(
+ protected IDBConnection $connection,
+ ) {
}
/**
diff --git a/core/Migrations/Version18000Date20191014105105.php b/core/Migrations/Version18000Date20191014105105.php
index 340c9b3d729..b659977d55f 100644
--- a/core/Migrations/Version18000Date20191014105105.php
+++ b/core/Migrations/Version18000Date20191014105105.php
@@ -36,11 +36,9 @@ use OCP\Migration\SimpleMigrationStep;
use OCP\Migration\IOutput;
class Version18000Date20191014105105 extends SimpleMigrationStep {
- /** @var IDBConnection */
- protected $connection;
-
- public function __construct(IDBConnection $connection) {
- $this->connection = $connection;
+ public function __construct(
+ protected IDBConnection $connection,
+ ) {
}
/**
diff --git a/core/Migrations/Version18000Date20191204114856.php b/core/Migrations/Version18000Date20191204114856.php
index d7f4dbafe87..1c5c623e7be 100644
--- a/core/Migrations/Version18000Date20191204114856.php
+++ b/core/Migrations/Version18000Date20191204114856.php
@@ -32,11 +32,9 @@ use OCP\Migration\SimpleMigrationStep;
use OCP\Migration\IOutput;
class Version18000Date20191204114856 extends SimpleMigrationStep {
- /** @var IDBConnection */
- protected $connection;
-
- public function __construct(IDBConnection $connection) {
- $this->connection = $connection;
+ public function __construct(
+ protected IDBConnection $connection,
+ ) {
}
/**
diff --git a/core/Migrations/Version20000Date20201109081918.php b/core/Migrations/Version20000Date20201109081918.php
index aae89465d75..5c275ed2c3a 100644
--- a/core/Migrations/Version20000Date20201109081918.php
+++ b/core/Migrations/Version20000Date20201109081918.php
@@ -35,11 +35,9 @@ use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
class Version20000Date20201109081918 extends SimpleMigrationStep {
- /** @var IDBConnection */
- protected $connection;
-
- public function __construct(IDBConnection $connection) {
- $this->connection = $connection;
+ public function __construct(
+ protected IDBConnection $connection,
+ ) {
}
/**
diff --git a/core/Migrations/Version24000Date20211210141942.php b/core/Migrations/Version24000Date20211210141942.php
index 47a4b11ce4f..04f6d80b825 100644
--- a/core/Migrations/Version24000Date20211210141942.php
+++ b/core/Migrations/Version24000Date20211210141942.php
@@ -37,11 +37,9 @@ use OCP\Migration\SimpleMigrationStep;
*
*/
class Version24000Date20211210141942 extends SimpleMigrationStep {
- /** @var IDBConnection */
- protected $connection;
-
- public function __construct(IDBConnection $connection) {
- $this->connection = $connection;
+ public function __construct(
+ protected IDBConnection $connection,
+ ) {
}
/**
diff --git a/core/Migrations/Version24000Date20211230140012.php b/core/Migrations/Version24000Date20211230140012.php
index fc013338862..123cc3819fe 100644
--- a/core/Migrations/Version24000Date20211230140012.php
+++ b/core/Migrations/Version24000Date20211230140012.php
@@ -33,11 +33,9 @@ use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
class Version24000Date20211230140012 extends SimpleMigrationStep {
- /** @var IDBConnection */
- protected $connection;
-
- public function __construct(IDBConnection $connection) {
- $this->connection = $connection;
+ public function __construct(
+ protected IDBConnection $connection,
+ ) {
}
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
diff --git a/core/Migrations/Version25000Date20221007010957.php b/core/Migrations/Version25000Date20221007010957.php
index 21c62acae21..d1ce4cf2d97 100644
--- a/core/Migrations/Version25000Date20221007010957.php
+++ b/core/Migrations/Version25000Date20221007010957.php
@@ -38,10 +38,9 @@ use OCP\Migration\SimpleMigrationStep;
*
*/
class Version25000Date20221007010957 extends SimpleMigrationStep {
- protected IDBConnection $connection;
-
- public function __construct(IDBConnection $connection) {
- $this->connection = $connection;
+ public function __construct(
+ protected IDBConnection $connection,
+ ) {
}
/**
diff --git a/core/Migrations/Version27000Date20230309104325.php b/core/Migrations/Version27000Date20230309104325.php
index e11b37b4b29..4708dc33717 100644
--- a/core/Migrations/Version27000Date20230309104325.php
+++ b/core/Migrations/Version27000Date20230309104325.php
@@ -39,7 +39,7 @@ use OCP\Migration\SimpleMigrationStep;
*/
class Version27000Date20230309104325 extends SimpleMigrationStep {
public function __construct(
- private IDBConnection $connection
+ private IDBConnection $connection,
) {
}