Problem/Motivation

PHPStorm is complaining about needed parameter in getAnalyzerResult(). Seems like a bug in ProcessorResultInterface.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

toncic92 created an issue. See original summary.

toncic’s picture

Status: Active » Needs review
FileSize
1.49 KB

Refactor getAnalyzerResult function.

mbovan’s picture

Status: Needs review » Needs work

I meant to fix the method signature and its documentation: ProcessorResultInterface::getAnalyzerResult.

toncic’s picture

Status: Needs work » Needs review
FileSize
1.86 KB
906 bytes

Yes of course.

mbovan’s picture

Status: Needs review » Needs work
+++ b/src/ProcessorResultInterface.php
@@ -48,16 +48,12 @@ interface ProcessorResultInterface {
-  public function getAnalyzerResult($topic);
+  public function getAnalyzerResult();

As discussed, we should just synchronize the method signatures (base implementation and the interface representation).

You did a good part of #2770567: Remove ability to extend results by "topic" now that there are contexts. So you can upload a patch there.

Edit: Please update the issue title to describes to needed change.

toncic’s picture

Title: Remove $topic from getAnalyzerResult call » Add default parameter in interface
Status: Needs work » Needs review
FileSize
1.33 KB
1.63 KB

Added default parameter in getAnalyzerResult in ProcessorResultInterface.

Status: Needs review » Needs work

The last submitted patch, 6: remove_topic_from-2817027-6.patch, failed testing.

toncic’s picture

Status: Needs work » Needs review
FileSize
1.33 KB

Re based patch.

  • mbovan committed 5732254 on 8.x-1.x authored by toncic92
    Issue #2817027 by toncic92: Add default parameter in interface
    
mbovan’s picture

Status: Needs review » Fixed

Fixed. :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.