Skip to content

Commit cbda099

Browse files
committed
Add docblocks for array return types
Via AddReturnDocblockForDimFetchArrayFromAssignsRector
1 parent 999d30e commit cbda099

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/DirectDeployConfig.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ public function __construct(
99
public bool $do_detect = true,
1010
) {}
1111

12+
/**
13+
* @return array<string, \StaticDeploy\CrawlConfig|bool|null>
14+
*/
1215
public function toArray(): array
1316
{
1417
return [

src/PathInfo.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ public static function pathErrorMessage(
7777
return false;
7878
}
7979

80+
/**
81+
* @return array<string, string|int>
82+
*/
8083
public function toArray(): array {
8184
$arr = [
8285
'path' => $this->path,

src/S3/Deployer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ function ( string $reason, $iter_key, $promise ) use ( &$items_by_iter_key ): vo
280280
}
281281
}
282282

283+
/**
284+
* @return array<string, string|bool>
285+
*/
283286
public static function awsClientOpts(): array {
284287
$opts = [
285288
'region' => S3Options::getValue( 'awsRegion' ),

0 commit comments

Comments
 (0)