-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add phpstan config with baseline Co-authored-by: Alexander M. Turek <me@derrabus.de> * Add psalm config with baseline * Add psalm, phpstan dev requirement * Add workflow config --------- Co-authored-by: Alexander M. Turek <me@derrabus.de>
- Loading branch information
Showing
6 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Static Analysis" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "master" | ||
paths: | ||
- .github/workflows/static-analysis.yml | ||
- composer.* | ||
- src/** | ||
- phpstan* | ||
- psalm* | ||
push: | ||
branches: | ||
- "master" | ||
paths: | ||
- .github/workflows/static-analysis.yml | ||
- composer.* | ||
- src/** | ||
- phpstan* | ||
- psalm* | ||
|
||
jobs: | ||
static-analysis: | ||
uses: "doctrine/.github/.github/workflows/static-analysis.yml@4.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Property DoctrineExtensions\\\\Query\\\\Mysql\\\\Collate\\:\\:\\$collation \\(null\\) does not accept string\\.$#" | ||
count: 1 | ||
path: src/Query/Mysql/Collate.php | ||
|
||
- | ||
message: "#^Property DoctrineExtensions\\\\Query\\\\Mysql\\\\Collate\\:\\:\\$stringPrimary \\(null\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\.$#" | ||
count: 1 | ||
path: src/Query/Mysql/Collate.php | ||
|
||
- | ||
message: "#^Property DoctrineExtensions\\\\Query\\\\Mysql\\\\Lag\\:\\:\\$aggregateExpression \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\AggregateExpression\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string\\.$#" | ||
count: 1 | ||
path: src/Query/Mysql/Lag.php | ||
|
||
- | ||
message: "#^Property DoctrineExtensions\\\\Query\\\\Mysql\\\\Lag\\:\\:\\$offset \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticExpression\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string\\.$#" | ||
count: 1 | ||
path: src/Query/Mysql/Lag.php | ||
|
||
- | ||
message: "#^Property DoctrineExtensions\\\\Query\\\\Mysql\\\\Lead\\:\\:\\$aggregateExpression \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\AggregateExpression\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string\\.$#" | ||
count: 1 | ||
path: src/Query/Mysql/Lead.php | ||
|
||
- | ||
message: "#^Property DoctrineExtensions\\\\Query\\\\Mysql\\\\Lead\\:\\:\\$offset \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticExpression\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string\\.$#" | ||
count: 1 | ||
path: src/Query/Mysql/Lead.php | ||
|
||
- | ||
message: "#^Property DoctrineExtensions\\\\Query\\\\Sqlite\\\\Week\\:\\:\\$mode \\(int\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\Literal\\.$#" | ||
count: 1 | ||
path: src/Query/Sqlite/Week.php | ||
|
||
- | ||
message: "#^Method DoctrineExtensions\\\\Types\\\\ZendDateType\\:\\:convertToPHPValue\\(\\) should return Zend_Date but returns null\\.$#" | ||
count: 1 | ||
path: src/Types/ZendDateType.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
parameters: | ||
level: 3 | ||
paths: | ||
- src | ||
phpVersion: 80300 | ||
|
||
includes: | ||
- phpstan-baseline.neon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<files psalm-version="5.22.2@d768d914152dbbf3486c36398802f74e80cfde48"> | ||
<file src="src/Query/Sqlite/DateFormat.php"> | ||
<NoValue> | ||
<code><![CDATA[$format]]></code> | ||
</NoValue> | ||
</file> | ||
<file src="src/Types/ZendDateType.php"> | ||
<MissingFile> | ||
<code><![CDATA[require_once 'Zend/Date.php']]></code> | ||
</MissingFile> | ||
</file> | ||
</files> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
errorLevel="8" | ||
phpVersion="8.3" | ||
resolveFromConfigFile="true" | ||
findUnusedBaselineEntry="true" | ||
findUnusedCode="false" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://getpsalm.org/schema/config" | ||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" | ||
errorBaseline="psalm-baseline.xml" | ||
> | ||
<projectFiles> | ||
<directory name="src" /> | ||
</projectFiles> | ||
</psalm> |