Skip to content

Commit

Permalink
backward compatibility php81
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaukutsu committed Feb 24, 2024
1 parent b4f41db commit 911dd90
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/static-code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
fail-fast: false
matrix:
php-version:
- "8.1"
- "8.2"
- "8.3"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
fail-fast: false
matrix:
php-version:
- "8.1"
- "8.2"
- "8.3"

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
"source": "https://github.com/kuaukutsu/poc-task"
},
"require": {
"php": ">=8.2",
"php": ">=8.1",
"ext-pcntl": "*",
"kuaukutsu/ds-collection": "^2.0.3",
"ramsey/uuid": "^4.7",
"php-di/php-di": "^7.0.5",
"revolt/event-loop": "^1.0",
"symfony/console": "^7.0",
"symfony/process": "^7.0",
"symfony/property-access": "^7.0",
"symfony/serializer": "^7.0"
"symfony/console": "^6.4|^7.0",
"symfony/process": "^6.4|^7.0",
"symfony/property-access": "^6.4|^7.0",
"symfony/serializer": "^6.4|^7.0"
},
"require-dev": {
"ext-sync": "*",
Expand Down
6 changes: 4 additions & 2 deletions docker/php/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM ghcr.io/kuaukutsu/php:8.3-cli as app_cli_build
FROM ghcr.io/kuaukutsu/php:8.1-cli as app_cli_81_build
FROM ghcr.io/kuaukutsu/php:8.2-cli as app_cli_82_build
FROM ghcr.io/kuaukutsu/php:8.3-cli as app_cli_83_build

FROM app_cli_build AS app_setup
FROM app_cli_83_build AS app_setup

# Arguments
ARG UID=10001
Expand Down
17 changes: 17 additions & 0 deletions docker/php/cli/conf/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,20 @@ expose_php = Off

[apc]
apc.enable_cli = 1

[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=1

; Determines if Zend OPCache is enabled for the CLI version of PHP
opcache.enable_cli=1

; The OPcache shared memory storage size.
opcache.memory_consumption=128

; The amount of memory for interned strings in Mbytes.
opcache.interned_strings_buffer=8

; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 1000000 are allowed.
opcache.max_accelerated_files=20000
1 change: 0 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
$rectorConfig->paths(
[
__DIR__ . '/src',
__DIR__ . '/tests',
]
);

Expand Down
2 changes: 1 addition & 1 deletion src/tools/TaskManagerOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function subscriptions(): array
$subscriptions[Event::ProcessSuccess->value] = $this->traceProcessSuccess(...);

/**
* @var array<class-string<Event>, callable(Event $name, EventInterface $event):void>
* @var array<class-string<Event>, callable(Event $name, EventInterface $event):void> $subscriptions
*/
return $subscriptions;
}
Expand Down

0 comments on commit 911dd90

Please sign in to comment.