@@ -248,12 +248,14 @@ private static function getErrorHandler(): \Closure
248248 };
249249 }
250250
251+ #[\Override]
251252 public function close (): void
252253 {
253254 $ this ->handle = null ;
254255 parent ::close ();
255256 }
256257
258+ #[\Override]
257259 public function isClosed (): bool
258260 {
259261 return !$ this ->handle instanceof \PgSql \Connection;
@@ -378,6 +380,7 @@ private function fetchNextResult(string $sql): ?PostgresResult
378380 return null ;
379381 }
380382
383+ #[\Override]
381384 public function statementExecute (string $ name , array $ params ): PostgresResult
382385 {
383386 \assert (isset ($ this ->statements [$ name ]), "Named statement not found when executing " );
@@ -388,6 +391,7 @@ public function statementExecute(string $name, array $params): PostgresResult
388391 /**
389392 * @throws \Error
390393 */
394+ #[\Override]
391395 public function statementDeallocate (string $ name ): void
392396 {
393397 if ($ this ->isClosed ()) {
@@ -414,6 +418,7 @@ public function statementDeallocate(string $name): void
414418 $ storage ->future ->ignore ();
415419 }
416420
421+ #[\Override]
417422 public function escapeByteA (string $ data ): string
418423 {
419424 if ($ this ->handle === null ) {
@@ -423,6 +428,7 @@ public function escapeByteA(string $data): string
423428 return \pg_escape_bytea ($ this ->handle , $ data );
424429 }
425430
431+ #[\Override]
426432 public function query (string $ sql ): PostgresResult
427433 {
428434 if ($ this ->handle === null ) {
@@ -432,6 +438,7 @@ public function query(string $sql): PostgresResult
432438 return $ this ->createResult ($ this ->send (\pg_send_query (...), $ sql ), $ sql );
433439 }
434440
441+ #[\Override]
435442 public function execute (string $ sql , array $ params = []): PostgresResult
436443 {
437444 if ($ this ->handle === null ) {
@@ -450,6 +457,7 @@ public function execute(string $sql, array $params = []): PostgresResult
450457 return $ this ->createResult ($ result , $ sql );
451458 }
452459
460+ #[\Override]
453461 public function prepare (string $ sql ): PostgresStatement
454462 {
455463 if ($ this ->handle === null ) {
@@ -514,6 +522,7 @@ public function prepare(string $sql): PostgresStatement
514522 return new PostgresConnectionStatement ($ this , $ name , $ sql , $ names );
515523 }
516524
525+ #[\Override]
517526 public function notify (string $ channel , string $ payload = "" ): PostgresResult
518527 {
519528 if ($ payload === "" ) {
@@ -523,6 +532,7 @@ public function notify(string $channel, string $payload = ""): PostgresResult
523532 return $ this ->query (\sprintf ("NOTIFY %s, %s " , $ this ->quoteIdentifier ($ channel ), $ this ->quoteLiteral ($ payload )));
524533 }
525534
535+ #[\Override]
526536 public function listen (string $ channel ): PostgresListener
527537 {
528538 if (isset ($ this ->listeners [$ channel ])) {
@@ -567,6 +577,7 @@ private function unlisten(string $channel): void
567577 }
568578 }
569579
580+ #[\Override]
570581 public function quoteLiteral (string $ data ): string
571582 {
572583 if ($ this ->handle === null ) {
@@ -576,6 +587,7 @@ public function quoteLiteral(string $data): string
576587 return \pg_escape_literal ($ this ->handle , $ data );
577588 }
578589
590+ #[\Override]
579591 public function quoteIdentifier (string $ name ): string
580592 {
581593 if ($ this ->handle === null ) {
0 commit comments