Support the ongoing development of Laravel.io →
Requests Input

Hi

I have developed an app on L4 and I taken strange error..

Examle in unit test

        public function testWithNestedCategoiesSelectOneWhichIsNotRelation()
        {
            $categories = $this->createNestedCategory();
                      
            $data = [
                'category' => [ 0 =>'1',1 => '0' ],
                'product'   => 1, // this value causes the error..
            ];
          
            
            $res = $this->action('POST', 'Muratsplat\mvc\controller\front\DownloadController@postFilter',array(), $data); // İt  is failed at the point..
            
            $this->assertResponseOk();   
            
            $this->assertViewHasAll(['options', 'selects']);
            
            $options = $res->original['options'];
            
            $this->assertNotEmpty($options);
            
            $this->assertCount(2, $options);              
         
        }
        

Error message: Maximum function nesting level of '100' reached, aborting! Symfony\Component\Debug\Exception\FatalErrorException …/­vendor/­symfony/­http-foundation/­Symfony/­Component/­HttpFoundation/­ParameterBag.php106

This error is getting when client send request with this post data :

$post = [
    category[]:2,
    category[]:9,
    product:1,
];
Last updated 2 years ago.
0

This error of reason is a method calling self in a controller... I'm sorry. I thinks would I have a break work..

0

Sign in to participate in this thread!

Eventy

Your banner here too?

muratodunc muratodunc Joined 14 Feb 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.