Skip to content

Commit

Permalink
Fix phpdoc errors found by phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Dec 7, 2017
1 parent 693fe6a commit 52e2a5e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public function formatVersion($version)
/**
* Returns the datetime of a migration
*
* @param $version
* @param string $version
* @return string
*/
public function getDateTime($version)
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/DBAL/Migrations/Finder/AbstractFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ protected function getRealPath($directory)

/**
* Load the migrations and return an array of thoses loaded migrations
* @param $files array of migration filename found
* @param $namespace namespace of thoses migrations
* @param array $files array of migration filename found
* @param string $namespace namespace of thoses migrations
* @return array constructed with the migration name as key and the value is the fully qualified name of the migration
*/
protected function loadMigrations($files, $namespace)
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/DBAL/Migrations/Finder/RecursiveRegexFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function findMigrations($directory, $namespace = null)

/**
* Create a recursive iterator to find all the migrations in the subdirectories.
* @param $dir
* @param string $dir
* @return \RegexIterator
*/
private function createIterator($dir)
Expand All @@ -45,7 +45,7 @@ private function getPattern()

/**
* Transform the recursiveIterator result array of array into the expected array of migration file
* @param $iteratorFilesMatch
* @param iterable $iteratorFilesMatch
* @return array
*/
private function getMatches($iteratorFilesMatch)
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Migrations/MigrationsVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static function VERSION()
}

/**
* @param $gitversion
* @param string $gitversion
* @return bool
*
* Check if doctrine migration is installed by composer or
Expand Down
6 changes: 3 additions & 3 deletions lib/Doctrine/DBAL/Migrations/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Version
/**
* The version in timestamp format (YYYYMMDDHHMMSS)
*
* @param int
* @var string
*/
private $version;

Expand Down Expand Up @@ -444,8 +444,8 @@ private function outputSqlQuery($idx, $query)
/**
* Formats a set of sql parameters for output with dry run.
*
* @param $params The query parameters
* @param $types The types of the query params. Default type is a string
* @param array $params The query parameters
* @param array $types The types of the query params. Default type is a string
* @return string|null a string of the parameters present.
*/
private function formatParamsForOutput(array $params, array $types)
Expand Down

0 comments on commit 52e2a5e

Please sign in to comment.