[ClassLoader] Cast $useIncludePath property to boolean

This commit is contained in:
Geert De Deckere 2014-11-01 13:21:25 +01:00 committed by Fabien Potencier
parent ef0bf427b5
commit 32001a44a1
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ class ClassLoader
*/ */
public function setUseIncludePath($useIncludePath) public function setUseIncludePath($useIncludePath)
{ {
$this->useIncludePath = $useIncludePath; $this->useIncludePath = (bool) $useIncludePath;
} }
/** /**

View File

@ -74,7 +74,7 @@ class UniversalClassLoader
*/ */
public function useIncludePath($useIncludePath) public function useIncludePath($useIncludePath)
{ {
$this->useIncludePath = $useIncludePath; $this->useIncludePath = (bool) $useIncludePath;
} }
/** /**