Skip to content

Commit

Permalink
Merge pull request #319 from thecodingmachine/configMap
Browse files Browse the repository at this point in the history
FEATURE: move the file CustomPhpStanFunctionMap to the config directory and improved the cache CI
  • Loading branch information
Kharhamel authored Jan 5, 2022
2 parents 19ef450 + 7b24dae commit 418777f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ jobs:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"

- name: "Get current date for the daily cache"
id: 'date'
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"

- name: "Cache the php documentation"
id: cache-php-doc
uses: "actions/cache@v1"
with:
path: "generator/doc/doc-en"
key: "php-doc"
key: php-doc-${{ steps.date.outputs.date }}

- name: "Check out salathe/phpdoc-base"
uses: "actions/checkout@v2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PhpStanFunctionMapReader
public function __construct()
{
$this->functionMap = require 'phar://'.__DIR__.'/../../vendor/phpstan/phpstan/phpstan.phar/resources/functionMap.php';
$this->customFunctionMap = require __DIR__.'/CustomPhpStanFunctionMap.php';
$this->customFunctionMap = require __DIR__ . '/../../config/CustomPhpStanFunctionMap.php';
}

public function hasFunction(string $functionName): bool
Expand Down

0 comments on commit 418777f

Please sign in to comment.