Skip to content

make:entity PHP 8 Attribute Support

Compare
Choose a tag to compare
@weaverryan weaverryan released this 27 Sep 14:32
· 579 commits to main since this release

Hi Makers!

This release contains various features - but one big one in particular! The ability to use make:entity to generate code using PHP 8 attributes. If you're using PHP 8 (and have recent enough versions of all the underlying libraries), MakerBundle should now generate attributes instead of annotations in all situations (if you an annotation is still generated somewhere, please open an issue).

Note: To use attribute with Doctrine, remove the type: annotation line in your config/packages/doctrine.yaml (or set it to attribute, but without any type, Doctrine will detect if attributes are supported).

September 27th, 2021

Feature

Bug Fix

Diff: v1.33.0...v1.34.0

Happy making!