Browse files

Bug #20025: Use null to differenciate between not set or empty.

  • Loading branch information...
1 parent a213342 commit 25adec5a84a9e61ef53cbcc8b4ea9fc7c5cf93dd @opi99 opi99 committed Jul 30, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 VersionControl/SVN/Command.php
View
10 VersionControl/SVN/Command.php
@@ -168,28 +168,28 @@
*
* @var string $username
*/
- public $username = '';
+ public $username = null;
/**
* Default password to use for connections.
*
* @var string $password
*/
- public $password = '';
+ public $password = null;
/**
* Default config-dir to use for connections.
*
* @var string $configDir
*/
- public $configDir = '';
+ public $configDir = null;
/**
* Default config-option to use for connections.
*
* @var string $configOption
*/
- public $configOption = '';
+ public $configOption = null;
/**
* SVN subcommand to run.
@@ -376,7 +376,7 @@ protected function preProcessSwitches()
protected function fillSwitch($switchName, $value)
{
if (!isset($this->switches[$switchName])
- && '' !== $value
+ && null !== $value
) {
$this->switches[$switchName] = $value;
}

0 comments on commit 25adec5

Please sign in to comment.