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

Commit

Permalink
Merge branch 'hotfix/3342' into develop
Browse files Browse the repository at this point in the history
Forward port zendframework/zendframework#3342

Conflicts:
	library/Zend/File/Transfer/Adapter/AbstractAdapter.php
	library/Zend/File/Transfer/Adapter/Http.php
	library/Zend/File/Transfer/Transfer.php
	library/Zend/Http/Cookies.php
	library/Zend/Soap/Client.php
	library/Zend/Soap/Wsdl.php
	library/Zend/Stdlib/ErrorHandler.php
	library/Zend/Stdlib/Hydrator/ClassMethods.php
	library/Zend/Validator/File/Count.php
	library/Zend/Validator/File/Crc32.php
	library/Zend/Validator/File/ExcludeExtension.php
	library/Zend/Validator/File/ExcludeMimeType.php
	library/Zend/Validator/File/Exists.php
	library/Zend/Validator/File/Extension.php
	library/Zend/Validator/File/FilesSize.php
	library/Zend/Validator/File/Hash.php
	library/Zend/Validator/File/ImageSize.php
	library/Zend/Validator/File/Md5.php
	library/Zend/Validator/File/MimeType.php
	library/Zend/Validator/File/NotExists.php
	library/Zend/Validator/File/Sha1.php
	library/Zend/Validator/File/Size.php
	library/Zend/Validator/File/Upload.php
	library/Zend/Validator/File/WordCount.php
	tests/ZendTest/Validator/File/FilesSizeTest.php
  • Loading branch information
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Config implements Countable, Iterator, ArrayAccess
/**
* Whether modifications to configuration data are allowed.
*
* @var boolean
* @var bool
*/
protected $allowModifications;

Expand All @@ -52,7 +52,7 @@ class Config implements Countable, Iterator, ArrayAccess
* Used when unsetting values during iteration to ensure we do not skip
* the next element.
*
* @var boolean
* @var bool
*/
protected $skipNextIteration;

Expand All @@ -63,11 +63,11 @@ class Config implements Countable, Iterator, ArrayAccess
* on construction.
*
* @param array $array
* @param boolean $allowModifications
* @param bool $allowModifications
*/
public function __construct(array $array, $allowModifications = false)
{
$this->allowModifications = (boolean) $allowModifications;
$this->allowModifications = (bool) $allowModifications;

foreach ($array as $key => $value) {
if (is_array($value)) {
Expand Down Expand Up @@ -185,7 +185,7 @@ public function toArray()
* isset() overloading
*
* @param string $name
* @return boolean
* @return bool
*/
public function __isset($name)
{
Expand Down Expand Up @@ -276,7 +276,7 @@ public function rewind()
* valid(): defined by Iterator interface.
*
* @see Iterator::valid()
* @return boolean
* @return bool
*/
public function valid()
{
Expand All @@ -288,7 +288,7 @@ public function valid()
*
* @see ArrayAccess::offsetExists()
* @param mixed $offset
* @return boolean
* @return bool
*/
public function offsetExists($offset)
{
Expand Down Expand Up @@ -396,7 +396,7 @@ public function setReadOnly()
/**
* Returns whether this Config object is read only or not.
*
* @return boolean
* @return bool
*/
public function isReadOnly()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Factory
* Read a config from a file.
*
* @param string $filename
* @param boolean $returnConfigObject
* @param bool $returnConfigObject
* @return array|Config
* @throws Exception\InvalidArgumentException
* @throws Exception\RuntimeException
Expand Down Expand Up @@ -113,7 +113,7 @@ public static function fromFile($filename, $returnConfigObject = false)
* Read configuration from multiple files and merge them.
*
* @param array $files
* @param boolean $returnConfigObject
* @param bool $returnConfigObject
* @return array|Config
*/
public static function fromFiles(array $files, $returnConfigObject = false)
Expand Down
2 changes: 1 addition & 1 deletion src/Reader/ReaderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function fromFile($filename);
* Read from a string and create an array
*
* @param string $string
* @return array|boolean
* @return array|bool
*/
public function fromString($string);
}
2 changes: 1 addition & 1 deletion src/Writer/AbstractWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ abstract class AbstractWriter implements WriterInterface
* @see WriterInterface::toFile()
* @param string $filename
* @param mixed $config
* @param boolean $exclusiveLock
* @param bool $exclusiveLock
* @return void
* @throws Exception\InvalidArgumentException
* @throws Exception\RuntimeException
Expand Down
2 changes: 1 addition & 1 deletion src/Writer/Ini.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function setRenderWithoutSectionsFlags($withoutSections)
/**
* Return whether the writer should render without sections.
*
* @return boolean
* @return bool
*/
public function shouldRenderWithoutSections()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Writer/WriterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface WriterInterface
*
* @param string $filename
* @param mixed $config
* @param boolean $exclusiveLock
* @param bool $exclusiveLock
* @return void
*/
public function toFile($filename, $config, $exclusiveLock = true);
Expand Down

0 comments on commit ccf1c7e

Please sign in to comment.