Skip to content

Commit 98473e4

Browse files
staabmclxmstaab
andauthored
rename a few things for clarity (#168)
Co-authored-by: Markus Staab <[email protected]>
1 parent a9e92cd commit 98473e4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

config/extensions.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ services:
2020
- phpstan.broker.dynamicMethodReturnTypeExtension
2121

2222
-
23-
class: staabm\PHPStanDba\Extensions\PdoExecuteTypeSpecifyingExtension
23+
class: staabm\PHPStanDba\Extensions\PdoStatementExecuteTypeSpecifyingExtension
2424
tags:
2525
- phpstan.typeSpecifier.methodTypeSpecifyingExtension
2626

src/Extensions/PdoExecuteTypeSpecifyingExtension.php renamed to src/Extensions/PdoStatementExecuteTypeSpecifyingExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use staabm\PHPStanDba\QueryReflection\QueryReflection;
2020
use staabm\PHPStanDba\QueryReflection\QueryReflector;
2121

22-
final class PdoExecuteTypeSpecifyingExtension implements MethodTypeSpecifyingExtension, TypeSpecifierAwareExtension
22+
final class PdoStatementExecuteTypeSpecifyingExtension implements MethodTypeSpecifyingExtension, TypeSpecifierAwareExtension
2323
{
2424
private TypeSpecifier $typeSpecifier;
2525

tests/SyntaxErrorInQueryMethodRuleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ protected function getRule(): Rule
1818

1919
public function testSyntaxErrorInQueryRule(): void
2020
{
21-
require_once __DIR__.'/data/syntax-error-in-query.php';
21+
require_once __DIR__.'/data/syntax-error-in-query-method.php';
2222

23-
$this->analyse([__DIR__.'/data/syntax-error-in-query.php'], [
23+
$this->analyse([__DIR__.'/data/syntax-error-in-query-method.php'], [
2424
[
2525
"Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near 'freigabe1u1 FROM ada LIMIT 0' at line 1 (1064).",
2626
11,
File renamed without changes.

0 commit comments

Comments
 (0)