Skip to content

Commit

Permalink
PhpGenerator: removed property's phpDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 28, 2024
1 parent e9f3ea8 commit 88bed96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/DI/PhpGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function generate(string $className): Php\ClassType
->addBody('parent::__construct($params);');

foreach ($this->builder->exportMeta() as $key => $value) {
$class->inheritProperty($key)->setValue($value);
$class->inheritProperty($key)->setComment(null)->setValue($value);
}

$definitions = $this->builder->getDefinitions();
Expand Down
5 changes: 0 additions & 5 deletions tests/DI/expected/compiler.code.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@

class Container extends Nette\DI\Container
{
/** @var string[] services name => type (complete list of available services) */
protected array $types = ['container' => 'Nette\DI\Container'];

/** @var string[] alias => service name */
protected array $aliases = [];

/** @var array[] type => level => services */
protected array $wiring = ['Nette\DI\Container' => [['container']], 'stdClass' => [['01', 'name']]];


Expand Down

0 comments on commit 88bed96

Please sign in to comment.