Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ parameters:
- stubs/DBAL/Types/Type.stub
- stubs/DBAL/Exception.stub
- stubs/DBAL/Result.stub
- stubs/DBAL/Statement.stub
- stubs/DocumentManager.stub
- stubs/DocumentRepository.stub
- stubs/EntityManager.stub
Expand Down
9 changes: 9 additions & 0 deletions stubs/DBAL/Connection.stub
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ use Throwable;

class Connection
{
/**
* Prepares an SQL statement.
*
* @param __doctrine-literal-string $sql The SQL statement to prepare.
*
* @throws Exception
*/
public function prepare(string $sql): Statement;

/**
* Executes an SQL statement with the given parameters and returns the number of affected rows.
*
Expand Down
9 changes: 9 additions & 0 deletions stubs/DBAL/Connection4.stub
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ use Throwable;
*/
class Connection
{
/**
* Prepares an SQL statement.
*
* @param __doctrine-literal-string $sql The SQL statement to prepare.
*
* @throws Exception
*/
public function prepare(string $sql): Statement;

/**
* Executes an SQL statement with the given parameters and returns the number of affected rows.
*
Expand Down
8 changes: 8 additions & 0 deletions stubs/DBAL/Statement.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Doctrine\DBAL;

class Statement
{

}
Loading