<?php array_splice( array &$array, int $offset, ?int $length = null, mixed $replacement = []): array
<?php $cache->delete($cachePath); } return $size ? array_splice($size, 0, 2) : [0, 0]; }
<?php $realpath = Storage::disk('test')->getAdapter()->getPathPrefix().'path/to/asset.jpg'; $this->assertFileExists($realpath); $imagesize = getimagesize($realpath); $this->assertEquals([30, 60], array_splice($imagesize, 0, 2)); $dimensions = $this->dimensions->asset($asset);