Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php: [ '8.1','8.2']
symfony: ['5.4.*', '6.3.*', '7.0.*']
php: [ '8.3','8.4']
symfony: ['7.4.*', '8.0.*']
exclude:
- php: '8.1'
symfony: '7.0.*'
- php: '8.3'
symfony: '8.0.*'
steps:
- uses: actions/checkout@main

Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

composer-install: ## composer install
docker run --rm -it -w="/srv/app" --volume $$(pwd)/.config/composer:/root/.config/composer --volume $${SSH_AUTH_SOCK}:/ssh-agent --env SSH_AUTH_SOCK=/ssh-agent --volume $$(pwd):/srv/app prooph/composer:8.1 install
docker run --rm -it -w="/srv/app" --volume $$(pwd)/.config/composer:/root/.config/composer --volume $${SSH_AUTH_SOCK}:/ssh-agent --env SSH_AUTH_SOCK=/ssh-agent --volume $$(pwd):/srv/app composer:2.9.2 install

composer-update: ## composer update
docker run --rm -it -w="/srv/app" --volume $$(pwd)/.config/composer:/root/.config/composer --volume $${SSH_AUTH_SOCK}:/ssh-agent --env SSH_AUTH_SOCK=/ssh-agent --volume $$(pwd):/srv/app composer:2.9.2 update

phpunit: ## phpunit
docker run --rm -it -w="/srv/app" --volume $$(pwd)/.config/composer:/root/.config/composer --volume $${SSH_AUTH_SOCK}:/ssh-agent --env SSH_AUTH_SOCK=/ssh-agent --volume $$(pwd):/srv/app --entrypoint="" prooph/composer:8.1 vendor/bin/phpunit
docker run --rm -it -w="/srv/app" --volume $$(pwd)/.config/composer:/root/.config/composer --volume $${SSH_AUTH_SOCK}:/ssh-agent --env SSH_AUTH_SOCK=/ssh-agent --volume $$(pwd):/srv/app --entrypoint="" composer:2.9.2 vendor/bin/phpunit
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"phpunit/phpunit": "^10.3"
},
"require": {
"php": "^8.1",
"php": "^8.3",
"symfony/maker-bundle": "^1.7",
"symfony/framework-bundle": "^5.4|^6.0|^7.0",
"doctrine/doctrine-bundle": "^2.12",
"symfony/twig-bundle": "^5.4|^6.0|^7.0",
"symfony/framework-bundle": "^5.4|^6.0|^7.0|^8.0",
"doctrine/doctrine-bundle": "^2.12|^3.0",
"symfony/twig-bundle": "^5.4|^6.0|^7.0|^8.0",
"doctrine/orm": "^3.0"
}
}
2 changes: 1 addition & 1 deletion src/Command/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(RepositoryGenerator $repositoryGenerator)
$this->repositoryGenerator = $repositoryGenerator;
}

protected function configure()
protected function configure(): void
{
$this->setDescription('Regenerate the Base Repository with the Query Builder Repository Generator');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class QueryBuilderRepositoryGeneratorExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
public function load(array $configs, ContainerBuilder $container): void
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
Expand Down
6 changes: 3 additions & 3 deletions src/Resources/views/Generator/TopRepositoryTemplate.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class {{ entityClassname }}Base extends {{ extendClass }}{% if useInterfaces %}
}

/**
* @return \{{rootEntityName}}[]
* @return \{{entityClasspath}}[]
*/
public function getQueryBuilderResult(
QueryBuilder $qb,
Expand All @@ -113,7 +113,7 @@ class {{ entityClassname }}Base extends {{ extendClass }}{% if useInterfaces %}
}

/**
* @return \{{rootEntityName}}
* @return \{{entityClasspath}}
*/
public function getQueryBuilderSingleResult(
QueryBuilder $qb,
Expand All @@ -131,7 +131,7 @@ class {{ entityClassname }}Base extends {{ extendClass }}{% if useInterfaces %}
}

/**
* @return ?\{{rootEntityName}}
* @return ?\{{entityClasspath}}
*/
public function getQueryBuilderOneOrNullResult(
QueryBuilder $qb,
Expand Down
1 change: 0 additions & 1 deletion tests/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ doctrine:
driver: pdo_pgsql
server_version: "15"
orm:
auto_generate_proxy_classes: true
auto_mapping: true
mappings:
App:
Expand Down
Loading