• Reset your password
Home
OO PHP, Drupal, Symfony Developer and Architect
Tim Rabbetts

Main navigation

  • Home
  • Blog
  • Log in

phpcs times out - takes forever

Breadcrumb

  • Home
  • blog
  • phpcs times out takes forever
  • phpcs times out - takes forever
Tim
Rabbetts
By zarexogre | Wed, 12/10/2022
dog, dachshund, animal
php
phpcs

I found an issue recently where phpcs (PHP Code Sniffer) was taking ages and times out on a directory.  After tracking the issue down to a single file, I found that the line of code causing the issue was a comment.

/**   
 *
 * bla
 *   @code $params = ['message' => 'Email body', subject' => 'Email subject']
 * bla
 */

I have no idea why this happens but took this line of code out and it started working fine.