Skip to content

4.0.0

Compare
Choose a tag to compare
@laminas-bot laminas-bot released this 30 Dec 16:16
· 349 commits to 4.17.x since this release
4.0.0
28a6d70

4.0.0 - 2020-12-30

Added

Changed

  • laminas/laminas-code#57 due to internal refactoring
    requiring better internal types, the minimum supported PHP version is now 7.4
  • BC BREAK laminas/laminas-code#38 changed generated class
    output to no longer contain excessive whitespace around contents. The structure of the generated output
    will still be the same, but spacing changed, which will likely lead o breakages if you
    are asserting/depending upon the strings produced by Laminas\Code\Generator\ClassGenerator#generate()
  • BC BREAK laminas/laminas-code#42 declare() statements
    will now be generated above namespace declarations: this is to be better compliant with PSR-2, but it
    may break downstream applications if these rely on the stability of code produced
    by Laminas\Code\Generator\FileGenerator#generate()

Removed

  • BC BREAK zendframwork/zend-code#153 Removed
    the annotation API from the library
  • BC BREAK laminas/laminas-code#39 the
    laminas/laminas-zendframework-bridge has been removed, and is instead to be installed optionally
    by consumers of the library. If you are still migrating from zendframework/zend-code, you will
    need to add it to your composer.json yourself, or directly use to Laminas\Code symbols.
  • BC BREAK laminas/laminas-code#58 the Scanner
    and Annotation components have been removed, and with it all API that interacted with it:
    • Laminas\Code\Generator\FileGeneratorRegistry has been deleted
    • Laminas\Code\Generator\FileGenerator::fromReflectedFileName() was removed
    • Laminas\Code\Generator\FileGenerator::fromReflection() was removed
    • Laminas\Code\NameInformation has been deleted
    • Laminas\Code\Reflection\ReflectionInterface was marked @internal
    • Laminas\Code\Reflection\FileReflection has been deleted
    • Laminas\Code\Generic\Prototype\PrototypeInterface was marked @internal
    • Laminas\Code\Generic\Prototype\PrototypeClassFactory was marked @internal
    • Laminas\Code\Generic\Prototype\PrototypeGenericInterface was marked @internal
    • Laminas\Code\Annotation\AnnotationInterface has been deleted
    • Laminas\Code\Annotation\Parser\GenericAnnotationParser has been deleted
    • Laminas\Code\Annotation\Parser\ParserInterface has been deleted
    • Laminas\Code\Annotation\Parser\DoctrineAnnotationParser has been deleted
    • Laminas\Code\Annotation\AnnotationManager has been deleted
    • Laminas\Code\Annotation\AnnotationCollection has been deleted
    • Laminas\Code\Scanner\ValueScanner has been deleted
    • Laminas\Code\Scanner\DirectoryScanner has been deleted
    • Laminas\Code\Scanner\DocBlockScanner#$nameInformation was removed
    • Laminas\Code\Scanner\DocBlockScanner#$annotationManager was removed
    • Laminas\Code\Scanner\DocBlockScanner#$annotations was removed
    • Laminas\Code\Scanner\DocBlockScanner#getAnnotations() was removed
    • Laminas\Code\Scanner\DocBlockScanner was marked @internal
    • Laminas\Code\Scanner\ConstantScanner has been deleted
    • Laminas\Code\Scanner\FunctionScanner has been deleted
    • Laminas\Code\Scanner\AnnotationScanner has been deleted
    • Laminas\Code\Scanner\DerivedClassScanner has been deleted
    • Laminas\Code\Scanner\ClassScanner has been deleted
    • Laminas\Code\Scanner\AggregateDirectoryScanner has been deleted
    • Laminas\Code\Scanner\TokenArrayScanner has been deleted
    • Laminas\Code\Scanner\ParameterScanner has been deleted
    • Laminas\Code\Scanner\FileScanner has been deleted
    • Laminas\Code\Scanner\PropertyScanner has been deleted
    • Laminas\Code\Scanner\CachingFileScanner has been deleted
    • Laminas\Code\Scanner\ScannerInterface has been deleted
    • Laminas\Code\Scanner\MethodScanner has been deleted
    • Laminas\Code\Scanner\Util has been deleted

Release Notes for 4.0.0

next backward compatibility break release (major)

4.0.0

  • Total issues resolved: 21
  • Total pull requests resolved: 13
  • Total contributors: 9

Enhancement

BC Break,Enhancement

Duplicate,Enhancement

Bug

Bug,Unit Test Needed

Awaiting Author Updates,BC Break

Bug,Duplicate,Won't Fix

Bug,Won't Fix

Question,Won't Fix

Enhancement,Won't Fix

BC Break,Enhancement,Question