Closed tkempf closed 6 months ago
There is also valid usage without named parameters
$media->manipulations = [
'default' => [
'border' => [
1,
BorderType::Expand,
'000000'
]
]
];
I see 2 solutions there:
BorderType::from($parameters['type'] ?? $parameters[1])
Obviously reflection would be better, but there performance concerns, so it needs benchmarking.
I could take over this issue as this also need for my use case
@tkempf thank you for your work!
@MrMeshok I'm going to already merge this PR, but if you have some more improvements on this topic I would be happy to look at a new PR from you.
Fixes Issue #3582