Upgrade Kint to 5, stop overriding d() function in favor of new function ddb() #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The amount of deprecation notices that may be raised by Kint 1.x is getting annoyingly high as of PHP 8.1. Which also means it will straight up stop working some day on new PHP versions.
This PR upgrades to Kint 5. It also makes some other big changes:
ddb()
serving the same purpose as the old d(). The README has been updated to note this change. The README is also updated to show that choosing between Debug Bar and inline output is now most easily done by choosing betweenddb()
(Debug Bar) andd()
(inline). This was primarily to allow the next change:There are also some other less notable changes, such as type declarations where I thought it would make sense, and adding dump functions to Kint's alias list so that they are omitted from Kint's backtrace output.
Since some of these changes are breaking - plus, the change from Kint 1.x to 5.x - I have also marked the plugin as version 2.0.0 in its PHP file, and would suggest marking a release as such.