title: Laravel 3 - PHP Warning: in_array() expects parameter 2 to be array
body: <p>I am working with a code that was not written by me. It is a Laravel 3 application, it is giving me the following error:</p>
  <blockquote>
  <p>PHP Warning:  in_array() expects parameter 2 to be array, null given in /Users/use/Documents/project/laravel/error.php on line 87</p>
  </blockquote>
  <p>Can you give me pointers on how to debug it? It is giving error in the file which was included in the framework. Also I using the php's inbuilt server to run the application. Does that cause problems? Any pointers are helpful.</p>
  <p>PS: I am on a mac.</p>