-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f67f25
commit a17b253
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,35 @@ | ||
# Changelog | ||
|
||
## [1.0.1] - 2018-04-21 | ||
|
||
* Use [`get_object_vars`](http://php.net/manual/en/function.get-object-vars.php) | ||
instead of [`ReflectionObject::getProperties`](http://php.net/manual/en/reflectionclass.getproperties.php) | ||
whenever object contains method [`__get`](http://php.net/manual/en/language.oop5.overloading.php#object.get) | ||
* In some cases method `LightVarDumper::dump` didn't work properly, because the following code triggers | ||
error `Notice: Undefined property: Foo::$a` in PHP ^7.0, fixed issue: | ||
|
||
``` | ||
class Foo | ||
{ | ||
private $a = 'a'; | ||
public function __construct() | ||
{ | ||
unset($this->a); | ||
} | ||
} | ||
$obj = new Foo(); | ||
$reflectionObj = new ReflectionObject($obj); | ||
$reflectionProp = $reflectionObj->getProperty('a'); | ||
$reflectionProp->setAccessible(true); | ||
$reflectionProp->getValue($obj); | ||
``` | ||
|
||
## [1.0.0] - 2018-01-10 | ||
|
||
This version contains the same source code as [0.12.0]. | ||
|
||
[1.0.1]: https://github.com/awesomite/var-dumper/compare/v1.0.0...v1.0.1 | ||
[1.0.0]: https://github.com/awesomite/var-dumper/tree/v1.0.0 | ||
[0.12.0]: https://github.com/awesomite/var-dumper/tree/v0.12.0 |