Missing use statement should be avoided 3

More information: https://insight.symfony.com/what-we-analyse/php.missing_use_statement

Updated rule! We've recently tweaked this rule. This may explain the disappearance of false positives, or new suggestions not linked to any activity in the code.
  1. class ContradictoryModifiersException extends InvalidSyntaxException
  2. {
  3. /**
  4. * {@inheritDoc}
  5. */
  6. public function __construct($message = '', $code = 0, Exception $previous = null)

    The Exception type hint resolves to the BlueM\SearchstringParser\Exception class which PHP does not seem to be able to autoload.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Carsten Blüm
  7. {
  8. parent::__construct('The search string contains contradictory instructions. (Examples: “-Word1 OR Word2”, “Word1 NOT +Word”)');
  9. }
  10. }
  1. class ModifierAsFirstOrLastTermException extends InvalidSyntaxException
  2. {
  3. /**
  4. * {@inheritDoc}
  5. */
  6. public function __construct($message = '', $code = 0, Exception $previous = null)

    The Exception type hint resolves to the BlueM\SearchstringParser\Exception class which PHP does not seem to be able to autoload.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Carsten Blüm
  7. {
  8. parent::__construct('The search string must neither start nor end with “AND” or “OR”.');
  9. }
  10. }
  1. class UnclosedQuoteException extends InvalidSyntaxException
  2. {
  3. /**
  4. * {@inheritDoc}
  5. */
  6. public function __construct($message = '', $code = 0, Exception $previous = null)

    The Exception type hint resolves to the BlueM\SearchstringParser\Exception class which PHP does not seem to be able to autoload.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Carsten Blüm
  7. {
  8. parent::__construct('The search string contains an unclosed quote (incomplete phrase)');
  9. }
  10. }