Compare commits

...

6 Commits

Author SHA1 Message Date
e59d627080
Merge pull request 'feature/update-to-php81' (#29) from feature/update-to-php81 into master
All checks were successful
soko-web/pipeline/head This commit looks good
Reviewed-on: #29
2023-09-27 22:11:05 +02:00
3acca19d49
use new interface of TestCase
All checks were successful
soko-web/pipeline/pr-master This commit looks good
2023-09-27 22:05:56 +02:00
2226b88a88
adapt signature of DatabaseSessionHandler::gc to the parent class
Some checks failed
soko-web/pipeline/pr-master There was a failure building this commit
2023-09-27 21:46:32 +02:00
8e08b09ae8
generate composer.lock
Some checks failed
soko-web/pipeline/pr-master There was a failure building this commit
2023-09-27 21:41:17 +02:00
a3bce1f2aa
update composer packages 2023-09-27 21:38:59 +02:00
a84d3a3976
update to php 8.1 2023-09-27 21:35:44 +02:00
5 changed files with 375 additions and 577 deletions

View File

@ -1,4 +1,4 @@
FROM php:7.4.7-cli-buster
FROM php:8.1-cli-bookworm
RUN apt-get update && apt-get install -y unzip
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

View File

@ -5,12 +5,12 @@
"license": "GNU GPL 3.0",
"require": {
"vlucas/phpdotenv": "^5.5",
"symfony/console": "^5.4",
"symfony/console": "^6.3",
"phpmailer/phpmailer": "^6.8",
"cocur/slugify": "^4.3"
"cocur/slugify": "^4.5"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
"phpunit/phpunit": "^10.3",
"phpstan/phpstan": "^1.10"
},
"autoload": {

934
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -86,12 +86,12 @@ class DatabaseSessionHandler implements ISessionHandler
return true;
}
public function gc($maxlifetime): bool
public function gc($maxlifetime): int|false
{
// empty on purpose
// old sessions are deleted by MaintainDatabaseCommand
return true;
return 1;
}
public function create_sid(): string

View File

@ -17,7 +17,7 @@ final class GoogleOAuthTest extends TestCase
$redirectUrl = 'http://example.com/oauth';
$requestMock = $this->getMockBuilder(IRequest::class)
->setMethods(['setUrl', 'setMethod', 'setQuery', 'setHeaders', 'send'])
->onlyMethods(['setUrl', 'setMethod', 'setQuery', 'setHeaders', 'send'])
->getMock();
$googleOAuth = new GoogleOAuth($requestMock);
@ -48,10 +48,10 @@ final class GoogleOAuthTest extends TestCase
$redirectUrl = 'http://example.com/oauth';
$requestMock = $this->getMockBuilder(IRequest::class)
->setMethods(['setUrl', 'setMethod', 'setQuery', 'setHeaders', 'send'])
->onlyMethods(['setUrl', 'setMethod', 'setQuery', 'setHeaders', 'send'])
->getMock();
$responseMock = $this->getMockBuilder(IResponse::class)
->setMethods(['getBody', 'getHeaders'])
->onlyMethods(['getBody', 'getHeaders'])
->getMock();
$googleOAuth = new GoogleOAuth($requestMock);