Skip to content

Commit

Permalink
update to php8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Dec 26, 2024
1 parent f581da1 commit 736ae43
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: shivammathur/setup-php@v2
with:
php-version: 8.3
php-version: 8.4
coverage: none

- name: Composer install
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:

- uses: shivammathur/setup-php@v2
with:
php-version: 8.3
php-version: 8.4
coverage: none

- name: Composer install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-inspect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: shivammathur/setup-php@v2
with:
php-version: 8.3
php-version: 8.4
coverage: none

- name: Composer install
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:

- uses: shivammathur/setup-php@v2
with:
php-version: 8.3
php-version: 8.4
coverage: none

- name: Composer install
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^8.3",
"php": "^8.4",
"ext-json": "*",
"symfony/console": "^7.2",
"twig/twig": "^3.17"
Expand Down
2 changes: 1 addition & 1 deletion src/Command/ExportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
foreach ($this->versions as $variant => $variantConfig) {
foreach ($variantConfig as $version => $config) {
$tags = array_map(
static fn(string $tag): string => 'juliangut/phpdev:' . trim($tag),
static fn(string $tag): string => 'juliangut/phpdev:' . mb_trim($tag),
$config['tags'],
);

Expand Down
2 changes: 1 addition & 1 deletion src/Command/ScaffoldAllCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function execute(InputInterface $input, OutputInterface $output): int

$directory = $input->getOption('directory');
$this->assertStringType($directory);
$directory = rtrim($directory, \DIRECTORY_SEPARATOR);
$directory = mb_rtrim($directory, \DIRECTORY_SEPARATOR);
$destinationDir = getcwd() . '/' . $directory;
$this->removeDirectory($destinationDir);
if (!mkdir($destinationDir, 0o755, true) && !is_dir($destinationDir)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Command/ScaffoldCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function execute(InputInterface $input, OutputInterface $output): int

$directory = $input->getOption('directory');
$this->assertStringType($directory);
$destinationDir = getcwd() . '/' . rtrim($directory, \DIRECTORY_SEPARATOR);
$destinationDir = getcwd() . '/' . mb_rtrim($directory, \DIRECTORY_SEPARATOR);
$this->removeDirectory($destinationDir);
if (!mkdir($destinationDir, 0o755, true) && !is_dir($destinationDir)) {
$ioStyle->error(\sprintf('Not possible to create "%s" directory', $destinationDir));
Expand Down

0 comments on commit 736ae43

Please sign in to comment.