Commit caa5370c authored by Matt Glaman's avatar Matt Glaman
Browse files

Issue #3278393 by mglaman: Argument #3 ($alias) must be of type string, null given

parent b1dc1f1f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -202,7 +202,7 @@ final class RemoteDataQuery extends QueryPluginBase {
   *   The table.
   * @param string $field
   *   The field's name.
   * @param string $alias
   * @param string|null $alias
   *   The alias.
   * @param array $params
   *   The params.
@@ -213,7 +213,7 @@ final class RemoteDataQuery extends QueryPluginBase {
   * @todo we could support this, passing to dispatched event. That way a
   *   JSON:API or GraphQL request would not need to hardcode requested fields.
   */
  public function addField(string $table, string $field, string $alias = '', array $params = []): string {
  public function addField(string $table, string $field, ?string $alias = '', array $params = []): string {
    return $field;
  }