Skip to content

Commit

Permalink
Add not about Laravel 11's ensure() collection method.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed Mar 17, 2024
1 parent fd60dd0 commit f74a4c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
[![Tests](https://github.com/jeromegamez/typed-collection/actions/workflows/tests.yml/badge.svg)](https://github.com/jeromegamez/typed-collection/actions/workflows/tests.yml)
[![Sponsor](https://img.shields.io/static/v1?logo=GitHub&label=Sponsor&message=%E2%9D%A4&color=ff69b4)](https://github.com/sponsors/jeromegamez)

> [!NOTE]
> Laravel 11 added the `ensure()` collection method that verifies that all elements of
> a collection are of a given type or list of types. However, this verification does not
> prevent items of different types to be added at a later time.
## Installation

The package can be installed with [Composer]:
Expand Down

0 comments on commit f74a4c3

Please sign in to comment.