PHP 8.1
Adds support for
-
Intersection types:
->field('countableCollection', intersection(generic(Traversable::class, 'string'), Countable::class))
-
Enum
ClassType
resolution:->field('enumValue', LookMaIAmEnum::class)
-
Readonly properties:
->decorate(new ReadonlyDecorator())
Draft = waits for PHP 8.1 support in PHPStan
Edited by Jiří Pudil