Skip to content

Commit

Permalink
Fix pdepend#317 (function create_function() is deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
emirb committed Nov 10, 2017
1 parent 9e71d47 commit 70dfc51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/php/PDepend/Report/Jdepend/Chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ public function close()
// Sort items by size
usort(
$items,
create_function('$a, $b', 'return ($a["size"] - $b["size"]);')
function ($a, $b) {
return ($a['size'] - $b['size']);
}
);

foreach ($items as $item) {
Expand Down

0 comments on commit 70dfc51

Please sign in to comment.