Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/3827' into develop
Browse files Browse the repository at this point in the history
Forward port #3827
  • Loading branch information
weierophinney committed Mar 5, 2013
2 parents 47297fd + 90bf245 commit 1221f0c
Show file tree
Hide file tree
Showing 34 changed files with 60 additions and 49 deletions.
3 changes: 2 additions & 1 deletion library/Zend/Code/Generator/ClassGenerator.php
Expand Up @@ -486,7 +486,8 @@ public function addPropertyFromGenerator(PropertyGenerator $property)
/**
* Add a class to "use" classes
*
* @param string $useClass
* @param string $use
* @param string|null $useAlias
*/
public function addUse($use, $useAlias = null)
{
Expand Down
5 changes: 3 additions & 2 deletions library/Zend/Crypt/Password/Apache.php
Expand Up @@ -154,7 +154,7 @@ public function verify($password, $hash)
/**
* Set the format of the password
*
* @param integer|string $cost
* @param string $format
* @throws Exception\InvalidArgumentException
* @return Apache
*/
Expand Down Expand Up @@ -242,7 +242,8 @@ protected function toAlphabet64($value)
/**
* APR1 MD5 algorithm
*
* @param string $password
* @param string $password
* @param null|string $salt
* @return string
*/
protected function apr1Md5($password, $salt = null)
Expand Down
Expand Up @@ -34,6 +34,7 @@ class MasterSlaveFeature extends AbstractFeature
* Constructor
*
* @param AdapterInterface $slaveAdapter
* @param Sql|null $slaveSql
*/
public function __construct(AdapterInterface $slaveAdapter, Sql $slaveSql = null)
{
Expand Down
3 changes: 2 additions & 1 deletion library/Zend/Db/TableGateway/Feature/SequenceFeature.php
Expand Up @@ -32,7 +32,8 @@ class SequenceFeature extends AbstractFeature


/**
* @param null $sequence
* @param string $primaryKeyField
* @param string $sequenceName
*/
public function __construct($primaryKeyField, $sequenceName)
{
Expand Down
2 changes: 2 additions & 0 deletions library/Zend/Dom/NodeList.php
Expand Up @@ -167,6 +167,7 @@ public function count()
/**
* ArrayAccess: offset exists
*
* @param int $key
* @return bool
*/
public function offsetExists($key)
Expand All @@ -180,6 +181,7 @@ public function offsetExists($key)
/**
* ArrayAccess: get offset
*
* @param int $key
* @return mixed
*/
public function offsetGet($key)
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Filter/UriNormalize.php
Expand Up @@ -34,7 +34,7 @@ class UriNormalize extends AbstractFilter
/**
* Sets filter options
*
* @param string|array|\Zend\Config\Config $options
* @param array|\Traversable|null $options
* @return void
*/
public function __construct($options = null)
Expand Down
4 changes: 1 addition & 3 deletions library/Zend/Form/View/Helper/Form.php
Expand Up @@ -51,9 +51,7 @@ public function __invoke(FormInterface $form = null)
/**
* Render a form from the provided $form,
*
* @param ElementInterface $element
* @param null|string $buttonContent
* @throws Exception\DomainException
* @param FormInterface $form
* @return string
*/
public function render(FormInterface $form)
Expand Down
7 changes: 3 additions & 4 deletions library/Zend/Http/Client/Adapter/Test.php
Expand Up @@ -98,10 +98,9 @@ public function setOptions($options = array())
/**
* Connect to the remote server
*
* @param string $host
* @param int $port
* @param bool $secure
* @param int $timeout
* @param string $host
* @param int $port
* @param bool $secure
* @throws Exception\RuntimeException
*/
public function connect($host, $port = 80, $secure = false)
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Http/Client/Cookies.php
Expand Up @@ -328,7 +328,7 @@ protected function _matchPath($domains, $path)
* of the cookie.
*
* @param Response $response HTTP Response object
* @param Uri\Uri|string $uri The requested URI
* @param Uri\Uri|string $refUri The requested URI
* @return Cookies
* @todo Add the $uri functionality.
*/
Expand Down
Expand Up @@ -42,7 +42,7 @@ public function __construct($internalValues)
/**
* Set a Field Value Part this Field Value Part matched against.
*
* @param AbstractFieldValuePart $matchedPart
* @param AbstractFieldValuePart $matchedAgainst
* @return AbstractFieldValuePart provides fluent interface
*/
public function setMatchedAgainst(AbstractFieldValuePart $matchedAgainst)
Expand Down
6 changes: 4 additions & 2 deletions library/Zend/Json/Json.php
Expand Up @@ -153,8 +153,10 @@ public static function encode($valueToEncode, $cycleCheck = false, $options = ar
* NOTE: This method is used internally by the encode method.
*
* @see encode
* @param mixed $valueToCheck a string - object property to be encoded
* @return void
* @param mixed $value a string - object property to be encoded
* @param array $javascriptExpressions
* @param null|string|int $currentKey
* @return mixed
*/
protected static function _recursiveJsonExprFinder(
&$value, array &$javascriptExpressions, $currentKey = null
Expand Down
3 changes: 2 additions & 1 deletion library/Zend/Log/Writer/AbstractWriter.php
Expand Up @@ -284,6 +284,7 @@ public function write(array $event)
* Set a new formatter for this writer
*
* @param string|Formatter\FormatterInterface $formatter
* @param array|null $options
* @return self
* @throws Exception\InvalidArgumentException
*/
Expand All @@ -308,7 +309,7 @@ public function setFormatter($formatter, array $options = null)
/**
* Set convert write errors to exception flag
*
* @param bool $ignoreWriteErrors
* @param bool $convertErrors
*/
public function setConvertWriteErrorsToExceptions($convertErrors)
{
Expand Down
9 changes: 5 additions & 4 deletions library/Zend/Log/Writer/FingersCrossed.php
Expand Up @@ -100,9 +100,10 @@ public function __construct($writer, $filterOrPriority = null, $bufferSize = 0)
}

/**
* Set a new formatter for this writer
* Set a new writer
*
* @param string|Formatter\FormatterInterface $formatter
* @param string|WriterInterface $writer
* @param array|null $options
* @return self
* @throws Exception\InvalidArgumentException
*/
Expand All @@ -114,7 +115,7 @@ public function setWriter($writer, array $options = null)

if (!$writer instanceof WriterInterface) {
throw new Exception\InvalidArgumentException(sprintf(
'Formatter must implement %s\Formatter\FormatterInterface; received "%s"',
'Writer must implement %s\WriterInterface; received "%s"',
__NAMESPACE__,
is_object($writer) ? get_class($writer) : gettype($writer)
));
Expand All @@ -141,7 +142,7 @@ public function getWriterPluginManager()
* Set writer plugin manager
*
* @param string|WriterPluginManager $plugins
* @return Logger
* @return FingersCrossed
* @throws Exception\InvalidArgumentException
*/
public function setWriterPluginManager($plugins)
Expand Down
1 change: 1 addition & 0 deletions library/Zend/Log/Writer/ZendMonitor.php
Expand Up @@ -28,6 +28,7 @@ class ZendMonitor extends AbstractWriter
/**
* Constructor
*
* @param array|\Traversable|null $options
* @return ZendMonitor
*/
public function __construct($options = null)
Expand Down
Expand Up @@ -122,7 +122,7 @@ protected function getCachedConfig()
*
* Unregisters the ModuleLoader and generates the module class map cache.
*
* @param ModuleEvent $e
* @param ModuleEvent $event
*/
public function onLoadModulesPost(ModuleEvent $event)
{
Expand Down
2 changes: 2 additions & 0 deletions library/Zend/Mvc/Controller/AbstractRestfulController.php
Expand Up @@ -359,6 +359,8 @@ public function processPostData(Request $request)
/**
* Check if request has certain content type
*
* @param Request $request
* @param string|null $contentType
* @return boolean
*/
public function requestHasContentType(Request $request, $contentType = '')
Expand Down
4 changes: 4 additions & 0 deletions library/Zend/Mvc/Controller/Plugin/FlashMessenger.php
Expand Up @@ -355,6 +355,7 @@ public function clearMessages()
/**
* Clear all messages from specific namespace
*
* @param string $namespaceToClear
* @return boolean True if messages were cleared, false if none existed
*/
public function clearMessagesFromNamespace($namespaceToClear)
Expand Down Expand Up @@ -516,6 +517,7 @@ public function getCurrentErrorMessages()
* Get messages that have been added to the current
* namespace in specific namespace
*
* @param string $namespaceToGet
* @return array
*/
public function getCurrentMessagesFromNamespace($namespaceToGet)
Expand Down Expand Up @@ -549,6 +551,7 @@ public function clearCurrentMessages()
/**
* Clear messages from the current namespace
*
* @param string $namespaceToClear
* @return boolean
*/
public function clearCurrentMessagesFromNamespace($namespaceToClear)
Expand Down Expand Up @@ -617,6 +620,7 @@ public function count()
/**
* Get messages from a specific namespace
*
* @param string $namespaceToGet
* @return array
*/
public function getMessagesFromNamespace($namespaceToGet)
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Permissions/Rbac/AssertionInterface.php
Expand Up @@ -14,7 +14,7 @@ interface AssertionInterface
/**
* Assertion method - must return a boolean.
*
* @param Rbac $bac
* @param Rbac $rbac
* @return boolean
*/
public function assert(Rbac $rbac);
Expand Down
8 changes: 5 additions & 3 deletions library/Zend/Permissions/Rbac/Rbac.php
Expand Up @@ -43,7 +43,8 @@ public function getCreateMissingRoles()
/**
* Add a child.
*
* @param string|RoleInterface $child
* @param string|RoleInterface $child
* @param array|RoleInterface|null $parents
* @return RoleInterface
* @throws Exception\InvalidArgumentException
*/
Expand Down Expand Up @@ -123,8 +124,9 @@ public function getRole($objectOrName)
/**
* Determines if access is granted by checking the role and child roles for permission.
*
* @param string $permission
* @param \Zend\Permissions\Rbac\AssertionInterface|Callable|null $assert
* @param RoleInterface|string $role
* @param string $permission
* @param AssertionInterface|Callable|null $assert
* @return bool
*/
public function isGranted($role, $permission, $assert = null)
Expand Down
6 changes: 2 additions & 4 deletions library/Zend/Session/Storage/AbstractSessionArrayStorage.php
Expand Up @@ -25,8 +25,6 @@ abstract class AbstractSessionArrayStorage implements IteratorAggregate, Storage
* Constructor
*
* @param array|null $input
* @param int $flags
* @param string $iteratorClass
*/
public function __construct($input = null)
{
Expand Down Expand Up @@ -169,6 +167,7 @@ public function serialize()
/**
* Unserialize
*
* @param string $session
* @return mixed
*/
public function unserialize($session)
Expand Down Expand Up @@ -448,8 +447,7 @@ protected function setRequestAccessTime($time)
/**
* Cast the object to an array
*
* Returns data only, no metadata.
*
* @param bool $metaData Whether to include metadata
* @return array
*/
public function toArray($metaData = false)
Expand Down
3 changes: 1 addition & 2 deletions library/Zend/Session/Storage/ArrayStorage.php
Expand Up @@ -342,8 +342,7 @@ public function fromArray(array $array)
/**
* Cast the object to an array
*
* Returns data only, no metadata.
*
* @param bool $metaData Whether to include metadata
* @return array
*/
public function toArray($metaData = false)
Expand Down
3 changes: 3 additions & 0 deletions library/Zend/Stdlib/ArrayObject.php
Expand Up @@ -74,6 +74,7 @@ public function __construct($input = array(), $flags = self::STD_PROP_LIST, $ite
/**
* Returns whether the requested key exists
*
* @param mixed $key
* @return boolean
*/
public function __isset($key)
Expand Down Expand Up @@ -276,6 +277,7 @@ public function natsort()
/**
* Returns whether the requested key exists
*
* @param mixed $key
* @return boolean
*/
public function offsetExists($key)
Expand Down Expand Up @@ -315,6 +317,7 @@ public function offsetSet($key, $value)
/**
* Unsets the value at the specified key
*
* @param mixed $key
* @return void
*/
public function offsetUnset($key)
Expand Down
3 changes: 2 additions & 1 deletion library/Zend/Stdlib/Hydrator/Filter/MethodMatchFilter.php
Expand Up @@ -23,7 +23,8 @@ class MethodMatchFilter implements FilterInterface
protected $exclude = null;

/**
* @param string $method The method to exclude
* @param string $method The method to exclude or include
* @param bool $exclude If the method should be excluded
*/
public function __construct($method, $exclude = true)
{
Expand Down
Expand Up @@ -28,6 +28,7 @@ class SerializableStrategy implements StrategyInterface
/**
*
* @param mixed $serializer string or SerializerAdapter
* @param mixed $serializerOptions
*/
public function __construct($serializer, $serializerOptions = null)
{
Expand Down
Expand Up @@ -139,7 +139,7 @@ public function convert($str, $reverse = false)
/**
* Wraps a string to a given number of characters
*
* @param string $str
* @param string $string
* @param integer $width
* @param string $break
* @param boolean $cut
Expand Down
3 changes: 0 additions & 3 deletions library/Zend/Stdlib/StringWrapper/Iconv.php
Expand Up @@ -225,7 +225,6 @@ public function __construct()
* Returns the length of the given string
*
* @param string $str
* @param string $encoding
* @return int|false
*/
public function strlen($str)
Expand All @@ -239,7 +238,6 @@ public function strlen($str)
* @param string $str
* @param int $offset
* @param int|null $length
* @param string $encoding
* @return string|false
*/
public function substr($str, $offset = 0, $length = null)
Expand All @@ -253,7 +251,6 @@ public function substr($str, $offset = 0, $length = null)
* @param string $haystack
* @param string $needle
* @param int $offset
* @param string $encoding
* @return int|false
*/
public function strpos($haystack, $needle, $offset = 0)
Expand Down

0 comments on commit 1221f0c

Please sign in to comment.