Преглед на файлове

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;
     }
 
     /**