Skip to content

Commit

Permalink
Fix population of arguments (#12)
Browse files Browse the repository at this point in the history
* Fix population of arguments

* Modify CHANGELOG
  • Loading branch information
AlanHatch authored and ajgarlag committed Apr 10, 2019
1 parent 81b9eee commit 5ee9c7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased][unreleased]

### Fixed
- Population of `$arguments` variable
- Usage of deprecated classes

## [0.3.2] - 2018-12-10
Expand Down
3 changes: 2 additions & 1 deletion src/BreakpointExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public function getFunctions()
public function setBreakpoint(Environment $environment, $context)
{
if (function_exists('xdebug_break')) {
$arguments = array_slice(func_get_args(), 2);
$arguments = func_get_args();
$arguments = array_slice($arguments, 2);
xdebug_break();
}
}
Expand Down

0 comments on commit 5ee9c7e

Please sign in to comment.