Skip to content

Commit

Permalink
Revert hack for FA 6.5.0; bump to PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Mar 3, 2024
1 parent 111fae9 commit 508ca36
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@ jobs:
fail-fast: false
matrix:
php-version:
- '8.1'
- '8.2'
- '8.3'
dependencies:
- stable
include:
- php-version: '8.1'
- php-version: '8.2'
dependencies: low
- php-version: '8.3'
dependencies: dev
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
}
],
"require": {
"php": ">= 8.1",
"php": ">= 8.2",
"composer-runtime-api": "^2.1",
"fortawesome/font-awesome": "^6.3",
"symfony/dependency-injection": "^6.2 || ^7",
"symfony/http-kernel": "^6.2 || ^7",
"fortawesome/font-awesome": "^6.5.1",
"symfony/dependency-injection": "^6.4 || ^7",
"symfony/http-kernel": "^6.4 || ^7",
"twig/twig": "^3.5"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.50",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.10.59",
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^10.5.10 || ^11.0.3",
"phpunit/phpunit": "^11.0.3",
"symfony/filesystem": "^6.4 || ^7",
"symfony/framework-bundle": "^6.4 || ^7",
"symfony/twig-bundle": "^6.4 || ^7"
Expand Down
8 changes: 1 addition & 7 deletions src/DependencyInjection/TwigAwesomeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,7 @@ private function determineFaPath(): string
$path = InstalledVersions::getInstallPath(self::PACKAGE_NAME)
?? throw new RuntimeException('Unable to determine FontAwesome\'s installation path.');

$path = realpath($path)
return realpath($path)
?: throw new RuntimeException('Unable to determine FontAwesome\'s installation path.');

if (is_dir($path.'/free')) {
$path .= '/free';
}

return $path;
}
}
4 changes: 2 additions & 2 deletions src/IconLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
use Rabus\TwigAwesomeBundle\Exception\InvalidArgumentException;
use Rabus\TwigAwesomeBundle\Exception\RuntimeException;

final class IconLocator
final readonly class IconLocator
{
public function __construct(
private readonly string $fontAwesomePath,
private string $fontAwesomePath,
) {
}

Expand Down

0 comments on commit 508ca36

Please sign in to comment.