Skip to content

Conversation

jeromegamez
Copy link
Owner

@jeromegamez jeromegamez commented Mar 15, 2025

  • Dropped support for Laravel 10 and PHP 8.1
  • Added support for Laravel 12

Breaking Changes

The $allowedTypes static property is now typed:

class People extends TypedCollection
{
-     protected static $allowedTypes = [Person::class];
+     protected static array $allowedTypes = [Person::class];
}

If you're using PHPStan, you will need to add annotations accordingly

+ /**
+  * @extends TypedCollection<array-key, int|string|Person>
+  */
class MixedItemCollection extends TypedCollection
{
    protected static array $allowedTypes = ['int', 'string', Person::class];
}

@jeromegamez jeromegamez merged commit ea72141 into main Mar 17, 2025
5 checks passed
@jeromegamez jeromegamez deleted the 8.0 branch March 17, 2025 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant