Skip to content

ArrayEdits ​

php
final readonly class Zairakai\LaravelDevTools\Services\Spread\ArrayEdits implements SpreadEdits

The arrays to write on several lines: every array that is not empty, written with brackets, that is not a destructuring.

Source: src/Services/Spread/ArrayEdits.php

Methods ​

edits() ​

php
public function edits(array $nodes, array $lines, string $source): array

Returns list<array{start: int, end: int, text: string}>

Documentation of 5.5.0 , built from 92a7387 on 5.5.0 by pipeline #3086393151 on 2026-11-18.