Skip to content

Commit 6ebe855

Browse files
committed
Changed implementation of debug_backtrace() to reduce memory consumption. Thanks @saernz!
Fixes #351
1 parent 7e7f527 commit 6ebe855

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.8.6] - 2020-05-12
8+
### Changed
9+
- implementation of `debug_backtrace()` to reduce memory consumption. Thanks @saernz!
10+
711
## [0.8.5] - 2020-05-02
812
### Changed
913
- PHP dependency version to ">=7.2.5" to be more inline with Laravel.

src/Traits/Buildable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public function value($column)
220220

221221
public function cachedValue(array $arguments, string $cacheKey)
222222
{
223-
$method = debug_backtrace()[1]['function'];
223+
$method = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)[1]['function'];
224224
$cacheTags = $this->makeCacheTags();
225225
$hashedCacheKey = sha1($cacheKey);
226226
$result = $this->retrieveCachedValue(

0 commit comments

Comments
 (0)