Skip to content

Commit

Permalink
Merge pull request propelorm#1815 from fbourigault/allow-symfony-6
Browse files Browse the repository at this point in the history
Allow Symfony 6
  • Loading branch information
dereuromark committed Jan 4, 2022
2 parents d9817c1 + 555464f commit 5930bad
Show file tree
Hide file tree
Showing 11 changed files with 100 additions and 40 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@ jobs:
matrix:
php-version: [ '7.4', '8.0', '8.1' ]
db-type: [ sqlite, mysql, pgsql, agnostic ]
symfony-version: [ '4-min', '4-max', '5-min', '5-max' ]
symfony-version: [ '4-min', '4-max', '5-min', '5-max', '6-min', '6-max' ]
exclude:
- symfony-version: '4-min'
php-version: '8.0'
- symfony-version: '4-min'
php-version: '8.1'
- symfony-version: '6-min'
php-version: '7.4'
- symfony-version: '6-max'
php-version: '7.4'
steps:
- name: Install PostgreSQL latest
if: matrix.db-type == 'pgsql' && matrix.php-version != '7.3'
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
"require": {
"php": ">=7.4",
"psr/log": "^1.0||^2.0||^3.0",
"symfony/yaml": "^3.4.0||^4.0.0||^5.0.0",
"symfony/config": "^3.4.0||^4.0.0||^5.0.0",
"symfony/console": "^3.4.0||^4.0.0||^5.0.0",
"symfony/filesystem": "^3.4.0||^4.0.0||^5.0.0",
"symfony/finder": "^3.4.0||^4.0.0||^5.0.0",
"symfony/translation": "^3.4.0||^4.0.0||^5.0.0",
"symfony/validator": "^3.4.0||^4.0.0||^5.0.0"
"symfony/yaml": "^3.4.0||^4.0.0||^5.0.0||^6.0.0",
"symfony/config": "^3.4.0||^4.0.0||^5.0.0||^6.0.0",
"symfony/console": "^3.4.0||^4.0.0||^5.0.0||^6.0.0",
"symfony/filesystem": "^3.4.0||^4.0.0||^5.0.0||^6.0.0",
"symfony/finder": "^3.4.0||^4.0.0||^5.0.0||^6.0.0",
"symfony/translation": "^3.4.0||^4.0.0||^5.0.0||^6.0.0",
"symfony/validator": "^3.4.0||^4.0.0||^5.0.0||^6.0.0"
},
"require-dev": {
"ext-pdo": "*",
Expand Down
4 changes: 2 additions & 2 deletions src/Propel/Generator/Command/Console/Input/ArrayInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct(array $parameters, ?InputDefinition $definition = nu
/**
* @inheritDoc
*/
public function getFirstArgument()
public function getFirstArgument(): ?string
{
foreach ($this->parameters as $key => $value) {
if ($key && $key[0] === '-') {
Expand All @@ -68,7 +68,7 @@ public function getFirstArgument()
/**
* @inheritDoc
*/
public function hasParameterOption($values, $onlyParams = false)
public function hasParameterOption($values, $onlyParams = false): bool
{
$values = (array)$values;

Expand Down
5 changes: 2 additions & 3 deletions tests/composer/composer-symfony3-max.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,22 @@
}
],
"require": {
"php": ">=7.2",
"php": ">=7.4",
"symfony/yaml": "^3.4.0",
"symfony/config": "^3.4.0",
"symfony/console": "^3.4.0",
"symfony/filesystem": "^3.4.0",
"symfony/finder": "^3.4.0",
"symfony/translation": "^3.4.0",
"symfony/validator": "^3.4.0",
"symfony/polyfill-php73": "^1.8",
"psr/log": "^1.0"
},
"require-dev": {
"ext-pdo": "*",
"ext-json": "*",
"monolog/monolog": "^1.3",
"phpstan/phpstan": "^0.12.4",
"phpunit/phpunit": "^8.0.0||^9.0.0",
"phpunit/phpunit": "^9.5.0",
"spryker/code-sniffer": "^0.15.6",
"psalm/phar": "^4.1.0",
"mikey179/vfsstream": "^1.6"
Expand Down
5 changes: 2 additions & 3 deletions tests/composer/composer-symfony3-min.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,22 @@
}
],
"require": {
"php": ">=7.2",
"php": ">=7.4",
"symfony/yaml": "~3.4.0",
"symfony/config": "~3.4.0",
"symfony/console": "~3.4.0",
"symfony/filesystem": "~3.4.0",
"symfony/finder": "~3.4.0",
"symfony/translation": "~3.4.0",
"symfony/validator": "~3.4.0",
"symfony/polyfill-php73": "^1.8",
"psr/log": "^1.0"
},
"require-dev": {
"ext-pdo": "*",
"ext-json": "*",
"monolog/monolog": "^1.3",
"phpstan/phpstan": "^0.12.4",
"phpunit/phpunit": "^8.0.0||^9.0.0",
"phpunit/phpunit": "^9.5.0",
"spryker/code-sniffer": "^0.15.6",
"psalm/phar": "^4.1.0",
"mikey179/vfsstream": "^1.6"
Expand Down
5 changes: 2 additions & 3 deletions tests/composer/composer-symfony4-max.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,22 @@
}
],
"require": {
"php": ">=7.2",
"php": ">=7.4",
"symfony/yaml": "^4.0.0",
"symfony/config": "^4.0.0",
"symfony/console": "^4.0.0",
"symfony/filesystem": "^4.0.0",
"symfony/finder": "^4.0.0",
"symfony/translation": "^4.0.0",
"symfony/validator": "^4.0.0",
"symfony/polyfill-php73": "^1.8",
"psr/log": "^1.0"
},
"require-dev": {
"ext-pdo": "*",
"ext-json": "*",
"monolog/monolog": "^1.3",
"phpstan/phpstan": "^0.12.4",
"phpunit/phpunit": "^8.0.0||^9.0.0",
"phpunit/phpunit": "^9.5.0",
"spryker/code-sniffer": "^0.15.6",
"psalm/phar": "^4.1.0",
"mikey179/vfsstream": "^1.6"
Expand Down
5 changes: 2 additions & 3 deletions tests/composer/composer-symfony4-min.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,22 @@
}
],
"require": {
"php": ">=7.2",
"php": ">=7.4",
"symfony/yaml": "~4.0.0",
"symfony/config": "~4.0.0",
"symfony/console": "~4.0.0",
"symfony/filesystem": "~4.0.0",
"symfony/finder": "~4.0.0",
"symfony/translation": "~4.0.0",
"symfony/validator": "~4.0.0",
"symfony/polyfill-php73": "^1.8",
"psr/log": "^1.0"
},
"require-dev": {
"ext-pdo": "*",
"ext-json": "*",
"monolog/monolog": "^1.3",
"phpstan/phpstan": "^0.12.4",
"phpunit/phpunit": "^8.0.0||^9.0.0",
"phpunit/phpunit": "^9.5.0",
"spryker/code-sniffer": "^0.15.6",
"psalm/phar": "^4.1.0",
"mikey179/vfsstream": "^1.6"
Expand Down
5 changes: 2 additions & 3 deletions tests/composer/composer-symfony5-max.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,22 @@
}
],
"require": {
"php": ">=7.2",
"php": ">=7.4",
"symfony/yaml": "^5.0.0",
"symfony/config": "^5.0.0",
"symfony/console": "^5.0.0",
"symfony/filesystem": "^5.0.0",
"symfony/finder": "^5.0.0",
"symfony/translation": "^5.0.0",
"symfony/validator": "^5.0.0",
"symfony/polyfill-php73": "^1.8",
"psr/log": "^1.0"
},
"require-dev": {
"ext-pdo": "*",
"ext-json": "*",
"monolog/monolog": "^1.3",
"phpstan/phpstan": "^0.12.4",
"phpunit/phpunit": "^8.0.0||^9.0.0",
"phpunit/phpunit": "^9.5.0",
"spryker/code-sniffer": "^0.15.6",
"psalm/phar": "^4.1.0",
"mikey179/vfsstream": "^1.6"
Expand Down
5 changes: 2 additions & 3 deletions tests/composer/composer-symfony5-min.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,22 @@
}
],
"require": {
"php": ">=7.2",
"php": ">=7.4",
"symfony/yaml": "~5.0.0",
"symfony/config": "~5.0.0",
"symfony/console": "~5.0.0",
"symfony/filesystem": "~5.0.0",
"symfony/finder": "~5.0.0",
"symfony/translation": "~5.0.0",
"symfony/validator": "~5.0.0",
"symfony/polyfill-php73": "^1.8",
"psr/log": "^1.0"
},
"require-dev": {
"ext-pdo": "*",
"ext-json": "*",
"monolog/monolog": "^1.3",
"phpstan/phpstan": "^0.12.4",
"phpunit/phpunit": "^8.0.0||^9.0.0",
"phpunit/phpunit": "^9.5.0",
"spryker/code-sniffer": "^0.15.6",
"psalm/phar": "^4.1.0",
"mikey179/vfsstream": "^1.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"name": "propel/propel",
"type": "library",
"description": "Propel2 is an open-source Object-Relational Mapping (ORM) for PHP 5.5 and up.",
"minimum-stability": "dev",
"prefer-stable": true,
"keywords": [
"ORM",
"persistence",
Expand All @@ -18,20 +16,24 @@
}
],
"require": {
"php": ">=7.2",
"symfony/yaml": "^5.0.0",
"symfony/config": "^5.0.0",
"symfony/console": "^5.0.0",
"symfony/filesystem": "^5.0.0",
"symfony/finder": "^5.0.0",
"symfony/translation": "^5.0.0",
"symfony/validator": "^5.0.0",
"symfony/polyfill-php73": "^1.8",
"php": ">=8.0",
"symfony/yaml": "^6.0.0",
"symfony/config": "^6.0.0",
"symfony/console": "^6.0.0",
"symfony/filesystem": "^6.0.0",
"symfony/finder": "^6.0.0",
"symfony/translation": "^6.0.0",
"symfony/validator": "^6.0.0",
"psr/log": "^1.0"
},
"require-dev": {
"ext-pdo": "*",
"ext-json": "*",
"monolog/monolog": "^1.3",
"phpunit/phpunit": "9.4.2",
"phpstan/phpstan": "^0.12.4",
"phpunit/phpunit": "^9.5.0",
"spryker/code-sniffer": "^0.15.6",
"psalm/phar": "^4.1.0",
"mikey179/vfsstream": "^1.6"
},
"suggest": {
Expand Down
60 changes: 60 additions & 0 deletions tests/composer/composer-symfony6-min.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"name": "propel/propel",
"type": "library",
"description": "Propel2 is an open-source Object-Relational Mapping (ORM) for PHP 5.5 and up.",
"keywords": [
"ORM",
"persistence",
"Active Record"
],
"homepage": "http://www.propelorm.org/",
"license": "MIT",
"authors": [
{
"name": "William Durand",
"email": "william.durand1@gmail.com"
}
],
"require": {
"php": ">=8.0",
"symfony/yaml": "~6.0.0",
"symfony/config": "~6.0.0",
"symfony/console": "~6.0.0",
"symfony/filesystem": "~6.0.0",
"symfony/finder": "~6.0.0",
"symfony/translation": "~6.0.0",
"symfony/validator": "~6.0.0",
"psr/log": "^1.0"
},
"require-dev": {
"ext-pdo": "*",
"ext-json": "*",
"monolog/monolog": "^1.3",
"phpstan/phpstan": "^0.12.4",
"phpunit/phpunit": "^9.5.0",
"spryker/code-sniffer": "^0.15.6",
"psalm/phar": "^4.1.0",
"mikey179/vfsstream": "^1.6"
},
"suggest": {
"monolog/monolog": "The recommended logging library to use with Propel."
},
"autoload": {
"psr-4": {
"Propel\\": "src/Propel/"
}
},
"bin": [
"bin/propel"
],
"scripts": {
"stan": [
"vendor/bin/phpstan analyze -l 1 -c tests/phpstan.neon src/"
]
},
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
}
}
}

0 comments on commit 5930bad

Please sign in to comment.