https://github.com/php-cs-fixer/accessibleobject
https://github.com/php-cs-fixer/accessibleobject
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/php-cs-fixer/accessibleobject
- Owner: PHP-CS-Fixer
- License: other
- Created: 2017-08-06T11:14:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-23T16:26:00.000Z (over 4 years ago)
- Last Synced: 2025-04-16T02:57:02.482Z (2 months ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 11
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AccessibleObject
`AccessibleObject` is small class allowing you to easily access internals of any object.
In general, it's bad practice to do so.
While we strongly discourage you to using it, it may be helpful in debugging or testing old, sad, legacy projects.# Example
```PHP
bar; // PHP Fatal error: Uncaught Error: Cannot access private property Foo::$bar$accessibleObject = new AccessibleObject($object);
echo $accessibleObject->bar; // 'baz'
```