Skip to content

Commit f220f00

Browse files
committed
separate static analysis bootstrap
1 parent 32c934f commit f220f00

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
parameters:
22
level: max
33
bootstrapFiles:
4-
- %rootDir%/../../../tests/bootstrap.php
4+
- %rootDir%/../../../tests/static_analysis_bootstrap.php
55
paths:
66
- %rootDir%/../../../MO4
77
- %rootDir%/../../../tests

psalm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xmlns="https://getpsalm.org/schema/config"
66
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
7-
autoloader="tests/bootstrap.php"
7+
autoloader="tests/static_analysis_bootstrap.php"
88
>
99
<projectFiles>
1010
<directory name="MO4" />

tests/static_analysis_bootstrap.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
/**
4+
* This file is part of the mo4-coding-standard (phpcs standard)
5+
*
6+
* Bootstrap file for PHP_CodeSniffer MO4 Coding Standard unit tests.
7+
*
8+
* @author Xaver Loppenstedt <[email protected]>
9+
*
10+
* @license http://spdx.org/licenses/MIT MIT License
11+
*
12+
* @link https://github.com/mayflower/mo4-coding-standard
13+
*/
14+
15+
declare(strict_types=1);
16+
17+
require_once __DIR__.'/../vendor/squizlabs/php_codesniffer/autoload.php';
18+
require_once __DIR__.'/../vendor/squizlabs/php_codesniffer/src/Util/Tokens.php';

0 commit comments

Comments
 (0)