Releases: doctrine/common
v2.7.1
This release fixes an issue that prevented the proxy generator from generating valid
proxies when running under PHP 7.0.* and encountering following type of method
signature:
public function foo(SomeClass $bar = null, $baz) {}
Total issues resolved: 4
- 751: Error in generated Entity Proxy class
- 752: Fix #751: non optional type hinted parameters pre 7.1 support
- 753: Fix #751 - backport #752 - proxy generation broken on non-optional parameters with default value
- 754: Fix #751 - backport #752 - proxy generation broken on non-optional parameters with default value
v2.7.0
This release introduces support for PHP 7.1 functionality, specifically:
- nullable parameter and return types
void
hint supportiterable
hint support
In addition to that, performance improvements were introduced in the FileDriver
,
and minor cleanups were performed all over the codebase.
Total issues resolved: 11
- 394: Improve FileDriver Mapping data retrieval by caching results locally
- 706: Travis-CI: drop PHP 7.0 from allowed failures, it passes well
- 719: Improve the phpdoc of ObjectRepository
- 720: Fixed detection of identifier getter with PHP 7 return type
- 721: Small improvements from humbug mutation testing discoveries
- 724: Upgrade PHPUnit and PHP version dependencies
- 725: Removing useless incremental of the current exporting level from debug exporter
- 729: Util\Debug: export parent class private attributes and DateTimeImmutable
- 731: Support nullable types (PHP 7.1) in ProxyGenerator
- 734: ProxyGenerator: Added support for PHP 7.1 features
- 743: Fix parameter/return type validation for interfaces (introduced in #734)
v2.6.2
v2.6.1
v2.5.3
v2.6.0
Release Notes - Doctrine Common - Version 2.6.0
Bug
- DCOM-299 - GH-383 Silence chmod() warnings
- DCOM-301 - GH-384 Fixed bug with getAllClassNames() in subdirectories
- DCOM-303 - GH-387 Fixed fatal error in AbstractManagerRegistry
Documentation
- DCOM-285 - GH-366 Update DefaultFileLocator.php to reflect that file extension should include a dot
- DCOM-304 - GH-388 Update LICENSE
Improvement
- DCOM-289 - GH-373 composer: bump to PHPUnit 4.7
- DCOM-296 - GH-380 Add .gitattributes (fixes #379)
- DCOM-298 - GH-382 Minor CS fixes in StaticReflectionProperty
- DCOM-305 - GH-389 composer: use PSR-4 autoload
- DCOM-306 - GH-390 composer: drop duplicated "archive"
New Feature
v2.5.2
v2.5.0
Doctrine Common 2.5.0 Release
We are happy to announce the immediate availability of Doctrine Common 2.5.0
.
Installation
You can install this version of Doctrine Common by using Composer and the
following composer.json
contents:
{
"require": {
"doctrine/common": "2.5.0"
}
}
Changes since 2.4.x
This is a list of issues solved in 2.5.0
since 2.4.x
:
Bug
- DCOM-129 - Annotation parser matches colon after annotation
- DCOM-151 - GH-233 [DocParser] Fix trying include classes if its must be ignored.
- DCOM-162 - GH-244 return parameter for debug method
- DCOM-168 - ignoredAnnotationNames doesn't work in Annotation loop
- DCOM-175 - Proxies return private properties in __sleep, which is not supported by PHP.
- DCOM-191 - Wrong inflection for "identity"
- DCOM-212 - GH-296 Proxies shouldn't serialize static properties in __sleep()
- DCOM-216 - GH-298 Silence E_NOTICE warning: "Undefined index".
- DCOM-220 - GH-304 fix typo
- DCOM-223 - GH-308 fix the optimize regex and adapt the tests to actually test classAnnotat...
- DCOM-228 - GH-312 Improve UnexpectedValueException error message
- DCOM-261 - GH-344 Fix fatal error when classexist tries to call the protected loader
- DCOM-270 - GH-351 Added validation where allowed QCNs with ":" NS separator
- DCOM-272 - Proxy generator doesn't understand splat operator (PHP 5.6 argument unpacking)
Documentation
Improvement
- DCOM-246 - GH-328 Optimized imports
- DCOM-247 - GH-329 Remove dead config
- DCOM-263 - GH-347 Class loader: skip non-existing files and files not containing the requested class
- DCOM-278 - GH-358 travis: PHP 7.0 nightly added, allowed failure
New Feature
- DCOM-257 - GH-342 Class metadata loading fallback hook in AbstractClassMetadataFactory
- DCOM-277 - GH-357 Custom namespace separators for SymfonyFileLocator
Please report any issues you may have with the update on the mailing list or on
Jira.
v2.5.0-beta1
Doctrine Common 2.5.0-beta1 Pre-Release
We are happy to announce the immediate availability Doctrine Common 2.5.0-beta1
.
This is a pre-release meant to allow users and contributors to try out the new
upcoming features of the Common package.
We encourage all of our users to help us by trying out this beta release.
Please report any possible problems or incompatibilities that may have been
introduced during development.
Starting from this release, no more new features or breaking changes will be allowed
in the
Release RoadMap
We expect to release following versions of the Common package in the next days:
2.5.0
on2015-04-02
Please note that these dates may change depending on the availability of our team.
Installation
You can install this version of the Common package by using Composer and the
following composer.json
contents:
{
"require": {
"doctrine/common": "2.5.0-beta1"
}
}
Changes since 2.4.x
This is a list of issues solved in 2.5.0-beta1
since 2.4.x
:
Bug
- DCOM-129 - Annotation parser matches colon after annotation
- DCOM-151 - GH-233 [DocParser] Fix trying include classes if its must be ignored.
- DCOM-162 - GH-244 return parameter for debug method
- DCOM-168 - ignoredAnnotationNames doesn't work in Annotation loop
- DCOM-175 - Proxies return private properties in __sleep, which is not supported by PHP.
- DCOM-191 - Wrong inflection for "identity"
- DCOM-212 - GH-296 Proxies shouldn't serialize static properties in __sleep()
- DCOM-216 - GH-298 Silence E_NOTICE warning: "Undefined index".
- DCOM-220 - GH-304 fix typo
- DCOM-223 - GH-308 fix the optimize regex and adapt the tests to actually test classAnnotat...
- DCOM-228 - GH-312 Improve UnexpectedValueException error message
- DCOM-261 - GH-344 Fix fatal error when classexist tries to call the protected loader
- DCOM-270 - GH-351 Added validation where allowed QCNs with ":" NS separator
- DCOM-272 - Proxy generator doesn't understand splat operator (PHP 5.6 argument unpacking)
Documentation
Improvement
- DCOM-246 - GH-328 Optimized imports
- DCOM-247 - GH-329 Remove dead config
- DCOM-263 - GH-347 Class loader: skip non-existing files and files not containing the requested class
- DCOM-278 - GH-358 travis: PHP 7.0 nightly added, allowed failure
New Feature
- DCOM-257 - GH-342 Class metadata loading fallback hook in AbstractClassMetadataFactory
- DCOM-277 - GH-357 Custom namespace separators for SymfonyFileLocator
Please report any issues you may have with the update on the mailing list or on
Jira.
v2.4.2
Bug
- [DDC-2708] - [DCOM-219] Fix for PHP
5.4.8
not returningtrue
foris_callable
on abstract methods anymore - [DCOM-204] Fix include of entities inside PHAR.
- [DCOM-175] Private properties of parent classes of a proxy are now correctly handled in
__sleep
- [DCOM-212] Static properties should not be returned by
__sleep
in proxies
Improvement
- [DCOM-216] Better exceptions when a proxy is instantiated with an invalid identifier
- [DCOM-206] Removed gender bias in a DocBlock in
EventManager
- [DCOM-220] Fixed typo in
ObjectManager
DocBlock - [DCOM-228] Better exception message when the proxy dir is not writable
- Added HHVM to build matrix
- Requiring PHPUnit as composer dev-dependency
- [DCOM-223] Better support for multi-line annotations
- [DCOM-237] Fixed links to the documentation
New Feature
- [DDC-1247] - Implemented
AnnotationDriver#addExcludePath()