Tags: simPod/common
Tags
2.11.0 - Total issues resolved: 1 - Total pull requests resolved: 6 - Total contributors: 6 Improvement ----------- - [875: Require PHP 7.4 tests to pass](doctrine#875) thanks to @alcaeus - [873: Use getName() instead &doctrine#95;&doctrine#95;toString()](doctrine#873) thanks to @esbobkov - [866: Update phpstan to 0.11 && update phpunit to 7.0](doctrine#866) thanks to @adaamz - [865: CI: Test against PHP 7.4snapshot instead of nightly (8.0)](doctrine#865) thanks to @Majkl578 - [861: &doctrine#91;DDC-2556&doctrine#93; Fix generating non-loading proxy methods when the identifier field is defined in a trait](doctrine#861) thanks to @Jalle19 Documentation ------------- - [862: fix method reference in @see doblock](doctrine#862) thanks to @vladyslavstartsev
2.10.0 ====== [![Build Status](https://travis-ci.org/doctrine/common.svg?branch=v2.10.0)](https://travis-ci.org/doctrine/common/) As of this release PropertyChangedListener & NotifyPropertyChanged interfaces are no longer part of doctrine/common - these have been moved to [doctrine/persistence](https://github.com/doctrine/persistence) project. - Total issues resolved: **1** - Total pull requests resolved: **6** - Total contributors: **3** Improvement ----------- - [860: Bump branch-alias to 2.10.x-dev](doctrine#860) thanks to @Majkl578 - [859: Move PropertyChangedListener & NotifyPropertyChanged to doctrine/persistence](doctrine#859) thanks to @Majkl578 - [857: CI: Test against PHP 7.3](doctrine#857) thanks to @Majkl578 - [855: Move NotifyPropertyChanged into doctrine/persistence](doctrine#855) thanks to @Majkl578 - [853: Add .doctrine-project.json to root of the project.](doctrine#853) thanks to @jwage Documentation ------------- - [854: Update homepage](doctrine#854) thanks to @Majkl578 - [850: &doctrine#91;docs&doctrine#93; Fix RST directive syntax / code blocks](doctrine#850) thanks to @guilliamxavier
Starting with this release, some of the components were moved to sepa… …rate packages: * [Event Manager](https://github.com/doctrine/event-manager) * [Persistence](https://github.com/doctrine/persistence) * [Reflection](https://github.com/doctrine/reflection) They have been removed from this package and replaced with a dependency on the new packages. This release also introduces the following deprecations: * `Doctrine\Common\Proxy` component is deprecated, use [`ocramius/proxy-manager`](https://github.com/ocramius/ProxyManager) instead * `Doctrine\Common\Util\Debug` is deprecated, use [`symfony/var-dumper`](https://github.com/symfony/var-dumper) instead * `Doctrine\Common\Lexer` is deprecated, use `Doctrine\Common\Lexer\AbstractLexer` from [`doctrine/lexer`](https://github.com/doctrine/lexer) instead * `Doctrine\Common\Util\Inflector` is deprecated, use `Doctrine\Common\Inflector\Inflector` from [`doctrine/inflector`](https://github.com/doctrine/inflector) instead * `Doctrine\Common\Version` is deprecated, refrain from checking Common version at runtime * `Doctrine\Common\Util\ClassUtils` is deprecated, use Composer autoloader instead * `Doctrine\Common\CommonException` is deprecated Additionally, `doctrine/common` package now enters a bugfix-only mode and will be gradually phased out. Please migrate to specific components instead. ----- - Total issues resolved: **1** - Total pull requests resolved: **5** - Total contributors: **4** Deprecation: - [846: Doctrine\Common\Lexer should be marked as deprecated](doctrine#846) thanks to @stof - [845: doctrine/common deprecations](doctrine#845) thanks to @Majkl578 Improvement: - [844: Separate persistence and reflection](doctrine#844) thanks to @Majkl578 - [842: Separate Event Manager to doctrine/event-manager](doctrine#842) thanks to @Majkl578 - [840: Fix CS](doctrine#840) thanks to @simPod Documentation: - [829: replace connection name with object manager name](doctrine#829) thanks to @xabbuh
This release fixes an unintentional BC break that prevented passing all the possible available flags to the `Doctrine\Common\Proxy\AbstractProxyFactory`. Total issues resolved: **2** - [815: Convert proxy factory auto generate mode to integer](doctrine#815) thanks to @dragosprotung - [816: Convert proxy factory auto generate mode to integer](doctrine#816) thanks to @dragosprotung
This release removes support for HHVM and increases the minimum supported PHP version to PHP 7.1.0. In addition to that, code has been cleaned up to remove quirks related to previous PHP version support handling. We introduced static analysis in our continuous integration pipeline by integrating [PHPStan](https://github.com/phpstan/phpstan) with the build process. In addition to these changes there were multiple minor bugfixes around the test suite, PHPUnit compatibility, the `Debug::export()` utility and docBlock/documentation correctness. Total issues resolved: **22** - [716: Minor docblock spelling correction in `AbstractClassMetadataFactory`](doctrine#716) thanks to @gnat42 - [718: Removed empty /lib/vendor directory from auto-generated ZIP archives](doctrine#718) thanks to @mlocati - [757: Bumped phpunit version to 5.7](doctrine#757) thanks to @gabbydgab - [760: Fixed typo in `ManagerRegistry` documentation](doctrine#760) thanks to @aledeg - [765: Integrated PHPStan and discovered related fixes](doctrine#765) thanks to @ondrejmirtes - [769: Specify array type in `ClassMetadataFactory::getAllMetadata()` docblock](doctrine#769) thanks to @soullivaneuh - [770: ProxyFactory may generate invalid proxies with no error](doctrine#770) thanks to @theofidry - [771: ProxyGenerator: Disallow creating proxies for abstract and final classes](doctrine#771) thanks to @Majkl578 - [772: Invalid data provider in the `ObjectManagerDecoratorTest`](doctrine#772) thanks to @Ocramius - [773: doctrine#772 Fixed `ObjectManagerDecoratorTest`, which wasn't considering void hints](doctrine#773) thanks to @ondrejmirtes - [776: `ProxyGenerator` has a typo in a docblock annotation, causing annotation reading to crash](doctrine#776) thanks to @alu - [777: doctrine#776 Fix typo in `ProxyGenerator` docblock annotation](doctrine#777) thanks to @Majkl578 - [778: Fix return type docblock for `EventManager#dispatchEvent()`](doctrine#778) thanks to @ostrolucky - [781: Removed dead links to the previous JIRA-based issue tracker](doctrine#781) thanks to @fridde - [785: Dropped PHP 5.x and 7.0 support - minimum of PHP 7.1 requirement](doctrine#785) thanks to @Majkl578 - [789: Removed redundant `isset()` + `empty()` check in `EventManager#hasListeners()`](doctrine#789) thanks to @ostrolucky - [790: Removing `isset()` checks before `unset()` calls in `EventManager#removeEventListener()`](doctrine#790) thanks to @ostrolucky - [791: Removed always true execution path conditional from `StaticReflectionParser`](doctrine#791) thanks to @ostrolucky - [793: Updated PHPStan dev dependency to 0.7](doctrine#793) thanks to @ondrejmirtes - [796: Dropped HHVM support](doctrine#796) thanks to @lcobucci - [798: Removed quirks for unsupported PHP versions in Proxy code generation](doctrine#798) thanks to @Majkl578 - [802: doctrine#386 - Simplifying `Debug::export()` so that runtime properties are also considered](doctrine#802) thanks to @ostrolucky
Total issues resolved: **5** - [139: generation of error message fails under certain circumstances](doctrine#139) thanks to @nils-wisiol - [744: StaticReflectionParser is dumb, assumes Class::class references are class level](doctrine#744) thanks to @heddn - [780: Quick-fix to avoid call to deprecated function.](doctrine#780) thanks to @fridde - [792: Fix __call exception when no metadata has been set](doctrine#792) thanks to @ostrolucky - [806: Fix doctrine#744 - Stop overwriting class docblock with '' triggered by ::class](doctrine#806) thanks to @Sam152
This release fixes an issue in the proxy code generation that prevented an optimization in proxy identifier getter methods. Specifically, if you have a method like following in your proxied class, then this release will ensure that a call to that method will not initialize your proxy if not needed: ```php class MyEntity { private $id; public function getId() : ?int { return $this->id; } } ``` Total issues resolved: **3** - [761: ProxyGenerator::isShortIdentifierGetter in PHP 7.1 does not support nullable types](doctrine#761) - [762: doctrine#761 Added support for PHP 7.1 identifier nullable return type](doctrine#762) - [763: Fix doctrine#761, doctrine#762: support nullable identifier hint in proxies](doctrine#763 PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iF4EABEKAAYFAlh434QACgkQn2X7whLsLfhqrgD/Uniyx/39AoqIKdpshfEJWGcj FeH330Wb6I3BZtTTkooA/RwUFm2HtC74qNFLCDf5BBONddv4Fj3nCJ/ytAJo6Zf5 =sRxg -----END PGP SIGNATURE-----
This release fixes an issue that prevented the proxy generator from g… …enerating valid proxies when running under PHP 7.0.* and encountering following type of method signature: ```php public function foo(SomeClass $bar = null, $baz) {} ``` Total issues resolved: **4** - [751: Error in generated Entity Proxy class](doctrine#751) - [752: Fix doctrine#751: non optional type hinted parameters pre 7.1 support](doctrine#752) - [753: Fix doctrine#751 - backport doctrine#752 - proxy generation broken on non-optional parameters with default value](doctrine#753) - [754: Fix doctrine#751 - backport doctrine#752 - proxy generation broken on non-optional parameters with default value](doctrine#754)
This release introduces support for PHP 7.1 functionality, specifically: * nullable parameter and return types * `void` hint support * `iterable` 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](doctrine#394) - [706: Travis-CI: drop PHP 7.0 from allowed failures, it passes well](doctrine#706) - [719: Improve the phpdoc of ObjectRepository](doctrine#719) - [720: Fixed detection of identifier getter with PHP 7 return type](doctrine#720) - [721: Small improvements from humbug mutation testing discoveries](doctrine#721) - [724: Upgrade PHPUnit and PHP version dependencies](doctrine#724) - [725: Removing useless incremental of the current exporting level from debug exporter](doctrine#725) - [729: Util\Debug: export parent class private attributes and DateTimeImmutable](doctrine#729) - [731: Support nullable types (PHP 7.1) in ProxyGenerator](doctrine#731) - [734: ProxyGenerator: Added support for PHP 7.1 features](doctrine#734) - [743: Fix parameter/return type validation for interfaces (introduced in doctrine#734)](doctrine#743)
Total issues resolved: **4** - [717: Don't fail if the cached type is not ClassMetadata](doctrine#717) - [727: AbstractManagerRegistry::resetManager() must return the new manager](doctrine#727)
PreviousNext