Migrating to v5
Overview
v5 is mostly a cleanup release with updated dependencies. The main changes are:
- Minimum required PHP version is now 7.4
- The legacy
TokenAnalyserand the--legacyCLI option have been removed - Defaults now prefer attributes over annotations
- PHP parsing now uses
nikic/php-parser - Removal of deprecated features
- empty/unused
ProcessorInterface Context::clone()andContext::detect()\Openapi\Generator::getProcessors()and\Openapi\Generator::setProcessors()
- empty/unused
For most installations upgrading should not require any changes.
Removed deprecated elements
\Openapi\Generator::getProcessors() and \Openapi\Generator::setProcessors()
Use getProcessorPipeline() and setProcessorPipeline(new Pipeline(...)) methods instead