minor #12371 [ClassLoader] Cast $useIncludePath property to boolean (GeertDD)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #12371).
Discussion
----------
[ClassLoader] Cast $useIncludePath property to boolean
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
Commits
-------
32001a4
[ClassLoader] Cast $useIncludePath property to boolean
This commit is contained in:
commit
495cba6e07
@ -107,7 +107,7 @@ class ClassLoader
|
|||||||
*/
|
*/
|
||||||
public function setUseIncludePath($useIncludePath)
|
public function setUseIncludePath($useIncludePath)
|
||||||
{
|
{
|
||||||
$this->useIncludePath = $useIncludePath;
|
$this->useIncludePath = (bool) $useIncludePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -74,7 +74,7 @@ class UniversalClassLoader
|
|||||||
*/
|
*/
|
||||||
public function useIncludePath($useIncludePath)
|
public function useIncludePath($useIncludePath)
|
||||||
{
|
{
|
||||||
$this->useIncludePath = $useIncludePath;
|
$this->useIncludePath = (bool) $useIncludePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user