Skip to content
Snippets Groups Projects
Commit 0471b08a authored by Marko Ivancic's avatar Marko Ivancic
Browse files

Bump PHP, SSP and oidc versions

parent d1e0c017
No related branches found
No related tags found
1 merge request!12Bump PHP, SSP and oidc versions
...@@ -8,10 +8,10 @@ on: ...@@ -8,10 +8,10 @@ on:
jobs: jobs:
test-74: test-80:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: cicnavi/dap:74 image: cicnavi/dap:80
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Validate composer.json and composer.lock - name: Validate composer.json and composer.lock
...@@ -32,7 +32,7 @@ jobs: ...@@ -32,7 +32,7 @@ jobs:
- name: Show PHP version - name: Show PHP version
run: php -v run: php -v
test-latest: test-81:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: cicnavi/dap:81 image: cicnavi/dap:81
......
...@@ -13,18 +13,16 @@ stages: ...@@ -13,18 +13,16 @@ stages:
- test - test
- deploy - deploy
# PHP v7.4 test-80:
test-74:
tags: tags:
- niif-hu-docker - niif-hu-docker
stage: test stage: test
image: cicnavi/dap:74 image: cicnavi/dap:80
script: script:
- composer install --prefer-dist --no-progress --no-suggest - composer install --prefer-dist --no-progress --no-suggest
- vendor/bin/psalm --clear-cache - vendor/bin/psalm --clear-cache
- composer run-script pre-commit - composer run-script pre-commit
# PHP v8.1
test-81: test-81:
tags: tags:
- niif-hu-docker - niif-hu-docker
......
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
"config": { "config": {
"allow-plugins": { "allow-plugins": {
"simplesamlphp/composer-module-installer": true "simplesamlphp/composer-module-installer": true
} },
"cache-dir": "build/composer"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
...@@ -25,7 +26,7 @@ ...@@ -25,7 +26,7 @@
} }
}, },
"require": { "require": {
"php": "^7.4 || ^8.0", "php": "^8.0",
"ext-pdo": "*", "ext-pdo": "*",
"ext-pdo_sqlite": "*", "ext-pdo_sqlite": "*",
"composer-runtime-api": "^2.0", "composer-runtime-api": "^2.0",
...@@ -38,9 +39,9 @@ ...@@ -38,9 +39,9 @@
"vimeo/psalm": "^5", "vimeo/psalm": "^5",
"phpunit/phpunit": "^9", "phpunit/phpunit": "^9",
"squizlabs/php_codesniffer": "^3", "squizlabs/php_codesniffer": "^3",
"simplesamlphp/simplesamlphp": "^2", "simplesamlphp/simplesamlphp": "2.0.*",
"simplesamlphp/simplesamlphp-test-framework": "^1", "simplesamlphp/simplesamlphp-test-framework": "^1",
"simplesamlphp/simplesamlphp-module-oidc": "^3", "simplesamlphp/simplesamlphp-module-oidc": "^4",
"fakerphp/faker": "^1.22" "fakerphp/faker": "^1.22"
}, },
"suggest": { "suggest": {
......
This diff is collapsed.
...@@ -60,7 +60,7 @@ function accounting_hook_cron(array &$cronInfo): void ...@@ -60,7 +60,7 @@ function accounting_hook_cron(array &$cronInfo): void
($retentionPolicy = $moduleConfiguration->getTrackerDataRetentionPolicy()) !== null ($retentionPolicy = $moduleConfiguration->getTrackerDataRetentionPolicy()) !== null
) { ) {
$helpersManager = new HelpersManager(); $helpersManager = new HelpersManager();
$message = sprintf('Handling data retention policy.'); $message = 'Handling data retention policy.';
$logger->info($message); $logger->info($message);
/** @psalm-suppress MixedArrayAssignment */ /** @psalm-suppress MixedArrayAssignment */
$cronInfo['summary'][] = $message; $cronInfo['summary'][] = $message;
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
resolveFromConfigFile="true" resolveFromConfigFile="true"
findUnusedBaselineEntry="true" findUnusedBaselineEntry="true"
findUnusedCode="true" findUnusedCode="true"
cacheDirectory="./build/psalm/cache"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config" xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
cacheDirectory="./build/psalm/cache"
> >
<projectFiles> <projectFiles>
<directory name="src" /> <directory name="src" />
......
...@@ -93,8 +93,7 @@ class ModuleConfiguration ...@@ -93,8 +93,7 @@ class ModuleConfiguration
} }
if (! is_string($value)) { if (! is_string($value)) {
$message = sprintf('Job runner maximum activity must be defined either as null, or DateInterval' . $message = 'Job runner maximum activity must be defined either as null, or DateInterval duration (string).';
'duration (string).');
throw new InvalidConfigurationException($message); throw new InvalidConfigurationException($message);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment