CHANGELOG.md 8.9 KB

Changelog

1.6.1

This release fixes an issue in which annotations such as @foo-bar and @foo- were incorrectly recognised as valid, and both erroneously parsed as @foo.

Any annotation with @name-* format will now silently be ignored, allowing vendor-specific annotations to be prefixed with the tool name.

Total issues resolved: 3

1.6.0

This release brings a new endpoint that make sure that you can't shoot yourself in the foot by calling registerLoader multiple times and a few tests improvements.

Total issues resolved: 7

Thanks to everyone involved in this release.

1.5.0

This release increments the minimum supported PHP version to 7.1.0.

Also, HHVM official support has been dropped.

Some noticeable performance improvements to annotation autoloading have been applied, making failed annotation autoloading less heavy on the filesystem access.

1.4.0

This release fix an issue were some annotations could be not loaded if the namespace in the use statement started with a backslash. It also update the tests and drop the support for php 5.X

1.3.1 - 2016-12-30

This release fixes an issue with ignored annotations that were already autoloaded, causing the SimpleAnnotationReader to pick them up anyway. #110

Additionally, an issue was fixed in the CachedReader, which was not correctly checking the freshness of cached annotations when traits were defined on a class. #105

Total issues resolved: 2

1.3.0

This release introduces a PHP version bump. doctrine/annotations now requires PHP 5.6 or later to be installed.

A series of additional improvements have been introduced:

  • support for PHP 7 "grouped use statements"
  • support for ignoring entire namespace names via Doctrine\Common\Annotations\AnnotationReader::addGlobalIgnoredNamespace() and Doctrine\Common\Annotations\DocParser::setIgnoredAnnotationNamespaces(). This will allow you to ignore annotations from namespaces that you cannot autoload
  • testing all parent classes and interfaces when checking if the annotation cache in the CachedReader is fresh
  • simplifying the cache keys used by the CachedReader: keys are no longer artificially namespaced, since Doctrine\Common\Cache already supports that
  • corrected parsing of multibyte strings when mbstring.func_overload is enabled
  • corrected parsing of annotations when "\t" is put before the first annotation in a docblock
  • allow skipping non-imported annotations when a custom DocParser is passed to the AnnotationReader constructor

Total issues resolved: 15

1.2.4

Total issues resolved: 1

1.2.3

Total issues resolved: 2

1.2.2

Total issues resolved: 4

1.2.1

Total issues resolved: 4

1.2.0

  • HHVM support
  • Allowing dangling comma in annotations
  • Excluded annotations are no longer autoloaded
  • Importing namespaces also in traits
  • Added support for ::class 5.5-style constant, works also in 5.3 and 5.4

1.1.0

  • Add Exception when ZendOptimizer+ or Opcache is configured to drop comments