Skip to content

Commit

Permalink
Clearing up the baseline files to generate them from scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
escopecz committed Apr 23, 2024
1 parent 2dc26dd commit de21779
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 91 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
run: bin/php-cs-fixer fix ${{ env.PLUGIN_DIR }} --config=.php-cs-fixer.php -v --dry-run --show-progress=dots --diff

# - name: PHPSTAN - baseline (debug, enable if you need to regenerate baseline for all PHP versions)
# run: bin/phpstan --configuration=plugins/CustomObjectsBundle/phpstan.neon --generate-baseline=var/logs/phpstan-baseline-${{ matrix.php-versions }}.neon --allow-empty-baseline
# run: bin/phpstan --configuration=${{ env.PLUGIN_DIR }}/phpstan.neon --generate-baseline=var/logs/phpstan-baseline-${{ matrix.php-versions }}.neon --allow-empty-baseline

- name: PHPSTAN
run: bin/phpstan --configuration=${{ env.PLUGIN_DIR }}/phpstan.neon
Expand Down
45 changes: 0 additions & 45 deletions phpstan-baseline-7.4.neon
Original file line number Diff line number Diff line change
@@ -1,47 +1,2 @@
parameters:
ignoreErrors:
-
message: "#^Call to an undefined method Mautic\\\\LeadBundle\\\\Event\\\\ImportProcessEvent\\:\\:addWarning\\(\\)\\.$#"
count: 1
path: EventListener/ImportSubscriber.php

-
message: "#^Access to undefined constant Mautic\\\\LeadBundle\\\\Segment\\\\ContactSegmentFilterFactory\\:\\:CUSTOM_OPERATOR\\.$#"
count: 1
path: EventListener/SegmentFiltersMergeSubscriber.php

-
message: "#^Call to method getFilters\\(\\) on an unknown class Mautic\\\\LeadBundle\\\\Event\\\\LeadListMergeFiltersEvent\\.$#"
count: 1
path: EventListener/SegmentFiltersMergeSubscriber.php

-
message: "#^Call to method setFilters\\(\\) on an unknown class Mautic\\\\LeadBundle\\\\Event\\\\LeadListMergeFiltersEvent\\.$#"
count: 1
path: EventListener/SegmentFiltersMergeSubscriber.php

-
message: "#^Parameter \\$event of method MauticPlugin\\\\CustomObjectsBundle\\\\EventListener\\\\SegmentFiltersMergeSubscriber\\:\\:mergeCustomObjectFilters\\(\\) has invalid type Mautic\\\\LeadBundle\\\\Event\\\\LeadListMergeFiltersEvent\\.$#"
count: 1
path: EventListener/SegmentFiltersMergeSubscriber.php

-
message: "#^Call to an undefined method Mautic\\\\LeadBundle\\\\Segment\\\\ContactSegmentFilterCrate\\:\\:getMergedProperty\\(\\)\\.$#"
count: 1
path: Helper/QueryFilterHelper.php

-
message: "#^Constant MAUTIC_TABLE_PREFIX not found\\.$#"
count: 3
path: Helper/QueryFilterHelper.php

-
message: "#^Parameter \\#3 \\$type of method Mautic\\\\LeadBundle\\\\Segment\\\\Query\\\\QueryBuilder\\:\\:setParameter\\(\\) expects string\\|null, int given\\.$#"
count: 1
path: Helper/QueryFilterHelper.php

-
message: "#^Constant MAUTIC_TABLE_PREFIX not found\\.$#"
count: 1
path: Segment/Query/Filter/CustomObjectMergedFilterQueryBuilder.php

45 changes: 0 additions & 45 deletions phpstan-baseline-8.0.neon
Original file line number Diff line number Diff line change
@@ -1,47 +1,2 @@
parameters:
ignoreErrors:
-
message: "#^Call to an undefined method Mautic\\\\LeadBundle\\\\Event\\\\ImportProcessEvent\\:\\:addWarning\\(\\)\\.$#"
count: 1
path: EventListener/ImportSubscriber.php

-
message: "#^Access to undefined constant Mautic\\\\LeadBundle\\\\Segment\\\\ContactSegmentFilterFactory\\:\\:CUSTOM_OPERATOR\\.$#"
count: 1
path: EventListener/SegmentFiltersMergeSubscriber.php

-
message: "#^Call to method getFilters\\(\\) on an unknown class Mautic\\\\LeadBundle\\\\Event\\\\LeadListMergeFiltersEvent\\.$#"
count: 1
path: EventListener/SegmentFiltersMergeSubscriber.php

-
message: "#^Call to method setFilters\\(\\) on an unknown class Mautic\\\\LeadBundle\\\\Event\\\\LeadListMergeFiltersEvent\\.$#"
count: 1
path: EventListener/SegmentFiltersMergeSubscriber.php

-
message: "#^Parameter \\$event of method MauticPlugin\\\\CustomObjectsBundle\\\\EventListener\\\\SegmentFiltersMergeSubscriber\\:\\:mergeCustomObjectFilters\\(\\) has invalid type Mautic\\\\LeadBundle\\\\Event\\\\LeadListMergeFiltersEvent\\.$#"
count: 1
path: EventListener/SegmentFiltersMergeSubscriber.php

-
message: "#^Call to an undefined method Mautic\\\\LeadBundle\\\\Segment\\\\ContactSegmentFilterCrate\\:\\:getMergedProperty\\(\\)\\.$#"
count: 1
path: Helper/QueryFilterHelper.php

-
message: "#^Constant MAUTIC_TABLE_PREFIX not found\\.$#"
count: 1
path: Helper/QueryFilterHelper.php

-
message: "#^Parameter \\#3 \\$type of method Mautic\\\\LeadBundle\\\\Segment\\\\Query\\\\QueryBuilder\\:\\:setParameter\\(\\) expects string\\|null, int given\\.$#"
count: 1
path: Helper/QueryFilterHelper.php

-
message: "#^Constant MAUTIC_TABLE_PREFIX not found\\.$#"
count: 1
path: Segment/Query/Filter/CustomObjectMergedFilterQueryBuilder.php

0 comments on commit de21779

Please sign in to comment.