Skip to content

Latest commit

 

History

History
38 lines (35 loc) · 599 Bytes

migrate5to6.md

File metadata and controls

38 lines (35 loc) · 599 Bytes

Migrate 5 to 6

Change pipe format in map:

// 5
$mapOld = [
    'active' => [
        'pipe' => [
            [
                'populate' => 'boolval',
                'extract' => 'boolval',
            ]
        ]
    ],
    'email' => [
        'pipe' => [
            'strtolower'
        ]
    ],
];

// 6
$mapNew = [
    'active' => [
        'pipe-populate' => [
            'boolval',
        ],
        'pipe-extract' => [
             'boolval',
        ]
    ],
    'email' => [
        'pipe-populate' => ['strtolower'],
        'pipe-extract' => ['strtolower'],
    ],
];