Skip to content

Commit c982b9e

Browse files
authored
Merge pull request #5957 from derrabus/deprecate/connection-execute-update
2 parents 42877bf + e10f00b commit c982b9e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Connection.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1940,13 +1940,20 @@ private function handleDriverException(
19401940
/**
19411941
* BC layer for a wide-spread use-case of old DBAL APIs
19421942
*
1943-
* @deprecated This API is deprecated and will be removed after 2022
1943+
* @deprecated Use {@see executeStatement()} instead
19441944
*
19451945
* @param array<mixed> $params The query parameters
19461946
* @param array<int|string|null> $types The parameter types
19471947
*/
19481948
public function executeUpdate(string $sql, array $params = [], array $types = []): int
19491949
{
1950+
Deprecation::trigger(
1951+
'doctrine/dbal',
1952+
'https://github.com/doctrine/dbal/pull/4163',
1953+
'%s is deprecated, please use executeStatement() instead.',
1954+
__METHOD__,
1955+
);
1956+
19501957
return $this->executeStatement($sql, $params, $types);
19511958
}
19521959

0 commit comments

Comments
 (0)