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/7412'
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed May 4, 2015
3 parents 5c62ab3 + 4926961 + 1f39226 commit ae6d7f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Definition/CompilerDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function addDirectoryScanner(DirectoryScanner $directoryScanner)
*/
public function addCodeScannerFile(FileScanner $fileScanner)
{
if ($this->directoryScanner == null) {
if ($this->directoryScanner === null) {
$this->directoryScanner = new DirectoryScanner();
}

Expand Down Expand Up @@ -185,7 +185,7 @@ protected function processClass($class)

$def['supertypes'] = $supertypes;

if ($def['instantiator'] == null) {
if ($def['instantiator'] === null) {
if ($rClass->isInstantiable()) {
$def['instantiator'] = '__construct';
}
Expand Down
2 changes: 1 addition & 1 deletion src/Definition/RuntimeDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ protected function processClass($class, $forceLoad = false)

$def['supertypes'] = array_keys(array_flip($supertypes));

if ($def['instantiator'] == null) {
if ($def['instantiator'] === null) {
if ($rClass->isInstantiable()) {
$def['instantiator'] = '__construct';
}
Expand Down

0 comments on commit ae6d7f5

Please sign in to comment.