Skip to content

Commit

Permalink
Remove phpstan- prefix
Browse files Browse the repository at this point in the history
In the cases at hand, having an unprefixed phpdoc annotation should not
confused any up-to-date IDE.
  • Loading branch information
greg0ire committed Jan 15, 2025
1 parent 6ebb10d commit 6cea6d4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Driver/IBMDB2/Exception/CannotCopyStreamToStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/** @internal */
final class CannotCopyStreamToStream extends AbstractException
{
/** @phpstan-param array{message: string}|null $error */
/** @param array{message: string}|null $error */
public static function new(?array $error): self
{
$message = 'Could not copy source stream to temporary file';
Expand Down
2 changes: 1 addition & 1 deletion src/Driver/IBMDB2/Exception/CannotCreateTemporaryFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/** @internal */
final class CannotCreateTemporaryFile extends AbstractException
{
/** @phpstan-param array{message: string}|null $error */
/** @param array{message: string}|null $error */
public static function new(?array $error): self
{
$message = 'Could not create temporary file';
Expand Down
2 changes: 1 addition & 1 deletion src/Driver/IBMDB2/Exception/PrepareFailed.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/** @internal */
final class PrepareFailed extends AbstractException
{
/** @phpstan-param array{message: string}|null $error */
/** @param array{message: string}|null $error */
public static function new(?array $error): self
{
if ($error === null) {
Expand Down
2 changes: 1 addition & 1 deletion src/Driver/PgSQL/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ final class Statement implements StatementInterface
/** @var array<int, mixed> */
private array $parameters = [];

/** @phpstan-var array<int, int> */
/** @var array<int, int> */
private array $parameterTypes = [];

/**
Expand Down
8 changes: 4 additions & 4 deletions tests/DriverManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ public function testDatabaseUrl($url, $expected): void
}
}

/** @phpstan-return array<string, array{
* string|array<string, mixed>,
* array<string, mixed>|false,
* }>
/** @return array<string, array{
* string|array<string, mixed>,
* array<string, mixed>|false,
* }>
*/
public static function databaseUrlProvider(): iterable
{
Expand Down

0 comments on commit 6cea6d4

Please sign in to comment.