rectorphp/rector-doctrine

RectoreRule to force jsonb for all JSON fields

alexander-schranz opened this issue ยท 2 comments

Before:

    #[ORM\Column(type: Types::JSON, nullable: true)]

After:

    #[ORM\Column(type: Types::JSON, nullable: true, options: ['jsonb' => true])]

The JSONB is the modern json type for postgresql and is mostly the type you want to use. It would nice to have a rector rule for it to force it in a project.

Hi, seems valid addition to Doctrine set :)
We don't plan any such rule. Would you like to contribute it?

We're narrowing issues to keep focus on active and engaging contributor to keep project growing.
Closing for lack of activity last 3 months :) Thank you for understanding.

Feel free to re-open with the PR ๐Ÿ‘