@@ -112,7 +112,7 @@ public function buildFromIterator(Traversable $iterator, ?string $baseDirectory
112
112
public function compressFiles (int $ compression ): void {}
113
113
114
114
/** @return bool */
115
- public function decompressFiles () {} // TODO make return type void
115
+ public function decompressFiles (): void {}
116
116
117
117
/** @tentative-return-type */
118
118
public function compress (int $ compression , ?string $ extension = null ): ?Phar {}
@@ -127,16 +127,16 @@ public function convertToExecutable(?int $format = null, ?int $compression = nul
127
127
public function convertToData (?int $ format = null , ?int $ compression = null , ?string $ extension = null ): ?PharData {}
128
128
129
129
/** @return bool */
130
- public function copy (string $ from , string $ to ) {} // TODO make return type void
130
+ public function copy (string $ from , string $ to ): void {}
131
131
132
132
/** @tentative-return-type */
133
133
public function count (int $ mode = COUNT_NORMAL ): int {}
134
134
135
135
/** @return bool */
136
- public function delete (string $ localName ) {} // TODO make return type void
136
+ public function delete (string $ localName ): void {}
137
137
138
138
/** @return bool */
139
- public function delMetadata () {} // TODO make return type void
139
+ public function delMetadata (): void {}
140
140
141
141
/** @tentative-return-type */
142
142
public function extractTo (string $ directory , array |string |null $ files = null , bool $ overwrite = false ): bool {}
@@ -218,7 +218,7 @@ public function setSignatureAlgorithm(int $algo, ?string $privateKey = null): vo
218
218
* @param resource|string $stub
219
219
* @return bool
220
220
*/
221
- public function setStub ($ stub , int $ length = UNKNOWN ) {} // TODO make return type void
221
+ public function setStub ($ stub , int $ length = UNKNOWN ): void {}
222
222
223
223
/** @tentative-return-type */
224
224
public function startBuffering (): void {}
@@ -252,7 +252,7 @@ final public static function mount(string $pharPath, string $externalPath): void
252
252
253
253
final public static function mungServer (array $ variables ): void {}
254
254
255
- final public static function unlinkArchive (string $ filename ): bool {} // TODO make return type void
255
+ final public static function unlinkArchive (string $ filename ): void {}
256
256
257
257
final public static function webPhar (
258
258
?string $ alias = null , ?string $ index = null , ?string $ fileNotFoundScript = null ,
@@ -310,7 +310,7 @@ public function compressFiles(int $compression): void {}
310
310
* @return bool
311
311
* @implementation-alias Phar::decompressFiles
312
312
*/
313
- public function decompressFiles () {} // TODO make return type void
313
+ public function decompressFiles (): void {}
314
314
315
315
/**
316
316
* @tentative-return-type
@@ -342,7 +342,7 @@ public function convertToData(?int $format = null, ?int $compression = null, ?st
342
342
* @return bool
343
343
* @implementation-alias Phar::copy
344
344
*/
345
- public function copy (string $ from , string $ to ) {} // TODO make return type void
345
+ public function copy (string $ from , string $ to ): void {}
346
346
347
347
/**
348
348
* @tentative-return-type
@@ -354,13 +354,13 @@ public function count(int $mode = COUNT_NORMAL): int {}
354
354
* @return bool
355
355
* @implementation-alias Phar::delete
356
356
*/
357
- public function delete (string $ localName ) {} // TODO make return type void
357
+ public function delete (string $ localName ): void {}
358
358
359
359
/**
360
360
* @return bool
361
361
* @implementation-alias Phar::delMetadata
362
362
*/
363
- public function delMetadata () {} // TODO make return type void
363
+ public function delMetadata (): void {}
364
364
365
365
/**
366
366
* @tentative-return-type
@@ -498,7 +498,7 @@ public function setSignatureAlgorithm(int $algo, ?string $privateKey = null): vo
498
498
* @return bool
499
499
* @implementation-alias Phar::setStub
500
500
*/
501
- public function setStub ($ stub , int $ length = UNKNOWN ) {} // TODO make return type void
501
+ public function setStub ($ stub , int $ length = UNKNOWN ): void {}
502
502
503
503
/**
504
504
* @tentative-return-type
@@ -552,7 +552,7 @@ final public static function mount(string $pharPath, string $externalPath): void
552
552
final public static function mungServer (array $ variables ): void {}
553
553
554
554
/** @implementation-alias Phar::unlinkArchive */
555
- final public static function unlinkArchive (string $ filename ): bool {} // TODO make return type void
555
+ final public static function unlinkArchive (string $ filename ): void {}
556
556
557
557
/** @implementation-alias Phar::webPhar */
558
558
final public static function webPhar (
@@ -570,13 +570,13 @@ public function __destruct() {}
570
570
public function chmod (int $ perms ): void {}
571
571
572
572
/** @return bool */
573
- public function compress (int $ compression ) {} // TODO make return type void
573
+ public function compress (int $ compression ): void {}
574
574
575
575
/** @return bool */
576
- public function decompress () {} // TODO make return type void
576
+ public function decompress (): void {}
577
577
578
578
/** @return bool */
579
- public function delMetadata () {} // TODO make return type void
579
+ public function delMetadata (): void {}
580
580
581
581
/** @tentative-return-type */
582
582
public function getCompressedSize (): int {}
0 commit comments