Skip to content

Commit 508ca36

Browse files
committed
Revert hack for FA 6.5.0; bump to PHP 8.2
1 parent 111fae9 commit 508ca36

4 files changed

Lines changed: 9 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,12 @@ jobs:
6464
fail-fast: false
6565
matrix:
6666
php-version:
67-
- '8.1'
6867
- '8.2'
6968
- '8.3'
7069
dependencies:
7170
- stable
7271
include:
73-
- php-version: '8.1'
72+
- php-version: '8.2'
7473
dependencies: low
7574
- php-version: '8.3'
7675
dependencies: dev

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010
}
1111
],
1212
"require": {
13-
"php": ">= 8.1",
13+
"php": ">= 8.2",
1414
"composer-runtime-api": "^2.1",
15-
"fortawesome/font-awesome": "^6.3",
16-
"symfony/dependency-injection": "^6.2 || ^7",
17-
"symfony/http-kernel": "^6.2 || ^7",
15+
"fortawesome/font-awesome": "^6.5.1",
16+
"symfony/dependency-injection": "^6.4 || ^7",
17+
"symfony/http-kernel": "^6.4 || ^7",
1818
"twig/twig": "^3.5"
1919
},
2020
"require-dev": {
2121
"friendsofphp/php-cs-fixer": "^3.50",
2222
"phpstan/extension-installer": "^1.3",
2323
"phpstan/phpstan": "^1.10.59",
2424
"phpstan/phpstan-phpunit": "^1.3",
25-
"phpunit/phpunit": "^10.5.10 || ^11.0.3",
25+
"phpunit/phpunit": "^11.0.3",
2626
"symfony/filesystem": "^6.4 || ^7",
2727
"symfony/framework-bundle": "^6.4 || ^7",
2828
"symfony/twig-bundle": "^6.4 || ^7"

src/DependencyInjection/TwigAwesomeExtension.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,7 @@ private function determineFaPath(): string
3737
$path = InstalledVersions::getInstallPath(self::PACKAGE_NAME)
3838
?? throw new RuntimeException('Unable to determine FontAwesome\'s installation path.');
3939

40-
$path = realpath($path)
40+
return realpath($path)
4141
?: throw new RuntimeException('Unable to determine FontAwesome\'s installation path.');
42-
43-
if (is_dir($path.'/free')) {
44-
$path .= '/free';
45-
}
46-
47-
return $path;
4842
}
4943
}

src/IconLocator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
use Rabus\TwigAwesomeBundle\Exception\InvalidArgumentException;
88
use Rabus\TwigAwesomeBundle\Exception\RuntimeException;
99

10-
final class IconLocator
10+
final readonly class IconLocator
1111
{
1212
public function __construct(
13-
private readonly string $fontAwesomePath,
13+
private string $fontAwesomePath,
1414
) {
1515
}
1616

0 commit comments

Comments
 (0)