Bootstrap Array to String conversion fix #145 #146
Merged
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.
Hey There,
as reviewing your extension I came across some bugs. One of them being the bootstrap bug.
Yii2 allows multidimensional arrays to be put into the application's bootstrap (see http://www.yiiframework.com/doc-2.0/yii-filters-contentnegotiator.html)
When this type of bootstrap is used the application will spit out 'Array to String conversion' errors.
In order to fix this you can change a single line of code found in Bootstrap.php lines 28 to 32.
(original:
yii2-audit/src/Bootstrap.php
Line 31 in a845ba3
Hope this helps anyone 👍