Issues (645)

src/FixedLanguageNegotiator.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Drupal\graphql;
4
5
use Drupal\language\LanguageNegotiator;
0 ignored issues
show
The type Drupal\language\LanguageNegotiator was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
/**
8
 * Fixed language negotiator.
9
 *
10
 * Respects the negotiator weights.
11
 *
12
 * @see https://www.drupal.org/project/drupal/issues/2952789
13
 */
14
class FixedLanguageNegotiator extends LanguageNegotiator {
15
16
  /**
17
   * {@inheritdoc}
18
   */
19
  protected function getEnabledNegotiators($type) {
20
    $negotiators = parent::getEnabledNegotiators($type);
21
    asort($negotiators, SORT_NUMERIC);
22
    return $negotiators;
23
  }
24
25
}
26