Skip to content

PHP 8.1

Jiří Pudil requested to merge php81 into 9-readme

Adds support for

  1. Intersection types:

    ->field('countableCollection', intersection(generic(Traversable::class, 'string'), Countable::class))
  2. Enum ClassType resolution:

    ->field('enumValue', LookMaIAmEnum::class)
  3. Readonly properties:

    ->decorate(new ReadonlyDecorator())

Draft = waits for PHP 8.1 support in PHPStan

cc @jkuchar1 @dkurowski

Edited by Jiří Pudil

Merge request reports

Loading