Skip to content

Commit d2fd324

Browse files
authored
Merge pull request #10 from grayfolk/dev
Fix types
2 parents 9fc0c38 + fedacd2 commit d2fd324

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/App.php

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
/**
1717
* @author grayfolk
18-
* @version 1.0.2
18+
* @version 1.0.3
1919
*/
2020
class App
2121
{
22-
public const VERSION = '1.0.2';
22+
public const VERSION = '1.0.3';
2323

2424
/**
2525
* Available API actions.
@@ -33,7 +33,7 @@ class App
3333
];
3434

3535
/**
36-
* @var string
36+
* @var string|null
3737
*/
3838
public ?string $account = null;
3939

@@ -87,12 +87,13 @@ public function drawHeader(): void
8787
}
8888

8989
/**
90-
* @param mixed $excludes
91-
* @param mixed $message
92-
* @param mixed $forceAuth
90+
* @param string $message
91+
* @param array $excludes
92+
* @param bool $forceAuth
93+
* @return string
9394
* @throws Exception
9495
*/
95-
public function selectAccount($message = 'Select DigitalOcean account:', $excludes = [], $forceAuth = true): string
96+
public function selectAccount(string $message = 'Select DigitalOcean account:', array $excludes = [], bool $forceAuth = true): string
9697
{
9798
if (!$this->accounts) {
9899
if (!file_exists('accounts.json') || !is_file('accounts.json') || !is_readable('accounts.json')) {
@@ -132,10 +133,11 @@ public function selectAccount($message = 'Select DigitalOcean account:', $exclud
132133
}
133134

134135
/**
136+
* @param string $apiKey
137+
* @param bool $drawHeader
135138
* @throws Exception
136-
* @param mixed $drawHeader
137139
*/
138-
public function auth(string $apiKey, $drawHeader = true): void
140+
public function auth(string $apiKey, bool $drawHeader = true): void
139141
{
140142
if (!$this->client) {
141143
$this->client = new Client();

0 commit comments

Comments
 (0)