Skip to content

Commit

Permalink
upgraded to nette/php-generator v4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
oliwierptak committed Jun 15, 2022
1 parent 250cd86 commit e59036e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.4-cli
FROM php:8.0-cli

RUN apt-get upgrade -y && apt-get update \
&& apt-get install -y \
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"symfony/finder": "^5|^6",
"symfony/console": "^5|^6",
"symfony/yaml": "^5|^6",
"nette/php-generator": "^3"
"nette/php-generator": "^4"
},
"require-dev": {
"phpunit/phpunit": "^9",
Expand Down
2 changes: 1 addition & 1 deletion src/Popo/Plugin/ClassPlugin/ExtendClassPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function run(BuilderPluginInterface $builder): void
{
if ($builder->getSchema()->getConfig()->getExtend() !== null) {
$extend = str_replace('::class', '', $builder->getSchema()->getConfig()->getExtend());
$builder->getClass()->addExtend($extend);
$builder->getClass()->setExtends($extend);
}
}
}

0 comments on commit e59036e

Please sign in to comment.