Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ConsoleErrorListener #9850

Merged
merged 2 commits into from
Mar 29, 2021

Conversation

dennisameling
Copy link
Member

@dennisameling dennisameling commented Mar 28, 2021

Q A
Branch? features
Bug fix? yes
New feature? no
Deprecations? no
BC breaks? no
Automated tests included? yes
Related user documentation PR URL N/A
Related developer documentation PR URL N/A
Issue(s) addressed Fixes #9848

Description:

Fixes #9848 by simply checking if an $command object is not null (in the reported case it was null)

Steps to test this PR:

  1. @RCheesley since it's a one-line fix, can you simply copy the line to the appropriate file in the PR that you're testing? That should allow you to finish your testing!

@dennisameling dennisameling added the bug Issues or PR's relating to bugs label Mar 28, 2021
@dennisameling dennisameling added this to the Mautic 4.0 milestone Mar 28, 2021
@cla-bot cla-bot bot added the cla-signed The PR contributors have signed the contributors agreement label Mar 28, 2021
@codecov
Copy link

codecov bot commented Mar 28, 2021

Codecov Report

Merging #9850 (8198640) into features (21cc28b) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff               @@
##             features    #9850      +/-   ##
==============================================
+ Coverage       39.66%   39.68%   +0.01%     
- Complexity      33978    33979       +1     
==============================================
  Files            1989     1989              
  Lines          105731   105731              
==============================================
+ Hits            41943    41955      +12     
+ Misses          63788    63776      -12     
Impacted Files Coverage Δ Complexity Δ
.../CoreBundle/EventListener/ConsoleErrorListener.php 100.00% <100.00%> (+85.71%) 4.00 <0.00> (+1.00)

@RCheesley RCheesley added the T1 Low difficulty to fix (issue) or test (PR) label Mar 29, 2021
Copy link
Sponsor Member

@RCheesley RCheesley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect - fixed the issue I was having with the migrations!

@@ -38,6 +38,7 @@
<env name="MAXMIND_LICENSE_KEY" value=""/>
<env name="KERNEL_CLASS" value="AppKernel" />
<const name="IS_PHPUNIT" value="true"/>
<const name="MAUTIC_ENV" value="test"/>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prevents us from having to set it in single tests that need it (ConsoleErrorListener needs it)

@RCheesley RCheesley merged commit 76a4523 into mautic:features Mar 29, 2021
@dennisameling dennisameling deleted the fix-console-error-listener branch March 29, 2021 19:16
@RCheesley
Copy link
Sponsor Member

@all-contributors please add @dennisameling for code and @RCheesley for userTesting

@allcontributors
Copy link
Contributor

@RCheesley

I've put up a pull request to add @dennisameling! 🎉

@RCheesley
Copy link
Sponsor Member

RCheesley commented Mar 29, 2021

@all-contributors please add @RCheesley for userTesting

@allcontributors
Copy link
Contributor

@RCheesley

I've put up a pull request to add @RCheesley! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues or PR's relating to bugs cla-signed The PR contributors have signed the contributors agreement T1 Low difficulty to fix (issue) or test (PR)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mautic 4: When applying a migration at CLI there is an error from ConsoleErrorListener
2 participants