Skip to content

Commit

Permalink
updated phpstan.neon WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 30, 2022
1 parent 9cbdbd6 commit 0fbb8a8
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
parameters:
excludePaths:
analyse:
- src/Latte/Compiler/TagParser.php

level: 5

paths:
- src

ignoreErrors:
- "#^Unsafe usage of new static\\(\\)\\.$#"
- "#^.*\\:\\:__toString\\(\\) invoked with 1 parameter, 0 required\\.$#"

-
message: "#^Variable \\$code might not be defined\\.$#"
count: 2
path: src/Latte/Compiler/PhpWriter.php

-
message: "#^Binary operation \"\\+\" between string and 0 results in an error\\.$#"
count: 1
path: src/Latte/Runtime/Filters.php

-
message: "#^If condition is always false\\.$#"
count: 4
path: src/compatibility.php
- '#Unsafe usage of new static\(\)#'
- '#Match expression does not handle remaining value.*#'

0 comments on commit 0fbb8a8

Please sign in to comment.