Fix #20191: Fix ActiveRecord::getDirtyAttributes() for JSON columns with multi-dimensional array values

This commit is contained in:
Brandon Kelly
2024-06-08 00:31:26 -07:00
committed by GitHub
parent 3fa2d61e54
commit 048eef42cd
3 changed files with 14 additions and 3 deletions

View File

@ -28,6 +28,10 @@ abstract class BaseActiveRecordTest extends DatabaseTestCase
['pineapple' => 2, 'apple' => 5, 'banana' => 1],
['pineapple' => 2, 'apple' => 3, 'banana' => 1],
],
'multi-dimensional array' => [
['foo' => ['c', 'b', 'a']],
['foo' => ['b', 'c', 'a']],
],
'filling an empty array' => [
[],