Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Repository files navigation

Finalize

Note: this package might be added to https://github.com/rectorphp/swiss-knife, as it covers multiple useful scripts.

Finalize classes in a safe way. We first look for those, that should be skipped:

  • classes who are in parent position
  • Doctrine entities by docblocks and attribute

Install

composer require tomasvotruba/finalize --dev

Usage

vendor/bin/finalize finalize src tests

It will:

  1. generate finalize.json file in your temp directory with all found classes, that should be skipped
  2. it will go through your files and finalize every class, that is not in this list

Happy coding!

About

Safe way to finalize PHP - find classes with children, entities first to create guard map, finalize rest then with Rector

Resources

Stars

Watchers

Forks

Releases

Used by

Contributors

Languages