Skip to content

Commit

Permalink
1. DataStore: Change clone() function name to makeCopy() to avo…
Browse files Browse the repository at this point in the history
…id reserved keywords `clone` in PHP 5.x
  • Loading branch information
dongnl committed Feb 15, 2019
1 parent 7d697f3 commit d56917a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## Version 3.25.4

1. `DataStore`: Change `clone()` function name to `makeCopy()` to avoid reserved keywords `clone` in PHP 5.x

## Version 3.25.3

1. `Table`: Fix Table warning in PHP 7.2+ when grouping is not set
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

# Changelog

* [Version 3.25.4 (Feb 15th, 2019)](https://www.koolreport.com/docs/koolreport/change_log/#version-3.25.4)
* [Version 3.25.3 (Feb 14th, 2019)](https://www.koolreport.com/docs/koolreport/change_log/#version-3.25.3)
* [Version 3.25.1 (Feb 13rd, 2019)](https://www.koolreport.com/docs/koolreport/change_log/#version-3.25.1)
* [Version 3.25.0 (Feb 11st, 2019)](https://www.koolreport.com/docs/koolreport/change_log/#version-3.25.0)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "koolphp/koolreport",
"version":"3.25.3",
"version":"3.25.4",
"description": "An Open Source PHP Reporting Framework for easier and faster report delivery.",
"keywords": ["php reporting framework","php reporting tools","data processing","data visualization","charts and graphs"],
"homepage": "https://www.koolreport.com",
Expand Down
4 changes: 2 additions & 2 deletions src/core/DataStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -1159,11 +1159,11 @@ private function _mapKeyIndex($arr,$keys)
}

/**
* Map Key Index
* Make a copy of this datastore
*
* @return DataStore The clone of this datastore
*/
public function clone()
public function makeCopy()
{
return new DataStore($this->rows, $this->metaData);
}
Expand Down

0 comments on commit d56917a

Please sign in to comment.