The expression return $this->link could return the type Carno\Database\Contracts\Transaction which is incompatible with the type-hinted return Carno\Database\Contracts\Executable. Consider adding an additional type-check to rule them out.
Loading history...
63
}
64
65
/**
66
* @param string $sql
67
* @param array $bind
68
* @return Promised
69
*/
70
public function execute(string $sql, array $bind = [])
The expression return $this->link->execute($sql, $bind) also could return the type Carno\Database\Results\C...atabase\Results\Updated which is incompatible with the documented return type Carno\Promise\Promised.
The method execute() does not exist on Carno\Database\Contracts\Transaction. Since it exists in all sub-types, consider adding an abstract or default implementation to Carno\Database\Contracts\Transaction.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
The method escape() does not exist on Carno\Database\Contracts\Transaction. Since it exists in all sub-types, consider adding an abstract or default implementation to Carno\Database\Contracts\Transaction.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
The method begin() does not exist on Carno\Database\Contracts\Executable. It seems like you code against a sub-type of Carno\Database\Contracts\Executable such as Carno\Database\Connectors\MySQL or Carno\Database\Programs\Transaction.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
The method commit() does not exist on Carno\Database\Contracts\Executable. It seems like you code against a sub-type of Carno\Database\Contracts\Executable such as Carno\Database\Connectors\MySQL or Carno\Database\Programs\Transaction.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
The method rollback() does not exist on Carno\Database\Contracts\Executable. It seems like you code against a sub-type of Carno\Database\Contracts\Executable such as Carno\Database\Connectors\MySQL or Carno\Database\Programs\Transaction.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation