Преглед изворни кода

Add (Boolean) cast to constructor arguments

Sven Paulus пре 14 година
родитељ
комит
4948666c6a
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php

+ 2 - 2
src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php

@@ -44,8 +44,8 @@ class ProfilerListener
     {
         $this->container = $container;
         $this->matcher = $matcher;
-        $this->onlyException = $onlyException;
-        $this->onlyMasterRequests = $onlyMasterRequests;
+        $this->onlyException = (Boolean) $onlyException;
+        $this->onlyMasterRequests = (Boolean) $onlyMasterRequests;
     }
 
     /**