Verified Commit c7a2f294 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3463440 by mstrelan, smustgrave, quietone, longwave: Fix param docs identified by phpstan

(cherry picked from commit fa418559)
parent c3fe5c10
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ protected function getVendorPath() {
  /**
   * Gets a consolidated list of file mappings from all allowed packages.
   *
   * @param \Composer\Package\Package[] $allowed_packages
   * @param \Composer\Package\PackageInterface[] $allowed_packages
   *   A multidimensional array of file mappings, as returned by
   *   self::getAllowedPackages().
   *
+1 −1
Original line number Diff line number Diff line
@@ -329,7 +329,7 @@ public function cleanPackage(PackageInterface $package) {
   *
   * @param \Composer\Package\PackageInterface $package
   *   The package to clean.
   * @param string $paths_for_package
   * @param string[] $paths_for_package
   *   List of directories in $package_name to remove
   */
  protected function cleanPathsForPackage(PackageInterface $package, $paths_for_package) {
+1 −1
Original line number Diff line number Diff line
@@ -353,7 +353,7 @@ protected function dumpCallable($callable) {
  /**
   * Gets a private service definition in a suitable format.
   *
   * @param string $id
   * @param string|null $id
   *   The ID of the service to get a private definition for.
   * @param \Symfony\Component\DependencyInjection\Definition $definition
   *   The definition to process.
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ class PoHeader {
  /**
   * Author(s) of the file.
   *
   * @var string
   * @var string[]
   */
  protected $authors;

+4 −2
Original line number Diff line number Diff line
@@ -105,7 +105,8 @@ public function setContext($context) {
  /**
   * Gets the source string(s) if the translation has plurals.
   *
   * @return string or array $translation
   * @return string|array
   *   The source string or array of strings if it has plurals.
   */
  public function getSource() {
    return $this->source;
@@ -124,7 +125,8 @@ public function setSource($source) {
  /**
   * Gets the translation string(s) if the translation has plurals.
   *
   * @return string or array $translation
   * @return string|array
   *   The translation string or array of strings if it has plurals.
   */
  public function getTranslation() {
    return $this->translation;
Loading