Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rector] Apply Doctrine ORM 2.9 SetList #104

Merged
merged 4 commits into from
Aug 27, 2021

Conversation

samsonasik
Copy link
Contributor

@samsonasik samsonasik commented Aug 26, 2021

  • update latest rector 0.11.51
  • menerapkan Doctrine ORM 2.9 Rector SetList untuk migrasi dari annotation ke attribute
  • menerapkan symfony 5.2 set
  • re-run rector.

@ad3n
Copy link
Contributor

ad3n commented Aug 27, 2021

mas @samsonasik bisa ga sekalian router-nya juga pakai attributes?

@samsonasik
Copy link
Contributor Author

Ok mas, sudah diterapkan dengan symfony-5.2 set 3ebe170 👍

@samsonasik samsonasik force-pushed the apply-doctrine-orm-29-setlist branch from 3ebe170 to 4efaef2 Compare August 27, 2021 10:02
@samsonasik
Copy link
Contributor Author

rebased, re-run rector.

@ad3n
Copy link
Contributor

ad3n commented Aug 27, 2021

Mantap mas @samsonasik, cuma kok blank line code-nya juga ikutan ilang mas... Padahal itu untuk memudahkan dalam membaca codenya... Kayaknya terlalu strict mas rules-nya

$audit = $this->audit->getAudits($entity, $id)->toArray();
$class = new ReflectionClass(ApiClient::class);
$context = StringUtil::lowercase($class->getShortName());

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blank line seharusnya ga ilang mas @samsonasik

Copy link
Contributor Author

@samsonasik samsonasik Aug 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iya, kelemahan Ast disitu https://github.com/rectorphp/rector#known-drawbacks . Harus pakai coding standard tool

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rectorphp/rector#5447

Iya udah dibahas di sini juga (ada yang complain juga... Bagusnya bagaimana ya mas? Kalau harus ngerapiin satu2 agak sulit juga mas

Copy link
Contributor Author

@samsonasik samsonasik Aug 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Saya coba run php-cs-fixer dengan @Symfony rules 7a9e757

php-cs-fixer fix lib --rules=@Symfony

Hasilnya: 7a9e757

Kalau ada cs-fixer lain boleh mas dicoba, atau bisa juga pakai easy-coding-standard https://github.com/symplify/easy-coding-standard

@samsonasik samsonasik force-pushed the apply-doctrine-orm-29-setlist branch from 4efaef2 to fea452b Compare August 27, 2021 12:21
@ad3n
Copy link
Contributor

ad3n commented Aug 27, 2021

mas @samsonasik setidaknya return-nya ga gabung, untuk yang lain bisa sambil jalan nanti dirapikan...

@ad3n ad3n merged commit 0f9c656 into KejawenLab:main Aug 27, 2021
@samsonasik samsonasik deleted the apply-doctrine-orm-29-setlist branch August 27, 2021 12:32
@ad3n
Copy link
Contributor

ad3n commented Aug 27, 2021

Maaf mas @samsonasik saya revert karena ternyata bundle extension doctrine belum support attribute

@samsonasik
Copy link
Contributor Author

ok mas 👍

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.

2 participants