We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you set some context, and then log it more than StickyContextStack::$recursionLimit times, the context is lost.
StickyContextStack::$recursionLimit
Test case:
public function test_it_can_retain_sticky_data() { $stack = new StickyContextStack(); StickyContextStack::$recursionLimit = 3; $stack->add('username', 'aryastark'); $this->assertEquals(['username' => 'aryastark'], $stack->all()); $this->assertEquals(['username' => 'aryastark'], $stack->all()); $this->assertEquals(['username' => 'aryastark'], $stack->all()); // fails $this->assertEquals(['username' => 'aryastark'], $stack->all()); }
Output:
Time: 19 ms, Memory: 4.00 MB There was 1 failure: 1) StickyContextStackTest::test_it_can_retain_sticky_data Failed asserting that two arrays are equal. --- Expected +++ Actual @@ @@ Array ( - 'username' => 'aryastark' )
Looking at the code, it never resets the counter anywhere.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you set some context, and then log it more than
StickyContextStack::$recursionLimit
times, the context is lost.Test case:
Output:
Looking at the code, it never resets the counter anywhere.
The text was updated successfully, but these errors were encountered: