Avg Release Cycle
372 days ago
- 🛠 Bugfixes
- ➕ Added special access paths for some magic methods
- Sort methods by line number after hierarchy
- Sort properties with strnatcasecmp instead of strcmp
- ➕ Added blacklist to ToString plugin, add SimpleXMLElement by default
- ✂ Removed the value representation from unknown types
- ✂ Removed object property reflection
- 🔌 Made some parser plugins opt-in:
- 🔌 Renderers can now alter parser plugins before parsing
- The text-based renderers now disable all the plugins they don't use ahead of time
- ➕ Added special access paths for more magic methods like
- ⬇️ Dropped automated testing of PHP 5.2
- 5.2 will be dropped when TravisCI drops it in april
- 5.1 and 5.2 are still technically supported, but since (hopefully) no-one uses those any huge bugs will be fixed on an as-reported basis.
- ➕ Added Kint::dumpArray to allow you to supply your own object seeds (Names and access paths) along with an array of data. Useful for integrating with other systems.
- This allows correct access paths for Kint::trace()
🛠 Most of this release is bugfixes, but there are a few notable changes.
- 👀 Disabled the binary, DOMNode, DOMIterator, and Serialize plugins. They're still there but you have to opt-in now. For reasons behind these choices see #244
- Max depth has been lowered to 6. Because Kint currently supplies much more information than v1 did it's also a bit slower. This is compounded by the constantly increasing interdependent hierarchies in use in modern PHP systems. Because the access paths are a thing in Kint 2 it's very easy to run a second dump to get deeper in, so this will barely make a dent for usability, but lowering the depth limit one level typically cuts runtime in 3!
- 🔌 There is now a
parserPluginsmethod on the
Kint_Rendererwhich can alter or supply a list of plugins for the parser to be initialized with. A whitelist on the text renderer makes use of this by disabling most of the plugins so text, cli, and plain dumps are fast.
- Dropped reference detection support below 5.2.1. This had been causing infinite loops since alpha2 and no-one noticed. /me clumsily foreshadows impending PHP version requirement bump