Fatal error: Redefinition of parameter $request : <p>I have a strange error here. I am building a REST API with Slim framework.</p>

<pre><code> $app-&gt;post('/createuser', function(Request $request, Response $request){

    if(!haveEmptyParameters(array('email', 'password', 'name', 'school'), $response)){
        $request_data = $request-&gt;getParseBody();

        $email = $request_data['email'];
        $password = $request_data['password'];
        $name = $request_data['name'];
        $school = $request_data['school']; ...
</code></pre>

<p>The Error:</p>

<pre><code>Fatal error: Redefinition of parameter $request in /Applications/XAMPP/xamppfiles/htdocs/RestAPIwithSLIM/public/index.php on line 17
</code></pre>

<p>I DO NOT know which paramater is missing on this post function.</p>

<p>Any thoughts?</p>
