Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 418777f

Browse files
authoredJan 5, 2022
Merge pull request #319 from thecodingmachine/configMap
FEATURE: move the file CustomPhpStanFunctionMap to the config directory and improved the cache CI
2 parents 19ef450 + 7b24dae commit 418777f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
 

‎.github/workflows/continuous-integration.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,16 @@ jobs:
3131
coverage: "pcov"
3232
php-version: "${{ matrix.php-version }}"
3333

34+
- name: "Get current date for the daily cache"
35+
id: 'date'
36+
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
37+
3438
- name: "Cache the php documentation"
3539
id: cache-php-doc
3640
uses: "actions/cache@v1"
3741
with:
3842
path: "generator/doc/doc-en"
39-
key: "php-doc"
43+
key: php-doc-${{ steps.date.outputs.date }}
4044

4145
- name: "Check out salathe/phpdoc-base"
4246
uses: "actions/checkout@v2"

‎generator/src/PhpStanFunctions/PhpStanFunctionMapReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class PhpStanFunctionMapReader
1717
public function __construct()
1818
{
1919
$this->functionMap = require 'phar://'.__DIR__.'/../../vendor/phpstan/phpstan/phpstan.phar/resources/functionMap.php';
20-
$this->customFunctionMap = require __DIR__.'/CustomPhpStanFunctionMap.php';
20+
$this->customFunctionMap = require __DIR__ . '/../../config/CustomPhpStanFunctionMap.php';
2121
}
2222

2323
public function hasFunction(string $functionName): bool

0 commit comments

Comments
 (0)
Please sign in to comment.