File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 77use Rabus \TwigAwesomeBundle \Exception \InvalidArgumentException ;
88use 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
You can’t perform that action at this time.
0 commit comments