Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Commit 7310a49

Browse files
committed
Github workflow - improve cache
1 parent ae49877 commit 7310a49

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.github/workflows/code_analysis.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,28 @@ jobs:
2828
- name: Checkout
2929
uses: actions/checkout@v2
3030

31+
32+
# see https://github.com/shivammathur/setup-php
3133
- name: Setup PHP
32-
# see https://github.com/shivammathur/setup-php
3334
uses: shivammathur/setup-php@v2
3435
with:
3536
php-version: 7.3
3637
coverage: none
3738

39+
40+
# see https://github.com/actions/cache/blob/main/examples.md#php---composer
41+
- name: Get Composer Cache Directory
42+
id: composer-cache
43+
run: |
44+
echo "::set-output name=dir::$(composer config cache-files-dir)"
45+
- uses: actions/cache@v2
46+
with:
47+
path: ${{ steps.composer-cache.outputs.dir }}
48+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
49+
restore-keys: |
50+
${{ runner.os }}-composer-
51+
52+
3853
- name: Install Composer
3954
run: composer install --no-progress
4055

src/Exception/FileReadException.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99

1010
class FileReadException extends LogicException
1111
{
12-
/**
13-
* @var string
14-
*/
12+
/** @var string */
1513
private $requiredfile;
1614

1715
public function __construct(string $requiredfile, string $message = '', int $code = 0, ?Throwable $previous = null)
@@ -20,9 +18,6 @@ public function __construct(string $requiredfile, string $message = '', int $cod
2018
$this->requiredfile = $requiredfile;
2119
}
2220

23-
/**
24-
* @return string
25-
*/
2621
public function getRequiredfile(): string
2722
{
2823
return $this->requiredfile;

0 commit comments

Comments
 (0)