fikoborizqy / noobject
Not Only Object will return NULL instead of error for undefined property.
1.1
2024-06-12 08:06 UTC
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2025-03-12 09:50:30 UTC
README
It's an object that will return what it's value (only if it has value), but returns NULL if no property or no method found on this object. In an ordinary object you will get an error when calling an undefined property or method, that is why this repo was created, to resolve that problem.
How to Use?
Via Composer
Please see example/composer.php
example
Manually
Please see example/manual.php
example
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.