Created on 27 January 2023, over 1 year ago
Updated 22 June 2023, about 1 year ago

Problem/Motivation

Code contains various phpcs errors and warnings. These can be fixed when documentation issues has been resolved.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇳🇱Netherlands batigolix Utrecht

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Issue created by @batigolix
  • Assigned to batigolix
  • 🇳🇱Netherlands batigolix Utrecht
  • Status changed to Needs review over 1 year ago
  • 🇳🇱Netherlands batigolix Utrecht
  • Issue was unassigned.
  • 🇳🇱Netherlands batigolix Utrecht
  • 🇮🇳India sourabhjain

    I have fixed some more PHPCS issues. Please review.

  • Status changed to RTBC over 1 year ago
  • 🇬🇧United Kingdom schillerm

    Hi, tested patch #3 (module version 2.0.x-dev on D10 site) using phpcs and all previous issues are resolved.

  • Status changed to Fixed over 1 year ago
  • 🇳🇱Netherlands batigolix Utrecht

    Thanks

  • Status changed to Needs work about 1 year ago
  • 🇳🇱Netherlands batigolix Utrecht

    I reverted this commit.

    After applying the patch there is an dependency injection error:

    ArgumentCountError: Too few arguments to function Drupal\search_api_fast\Commands\SearchApiFastCommands::__construct(), 3 passed in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 262 and exactly 5 expected in /var/www/html/web/modules/contrib/search_api_fast/src/Commands/SearchApiFastCommands.php on line 94 #0 /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(262): Drupal\search_api_fast\Commands\SearchApiFastCommands->__construct(Object(Drupal\Core\Entity\EntityTypeManager), Object(Drupal\Core\Extension\ModuleHandler), Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
    
  • First commit to issue fork.
  • Assigned to nitin_lama
  • 🇮🇳India nitin_lama

    Patch #5 doesn't apply on 2.0.x branch

    Creating an MR with #3 changes. With some phpcs fixes.

  • @nitin_lama opened merge request.
  • Issue was unassigned.
  • Status changed to Needs review about 1 year ago
  • Status changed to Needs work about 1 year ago
  • 🇳🇱Netherlands batigolix Utrecht

    I still get this error:

     [error]  ArgumentCountError: Too few arguments to function Drupal\search_api_fast\Commands\SearchApiFastCommands::__construct(), 3 passed in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 262 and exactly 5 expected in Drupal\search_api_fast\Commands\SearchApiFastCommands->__construct() (line 94 of /var/www/html/web/modules/contrib/search_api_fast/src/Commands/SearchApiFastCommands.php) #0 /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(262): Drupal\search_api_fast\Commands\SearchApiFastCommands->__construct(Object(Drupal\Core\Entity\EntityTypeManager), Object(Drupal\Core\Extension\ModuleHandler), Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
    
  • 🇺🇸United States mikohl

    I'm working on this at DrupalCon 2023 Pittsburgh.

    I was able to reproduce this error. I created a new instance in DrupalPod and ran the drush status, and drush returned:

    gitpod /workspace/DrupalPod (main) $ drush status
    Notice: running 'drush status' in ddev
    PHP Fatal error:  Declaration of Drupal\search_api_fast\Commands\SearchApiFastCommands::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Drush\Commands\DrushCommands::setLogger(Psr\Log\LoggerInterface $logger): void in /var/www/html/repos/search_api_fast/src/Commands/SearchApiFastCommands.php on line 79
    
    Fatal error: Declaration of Drupal\search_api_fast\Commands\SearchApiFastCommands::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Drush\Commands\DrushCommands::setLogger(Psr\Log\LoggerInterface $logger): void in /var/www/html/repos/search_api_fast/src/Commands/SearchApiFastCommands.php on line 79
     [warning] Drush command terminated abnormally.
    Failed to execute command drush status: exit status 1
    Failed to run exec_dir drush status; error=exit status 1
    
  • First commit to issue fork.
  • Status changed to Fixed about 1 year ago
  • 🇳🇱Netherlands batigolix Utrecht

    Tested, approved & merged the MR. Thanks

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

Production build 0.69.0 2024