Remove superfluous string casts
parent
33e872d7d3
commit
eb5c785dcd
|
@ -235,7 +235,7 @@ class Pool
|
||||||
*/
|
*/
|
||||||
public function whatProvides($name, LinkConstraintInterface $constraint = null, $mustMatchName = false)
|
public function whatProvides($name, LinkConstraintInterface $constraint = null, $mustMatchName = false)
|
||||||
{
|
{
|
||||||
$key = ((string) (int) $mustMatchName).((string) $constraint);
|
$key = ((int) $mustMatchName).$constraint;
|
||||||
if (isset($this->providerCache[$name][$key])) {
|
if (isset($this->providerCache[$name][$key])) {
|
||||||
return $this->providerCache[$name][$key];
|
return $this->providerCache[$name][$key];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue