瀏覽代碼

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