Fix Uncaught TypeError: array_fill(): Argument #2 ($count) must be of type int, string#16919
Conversation
|
Hi @freax |
|
Hi @williamdes |
Do you have configuration storage enabled ? (PHP 8 works fine, even PHP 8.1. So there is something more to discover ;) ) I am trying to pin point the issue to add an unit test afterwards |
Yep! Configuration storage enabled! May be, this is because of upgrading PhpMyAdmin version with old configuration storage tables from previous versions of PhpMyAdmin. Now I using fresh 5.2+ snapshot. This PR will save backwards compatibility from previous versions. |
…must be of type int, string Co-Authored-by: William Desportes <williamdes@wdes.fr> Signed-off-by: William Desportes <williamdes@wdes.fr>
405710a to
822dce2
Compare
williamdes
left a comment
There was a problem hiding this comment.
Thank you !
I rebased this on QA_5_1 to have it in the next 5.1 version and added tests.
Codecov Report
@@ Coverage Diff @@
## QA_5_1 #16919 +/- ##
=========================================
Coverage 56.45% 56.45%
Complexity 15266 15266
=========================================
Files 471 471
Lines 62057 62057
=========================================
Hits 35037 35037
Misses 27020 27020
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Pull-request: #16919 Signed-off-by: William Desportes <williamdes@wdes.fr>
|
Just built the snapshots, you can now enjoy your fix :) |
Description
This PR resolving following issue:
PHP Fatal error: