- The package is now PHP 8 only
- The
ClassPropertyProcessor
interface was renamed toTypeProcessor
and now takes a union of reflection objects - In the config:
searchingPath
was renamed toautoDiscoverTypes
classPropertyReplacements
was renamed todefaultTypeReplacements
- Collectors now only have one method:
getTransformedType
which should- return
null
when the collector cannot find a transformer - return a
TransformedType
from a suitable transformer
- return
- Transformers now only have one method:
transform
which should- return
null
when the transformer cannot transform the class - return a
TransformedType
if it can transform the class
- return
- In Writers the
replaceMissingSymbols
method was removed and areplacesSymbolsWithFullyQualifiedIdentifiers
withbool
as return type was added - The DTO transformer was completely rewritten, please take a look at the docs how to create you own
- The step classes are now renamed to actions
Laravel
- In the Laravel config:
searching_path
is renamed toauto_discover_types
class_property_replacements
is renamed todefault_type_relacements
writer
andformatter
were added
- You should replace the
DefaultCollector::class
with theDefaultCollector::class
- It is not possible anymore to convert one file to TypeScript via command