Skip to content

Commit 8dbe677

Browse files
committed
Update to Symfony 6.2 and require PHP 8.1+
1 parent fa17ffe commit 8dbe677

File tree

7 files changed

+45
-85
lines changed

7 files changed

+45
-85
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup PHP
1616
uses: shivammathur/setup-php@v2
1717
with:
18-
php-version: '8.0'
18+
php-version: '8.1'
1919
extensions: mbstring, intl, posix
2020
ini-values: memory_limit=256M, max_execution_time=0, phar.readonly=0
2121
tools: pecl

.idea/php-test-framework.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php.xml

Lines changed: 16 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/project-manager.iml

Lines changed: 1 addition & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
"description": "A CLI utility for helping manage a micro-services project",
55
"license": "MIT",
66
"require": {
7-
"php": "^8.0",
7+
"php": "^8.1",
88
"ext-ctype": "*",
99
"ext-iconv": "*",
1010
"ext-json": "*",
1111
"pragmarx/ia-str": "~7.3",
1212
"somnambulist/collection": "^5.2",
13-
"symfony/config": "5.4.*",
14-
"symfony/console": "5.4.*",
15-
"symfony/dependency-injection": "5.4.*",
16-
"symfony/dotenv": "5.4.*",
17-
"symfony/finder": "5.4.*",
18-
"symfony/http-kernel": "5.4.*",
19-
"symfony/process": "5.4.*",
20-
"symfony/yaml": "5.4.*"
13+
"symfony/config": "6.2.*",
14+
"symfony/console": "6.2.*",
15+
"symfony/dependency-injection": "6.2.*",
16+
"symfony/dotenv": "6.2.*",
17+
"symfony/finder": "6.2.*",
18+
"symfony/http-kernel": "6.2.*",
19+
"symfony/process": "6.2.*",
20+
"symfony/yaml": "6.2.*"
2121
},
2222
"require-dev": {
2323
"phpunit/phpunit": "~9.5",
24-
"symfony/var-dumper": "5.4.*"
24+
"symfony/var-dumper": "6.2.*"
2525
},
2626
"config": {
2727
"preferred-install": {

config/bootstrap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919

2020
if (!is_null($envFile)) {
2121
// load all the .env files
22-
(new Dotenv(false))->loadEnv($envFile);
22+
(new Dotenv())->loadEnv($envFile, defaultEnv: 'prod');
2323
} else {
2424
if (!in_array('init', $_SERVER['argv'])) {
2525
echo "\n ** Project Manager has not been initialised, run spm init **\n\n";
2626
}
2727
}
2828

2929
$_SERVER += $_ENV;
30-
$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';
30+
$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'prod';
3131
$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV'];
3232
$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0';
3333

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ and continue on. There is no special configuration needed in any project.
2222

2323
## Installation
2424

25-
Project Manager requires PHP 8.0+ to be installed and in your shell path.
25+
Project Manager requires PHP 8.1+ to be installed and in your shell path.
2626

2727
Grab the phar archive and copy it to `/usr/local/bin` or add it to your path.
2828
Symlink the phar to `spm` or a.n.other name. Be sure to verify the SHA checksum with

0 commit comments

Comments
 (0)