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,
];
This error of reason is a method calling self in a controller... I'm sorry. I thinks would I have a break work..
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community