title: Conert Php 5.6 to 7.2 getting error - Too few arguments to function Mymodel::mymodelfunction(), 0 passed in
body: <p>My project running on <code>PHP 5.6</code>. 
  But now I need to covert this project in <code>PHP 7.2</code>.
  So when I converted it in <code>PHP 7.2</code> then I have facing argument initialization error</p>
  
  <blockquote>
    <p>"Too few arguments to function Mymodel::mymodelfunction(), 0 passed in"</p>
  </blockquote>
  
  <p>Because this argument is not defined as the default value. </p>
  
  <p>This is not working on local environments give the same error.</p>
  
  <p>But when I run this code in the server then this is working fine.</p>
  
  <p>So please suggest me,
  what can I do in local environments to strict error reporting.</p>