Эх сурвалжийг харах

Replace remaining occurrences of "boolean" with "bool" in phpdocs.

[ci skip]
Daniele Alessandri 11 жил өмнө
parent
commit
b73606de68

+ 1 - 1
lib/Predis/Autoloader.php

@@ -36,7 +36,7 @@ class Autoloader
     /**
      * Registers the autoloader class with the PHP SPL autoloader.
      *
-     * @param boolean $prepend Prepend the autoloader on the stack instead of appending it.
+     * @param bool $prepend Prepend the autoloader on the stack instead of appending it.
      */
     public static function register($prepend = false)
     {

+ 1 - 1
lib/Predis/Cluster/Distributor/HashRing.php

@@ -95,7 +95,7 @@ class HashRing implements DistributorInterface, HashGeneratorInterface
     /**
      * Returns the initialization status of the distributor.
      *
-     * @return Boolean
+     * @return bool
      */
     private function isInitialized()
     {

+ 2 - 2
lib/Predis/Cluster/PredisStrategy.php

@@ -348,8 +348,8 @@ class PredisStrategy implements StrategyInterface
     /**
      * Checks if the specified array of keys will generate the same hash.
      *
-     * @param  array   $keys Array of keys.
-     * @return Boolean
+     * @param  array $keys Array of keys.
+     * @return bool
      */
     protected function checkSameHashForKeys(array $keys)
     {

+ 1 - 1
lib/Predis/Command/ZSetRange.php

@@ -70,7 +70,7 @@ class ZSetRange extends Command
     /**
      * Checks for the presence of the WITHSCORES modifier.
      *
-     * @return Boolean
+     * @return bool
      */
     protected function withScores()
     {

+ 1 - 1
lib/Predis/CommunicationException.php

@@ -52,7 +52,7 @@ abstract class CommunicationException extends PredisException
     /**
      * Indicates if the receiver should reset the underlying connection.
      *
-     * @return Boolean
+     * @return bool
      */
     public function shouldResetConnection()
     {