From 2d085ad6f4fd190341f9a90d57f97c36ca6cac2c Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 15 Jul 2023 10:58:24 +0200 Subject: [PATCH] Add discussion template for 'Help wanted' --- .github/DISCUSSION_TEMPLATE/help-wanted.yml | 51 +++++++++++++++++++++ composer.json | 4 +- config/cli-config.php | 5 +- 3 files changed, 54 insertions(+), 6 deletions(-) create mode 100644 .github/DISCUSSION_TEMPLATE/help-wanted.yml diff --git a/.github/DISCUSSION_TEMPLATE/help-wanted.yml b/.github/DISCUSSION_TEMPLATE/help-wanted.yml new file mode 100644 index 00000000..29956209 --- /dev/null +++ b/.github/DISCUSSION_TEMPLATE/help-wanted.yml @@ -0,0 +1,51 @@ +title: 'Help wanted' +body: + - type: input + validations: + required: true + attributes: + label: Shlink version + placeholder: x.y.z + - type: input + validations: + required: true + attributes: + label: PHP version + placeholder: x.y.z + - type: dropdown + validations: + required: true + attributes: + label: How do you serve Shlink + options: + - Self-hosted Apache + - Self-hosted nginx + - Self-hosted openswoole + - Self-hosted RoadRunner + - Openswoole Docker image + - RoadRunner Docker image + - Other (explain in summary) + - type: dropdown + validations: + required: true + attributes: + label: Database engine + options: + - MySQL + - MariaDB + - PostgreSQL + - MicrosoftSQL + - SQLite + - type: input + validations: + required: true + attributes: + label: Database version + placeholder: x.y.z + - type: markdown + validations: + required: true + attributes: + label: Summary + value: '' + diff --git a/composer.json b/composer.json index d9e0e63f..9aa0ed98 100644 --- a/composer.json +++ b/composer.json @@ -67,10 +67,10 @@ "devster/ubench": "^2.1", "infection/infection": "^0.27", "openswoole/ide-helper": "~22.0.0", - "phpstan/phpstan": "^1.9", + "phpstan/phpstan": "^1.10", "phpstan/phpstan-doctrine": "^1.3", "phpstan/phpstan-phpunit": "^1.3", - "phpstan/phpstan-symfony": "^1.2", + "phpstan/phpstan-symfony": "^1.3", "phpunit/php-code-coverage": "^10.0", "phpunit/phpunit": "^10.2.0", "roave/security-advisories": "dev-master", diff --git a/config/cli-config.php b/config/cli-config.php index fef6fb9c..57348824 100644 --- a/config/cli-config.php +++ b/config/cli-config.php @@ -5,14 +5,10 @@ declare(strict_types=1); use Doctrine\Migrations\Configuration\EntityManager\ExistingEntityManager; use Doctrine\Migrations\Configuration\Migration\ConfigurationArray; use Doctrine\Migrations\DependencyFactory; -use Doctrine\ORM\EntityManager; // This file is currently used by doctrine migrations only return (static function () { - /** @var EntityManager $em */ - $em = include __DIR__ . '/entity-manager.php'; - $migrationsConfig = [ 'migrations_paths' => [ 'ShlinkMigrations' => 'data/migrations', @@ -22,6 +18,7 @@ return (static function () { ], 'custom_template' => 'data/migrations_template.txt', ]; + $em = include __DIR__ . '/entity-manager.php'; return DependencyFactory::fromEntityManager( new ConfigurationArray($migrationsConfig),