Skip to content

Commit 7071557

Browse files
committed
refactor: replace @var tags with typed properties
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent d385213 commit 7071557

32 files changed

Lines changed: 154 additions & 411 deletions

lib/Db/Share.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,9 @@
2323
* @method void setShareWith(string $value)
2424
*/
2525
class Share extends Entity {
26-
/** @var int */
2726
protected $formId;
28-
/** @var int */
2927
protected $shareType;
30-
/** @var string */
3128
protected $shareWith;
32-
/** @var string */
3329
protected $permissionsJson;
3430

3531
/**

lib/Migration/Version0010Date20190000000007.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@
1919
*/
2020
class Version0010Date20190000000007 extends SimpleMigrationStep {
2121

22-
/** @var IDBConnection */
23-
protected $connection;
24-
25-
/** @var IConfig */
26-
protected $config;
22+
protected IDBConnection $connection;
23+
protected IConfig $config;
2724

2825
/**
2926
* @param IDBConnection $connection

lib/Migration/Version010200Date20200323141300.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,11 @@
2323
*/
2424
class Version010200Date20200323141300 extends SimpleMigrationStep {
2525

26-
/** @var IDBConnection */
27-
protected $connection;
28-
29-
/** @var IConfig */
30-
protected $config;
26+
protected IDBConnection $connection;
27+
protected IConfig $config;
3128

3229
/** Map of questionTypes to change */
33-
private $questionTypeMap = [
30+
private array $questionTypeMap = [
3431
'radiogroup' => 'multiple_unique',
3532
'checkbox' => 'multiple',
3633
'text' => 'short',

lib/Migration/Version020202Date20210311150843.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
use OCP\Migration\SimpleMigrationStep;
1717

1818
class Version020202Date20210311150843 extends SimpleMigrationStep {
19-
/** @var IDBConnection */
20-
protected $connection;
19+
protected IDBConnection $connection;
2120

2221
/**
2322
* @param IDBConnection $connection

lib/Migration/Version020300Date20210406114130.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
use OCP\Migration\SimpleMigrationStep;
1717

1818
class Version020300Date20210406114130 extends SimpleMigrationStep {
19-
/** @var IDBConnection */
20-
protected $connection;
19+
protected IDBConnection $connection;
2120

2221
/**
2322
* @param IDBConnection $connection

lib/Migration/Version030000Date20211206213004.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020

2121
class Version030000Date20211206213004 extends SimpleMigrationStep {
2222

23-
/** @var IDBConnection */
24-
protected $connection;
23+
protected IDBConnection $connection;
2524

2625
/**
2726
* @param IDBConnection $connection

lib/Migration/Version030000Date20220705192811.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
use OCP\Migration\SimpleMigrationStep;
1717

1818
class Version030000Date20220705192811 extends SimpleMigrationStep {
19-
/** @var IDBConnection */
20-
protected $connection;
19+
protected IDBConnection $connection;
2120

2221
/**
2322
* @param IDBConnection $connection

lib/Migration/Version030000Date20220926200602.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
use OCP\Migration\SimpleMigrationStep;
1717

1818
class Version030000Date20220926200602 extends SimpleMigrationStep {
19-
/** @var IDBConnection */
20-
protected $connection;
19+
protected IDBConnection $connection;
2120

2221
/**
2322
* @param IDBConnection $connection

tests/Integration/Api/ApiV3Test.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
* @group DB
1919
*/
2020
class ApiV3Test extends IntegrationBase {
21-
/** @var GuzzleHttp\Client */
22-
private $http;
21+
private Client $http;
2322

2423
protected array $users = [
2524
'test' => 'Test user',

tests/Integration/Api/RespectAdminSettingsTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
* @group DB
1919
*/
2020
class RespectAdminSettingsTest extends IntegrationBase {
21-
/** @var GuzzleHttp\Client */
22-
private $http;
21+
private Client $http;
2322

2423
protected array $users = [
2524
'test' => 'Test user',

0 commit comments

Comments
 (0)