An open API service indexing awesome lists of open source software.

https://github.com/php-cs-fixer/accessibleobject


https://github.com/php-cs-fixer/accessibleobject

Last synced: 2 months ago
JSON representation

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'
```