Missing use statement should be avoided 3

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

  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. }