Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiix committed Feb 9, 2021
1 parent 76aa8fb commit bf396cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions classes/Log/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function warning($message, array $context = array())
* Equivalent of the old $nextErrors
* Used during upgrade. Will be displayed in the top right panel (not visible at the beginning).
*
* @var array Details of error which occured during the request. Verbose levels: ERROR
* @return array Details of error which occured during the request. Verbose levels: ERROR
*/
public function getErrors()
{
Expand All @@ -107,7 +107,7 @@ public function getErrors()
* Equivalent of the old $nextQuickInfo
* Used during upgrade. Will be displayed in the lower panel.
*
* @var array Details on what happened during the execution. Verbose levels: DEBUG / INFO / WARNING
* @return array Details on what happened during the execution. Verbose levels: DEBUG / INFO / WARNING
*/
public function getInfos()
{
Expand All @@ -119,7 +119,7 @@ public function getInfos()
* Equivalent of the old $next_desc
* Used during upgrade. Will be displayed on the top left panel.
*
* @var string Stores the main information about the current step
* @return string Stores the main information about the current step
*/
public function getLastInfo()
{
Expand Down
12 changes: 6 additions & 6 deletions classes/ZipAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __construct($translator, LoggerInterface $logger, UpgradeConfigu
* Add files to an archive.
* Note the number of files added can be limited.
*
* @var array List of files to add
* @var array $filesList List of files to add

This comment has been minimized.

Copy link
@ondrejmirtes

ondrejmirtes Feb 9, 2021

These are supposed to be @param, not @var. I'll add a check to the next version.

* @var string $toFile
*/
public function compress(&$filesList, $toFile)
Expand Down Expand Up @@ -174,7 +174,7 @@ public function extract($from_file, $to_dir)
/**
* Lists the files present in the given archive
*
* @var string Path to the file
* @var string $zipfile Path to the file
*
* @return array
*/
Expand Down Expand Up @@ -202,7 +202,7 @@ public function listContent($zipfile)
/**
* Get the path of a file from the archive root
*
* @var string Path of the file on the filesystem
* @var string $filepath Path of the file on the filesystem
*
* @return string Path of the file in the backup archive
*/
Expand All @@ -214,7 +214,7 @@ private function getFilepathInArchive($filepath)
/**
* Checks a file size matches the given limits
*
* @var string Path to a file
* @var string $filepath Path to a file
*
* @return bool Size is inside the maximum limit
*/
Expand All @@ -239,8 +239,8 @@ private function isFileWithinFileSizeLimit($filepath)
/**
* Open an archive
*
* @var string Path to the archive
* @var int ZipArchive flags
* @var string $zipFile Path to the archive
* @var int $flags ZipArchive flags
*
* @return false|\ZipArchive
*/
Expand Down

0 comments on commit bf396cf

Please sign in to comment.