Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.3.x' into 1.4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 18, 2024
2 parents 27f09a4 + ac56740 commit d2282b6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 110 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true

[*.{php,phpt,stub}]
[*.{php,phpt}]
indent_style = tab
indent_size = 4

Expand Down
1 change: 0 additions & 1 deletion extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ parameters:
- stubs/DBAL/Exception/UniqueConstraintViolationException.stub
- stubs/DBAL/Types/Type.stub
- stubs/DBAL/Exception.stub
- stubs/DBAL/FetchMode.stub
- stubs/DBAL/Result.stub
- stubs/DocumentManager.stub
- stubs/DocumentRepository.stub
Expand Down
20 changes: 0 additions & 20 deletions stubs/DBAL/FetchMode.stub

This file was deleted.

88 changes: 0 additions & 88 deletions stubs/DBAL/Result.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,95 +2,7 @@

namespace Doctrine\DBAL;

use Traversable;

class Result
{

/**
* @return list<__benevolent<float|int|string|null>>|false
*/
public function fetchNumeric();

/**
* @return array<string, __benevolent<float|int|string|null>>|false
*/
public function fetchAssociative();

/**
* @return __benevolent<float|int|string|false|null>
*/
public function fetchOne();

/**
* @return list<list<__benevolent<float|int|string|null>>>
*/
public function fetchAllNumeric(): array;

/**
* @return list<array<string, __benevolent<float|int|string|null>>>
*/
public function fetchAllAssociative(): array;

/**
* @return array<mixed, __benevolent<float|int|string|null>>
*/
public function fetchAllKeyValue(): array;

/**
* @return array<mixed,array<string, __benevolent<float|int|string|null>>>
*/
public function fetchAllAssociativeIndexed(): array;

/**
* @return list<__benevolent<float|int|string|null>>
*/
public function fetchFirstColumn(): array;

/**
* @return Traversable<int, list<__benevolent<float|int|string|null>>>
*/
public function iterateNumeric(): Traversable;

/**
* @return Traversable<int, array<string, __benevolent<float|int|string|null>>>
*/
public function iterateAssociative(): Traversable;

/**
* @return Traversable<__benevolent<float|int|string|null>, __benevolent<float|int|string|null>>
*/
public function iterateKeyValue(): Traversable;

/**
* @return Traversable<__benevolent<float|int|string|null>, array<string, __benevolent<float|int|string|null>>>
*/
public function iterateAssociativeIndexed(): Traversable;

/**
* @return Traversable<int, __benevolent<float|int|string|null>>
*/
public function iterateColumn(): Traversable;

public function rowCount(): int;

public function columnCount(): int;

public function free(): void;

/**
* @deprecated Use {@see fetchNumeric()}, {@see fetchAssociative()} or {@see fetchOne()} instead.
*
* @phpstan-param FetchMode::* $mode
* @return ($mode is 2 ? array<string, __benevolent<float|int|string|null>>|false : ($mode is 3 ? list<__benevolent<float|int|string|null>>|false : __benevolent<float|int|string|false|null>))
*/
public function fetch(int $mode = FetchMode::ASSOCIATIVE);

/**
* @deprecated Use {@see fetchAllNumeric()}, {@see fetchAllAssociative()} or {@see fetchOne()} instead.
*
* @phpstan-param FetchMode::* $mode
* @return ($mode is 2 ? list<array<string, __benevolent<float|int|string|null>>> : ($mode is 3 ? list<list<__benevolent<float|int|string|null>>> : list<__benevolent<float|int|string|null>>))
*/
public function fetchAll(int $mode = FetchMode::ASSOCIATIVE): array;
}

0 comments on commit d2282b6

Please sign in to comment.