Skip to content

Commit 5856b78

Browse files
authored
Merge pull request #34 from madewithlove/use-php-81-by-default
Use php 81 by default
2 parents 15fd0bd + 15580f6 commit 5856b78

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- uses: actions/checkout@master
1010
- uses: shivammathur/setup-php@master
1111
with:
12-
php-version: '8.0'
12+
php-version: '8.1'
1313
- name: Install dependencies
1414
run: composer update
1515
- name: Run Psalm
@@ -49,7 +49,7 @@ jobs:
4949
- uses: actions/checkout@master
5050
- uses: shivammathur/setup-php@master
5151
with:
52-
php-version: '8.0'
52+
php-version: '8.1'
5353
- name: Install dependencies
5454
run: composer update
5555
- name: Run License Checker

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8-cli-alpine
1+
FROM php:8.1-cli-alpine
22

33
ENV COMPOSER_HOME /composer
44
ENV COMPOSER_ALLOW_SUPERUSER 1

bin/license-checker

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ foreach ($potentialAutoLoaderFiles as $potentialAutoLoaderFile) {
2626
}
2727
}
2828

29-
if (!$autoLoader) {
29+
if (!isset($autoLoader)) {
3030
throw new RuntimeException('vendor/autoload.php could not be found. Did you run `composer install`?');
3131
}
3232

33-
$application = new Application('License Checker', '0.0.1');
33+
$application = new Application('License Checker', '1.2.0');
3434

3535
$allowedLicensesParser = new AllowedLicensesParser(getcwd());
3636
$usedLicensesParser = new UsedLicensesParser(new UsedLicensesRetriever());

src/Commands/GenerateConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5353
try {
5454
/** @var string|null $fileName */
5555
$fileName = is_string($input->getOption('filename')) ? $input->getOption('filename') : null;
56-
$this->allowedLicensesParser->writeConfiguration(array_values($usedLicenses), $fileName);
56+
$this->allowedLicensesParser->writeConfiguration($usedLicenses, $fileName);
5757
$io->success('Configuration file successfully written');
5858
} catch (ConfigurationExists $e) {
5959
$io->error('The configuration file already exists. Please remove it before generating a new one.');

0 commit comments

Comments
 (0)