Skip to content

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Smoren committed Mar 12, 2024
1 parent 093d621 commit f332964
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Interfaces/ArrayViewInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ public static function toView(&$source, ?bool $readonly = null): ArrayViewInterf
/**
* Creates an unlinked from source ArrayView instance from the given source array or ArrayView.
*
* * If the source is not an ArrayView, a new ArrayView is created with the provided source.
* * If the source is an ArrayView and the `readonly` parameter is specified as `true`,
* a new readonly ArrayView is created.
* * If the source is an ArrayView and it is already readonly, the same ArrayView is returned.
* * If the source is not an ArrayView, a new ArrayView is created with the provided source.
* * If the source is an ArrayView and the `readonly` parameter is specified as `true`,
* a new readonly ArrayView is created.
* * If the source is an ArrayView and it is already readonly, the same ArrayView is returned.
*
* @param array<T>|ArrayViewInterface<T> $source The source array or ArrayView to create a view from.
* @param bool|null $readonly Optional flag to indicate whether the view should be readonly.
Expand Down

0 comments on commit f332964

Please sign in to comment.