Skip to content

Commit

Permalink
Merge pull request #5637 from samsonasik/fix-phpstan-notice
Browse files Browse the repository at this point in the history
Fix PHPStan notice on 1.4.4
  • Loading branch information
kenjis authored Feb 1, 2022
2 parents 72858ec + bf78c65 commit 156b24d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- 'system/**'
- composer.json
- phpstan.neon.dist
- phpstan-baseline.neon.dist
push:
branches:
- 'develop'
Expand All @@ -21,6 +22,7 @@ on:
- 'system/**'
- composer.json
- phpstan.neon.dist
- phpstan-baseline.neon.dist

jobs:
build:
Expand Down
10 changes: 5 additions & 5 deletions phpstan-baseline.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -640,11 +640,6 @@ parameters:
count: 1
path: system/Helpers/number_helper.php

-
message: "#^Variable \\$mockService in empty\\(\\) always exists and is always falsy\\.$#"
count: 1
path: system/Helpers/test_helper.php

-
message: "#^Variable \\$pool might not be defined\\.$#"
count: 2
Expand Down Expand Up @@ -980,3 +975,8 @@ parameters:
count: 1
path: system/View/Parser.php

-
message: "#^Result of \\|\\| is always false\\.$#"
paths:
- system/Cache/CacheFactory.php
- system/Filters/Filters.php

0 comments on commit 156b24d

Please sign in to comment.