Clone jwage/changelog-generator, then run:
$ ./bin/changelog-generator generate --user=doctrine --repository=mongodb-odm --milestone=1.2.10
Clean up the changelog if necessary by checking milestone issues and differences from the last tag
| <?php | |
| /** @generate-function-entries */ | |
| namespace Foo { | |
| function baz(): void {} | |
| } | |
| namespace Bar { | |
| function baz(): void {} |
| final class Category | |
| { | |
| private string $name; | |
| public static function fromName(string $name): self | |
| { | |
| return new self($name); | |
| } | |
| private function __construct(string $name) |
| { | |
| "require": { | |
| "php": "^7.2", | |
| "vendor/extension": "^1 || ^2", | |
| "vendor/restrictive": "^1 || ^2" | |
| } | |
| } |
| diff --git a/composer.json b/composer.json | |
| index 166745af..57482d73 100644 | |
| --- a/composer.json | |
| +++ b/composer.json | |
| @@ -11,6 +11,9 @@ | |
| "mapping", | |
| "object" | |
| ], | |
| + "repositories": [ | |
| + {"type": "vcs", "url": "https://github.com/simPod/coding-standard"} |
| <?php | |
| declare(strict_types=1); | |
| namespace Doctrine\ODM\MongoDB\Tests\Functional\Ticket; | |
| use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM; | |
| use Doctrine\ODM\MongoDB\Tests\BaseTest; | |
| class GH2039Test extends BaseTest |
| <?php | |
| /* | |
| * When enabled, forces all variables to be declared before read/write access. | |
| * The feature can be turned on and off. | |
| */ | |
| declare(declare_vars=1); | |
| var_dump($undeclaredVar); // Compile error | |
| $undeclaredVar = 'something'; // Compile error |
| <?php | |
| namespace Doctrine\ODM\MongoDB\Tests\Functional\Ticket; | |
| use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM; | |
| use Doctrine\ODM\MongoDB\Tests\BaseTest; | |
| class GH2028Test extends BaseTest | |
| { | |
| public function testStoreHashWithIntKeys() |
| <?php | |
| declare(strict_types = 1); | |
| namespace Documents; | |
| use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM; | |
| /** @ODM\File */ | |
| class File |
| <?php declare(strict_types = 1); | |
| if (false) { | |
| // Alias will never be used | |
| class_alias('FakeParentClass', 'ParentClass'); | |
| } | |
| class ChildClass extends ParentClass | |
| { | |
| public function bar(): void |