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

Commit

Permalink
Merge pull request zendframework/zendframework#7412 from samsonasik/n…
Browse files Browse the repository at this point in the history
…ull-three

Use === and !== in null checks instead of == and !=
  • Loading branch information
weierophinney committed May 4, 2015
3 parents 8c0b6a1 + 364510b + 4d37c15 commit 28ec47f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public function getOptions()
unset($options[$key]);
}
} else {
if ($value == null) {
if ($value === null) {
unset($options[$key]);
}
}
Expand Down Expand Up @@ -1003,7 +1003,7 @@ protected function _initSoapClientObject()
$wsdl = $this->getWSDL();
$options = array_merge($this->getOptions(), array('trace' => true));

if ($wsdl == null) {
if ($wsdl === null) {
if (!isset($options['location'])) {
throw new Exception\UnexpectedValueException('"location" parameter is required in non-WSDL mode.');
}
Expand Down Expand Up @@ -1142,7 +1142,7 @@ public function call($method, $params = array())
*/
public function getFunctions()
{
if ($this->getWSDL() == null) {
if ($this->getWSDL() === null) {
throw new Exception\UnexpectedValueException(sprintf(
'%s method is available only in WSDL mode.',
__METHOD__
Expand All @@ -1161,7 +1161,7 @@ public function getFunctions()
*/
public function getTypes()
{
if ($this->getWSDL() == null) {
if ($this->getWSDL() === null) {
throw new Exception\UnexpectedValueException(sprintf(
'%s method is available only in WSDL mode.',
__METHOD__
Expand Down Expand Up @@ -1191,7 +1191,7 @@ public function setSoapClient(SoapClient $soapClient)
*/
public function getSoapClient()
{
if ($this->soapClient == null) {
if ($this->soapClient === null) {
$this->_initSoapClientObject();
}
return $this->soapClient;
Expand Down
2 changes: 1 addition & 1 deletion src/Wsdl.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ public function getTypes()
*/
public function getSchema()
{
if ($this->schema == null) {
if ($this->schema === null) {
$this->addSchemaTypeSection();
}
return $this->schema;
Expand Down

0 comments on commit 28ec47f

Please sign in to comment.