Skip to content
Merged
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
124 changes: 0 additions & 124 deletions .phpunit-phpstan-dba.cache

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
},
"autoload-dev": {
"psr-4": {
"staabm\\PHPStanDba\\Tests\\Fixture\\": "tests/Fixture/",
"staabm\\PHPStanDba\\Tests\\": "tests/"
"staabm\\PHPStanDba\\Tests\\Fixture\\": "tests/default/Fixture/",
"staabm\\PHPStanDba\\Tests\\": "tests/default/"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ parameters:
ignoreErrors:
-
message: '#Function Deployer\\runMysqlQuery\(\) should return array<int, array<int, string>>\|null but return statement is missing.#'
path: tests/data/runMysqlQuery.php
path: tests/default/data/runMysqlQuery.php
-
message: '#.*has no return type specified.#'
path: tests/*
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<testsuites>
<testsuite name="PHPStanDba">
<directory suffix="Test.php">tests/</directory>
<directory suffix="Test.php">tests/default/</directory>
</testsuite>
</testsuites>

Expand Down
2 changes: 1 addition & 1 deletion src/QueryReflection/QuerySimulation.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static function simulateParamValueType(Type $paramType, bool $preparedPar
return null;
}

throw new DbaException(sprintf('Unexpected expression type %s', \get_class($paramType)));
throw new DbaException(sprintf('Unexpected expression type %s of class %s', $paramType->describe(VerbosityLevel::precise()), \get_class($paramType)));
}

public static function simulate(string $queryString): ?string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public function testFileAsserts(
public static function getAdditionalConfigFiles(): array
{
return [
__DIR__.'/../config/stubFiles.neon',
__DIR__.'/../config/extensions.neon',
__DIR__.'/../../config/stubFiles.neon',
__DIR__.'/../../config/extensions.neon',
];
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class PdoStatementExecuteMethodRuleTest extends AbstractServiceAwareRuleTestCase
{
protected function getRule(): Rule
{
return $this->getRuleFromConfig(PdoStatementExecuteMethodRule::class, __DIR__.'/../config/dba.neon');
return $this->getRuleFromConfig(PdoStatementExecuteMethodRule::class, __DIR__.'/../../config/dba.neon');
}

public function testParameterErrors(): void
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class SyntaxErrorInQueryFunctionRuleTest extends AbstractServiceAwareRuleTestCas
{
protected function getRule(): Rule
{
return $this->getRuleFromConfig(SyntaxErrorInQueryFunctionRule::class, __DIR__.'/../config/dba.neon');
return $this->getRuleFromConfig(SyntaxErrorInQueryFunctionRule::class, __DIR__.'/../../config/dba.neon');
}

public function testSyntaxErrorInQueryRule(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class SyntaxErrorInQueryMethodRuleTest extends AbstractServiceAwareRuleTestCase
{
protected function getRule(): Rule
{
return $this->getRuleFromConfig(SyntaxErrorInQueryMethodRule::class, __DIR__.'/../config/dba.neon');
return $this->getRuleFromConfig(SyntaxErrorInQueryMethodRule::class, __DIR__.'/../../config/dba.neon');
}

public function testSyntaxErrorInQueryRule(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected function tearDown(): void

protected function getRule(): Rule
{
return $this->getRuleFromConfig(PdoStatementExecuteMethodRule::class, __DIR__.'/../config/dba.neon');
return $this->getRuleFromConfig(PdoStatementExecuteMethodRule::class, __DIR__.'/../../config/dba.neon');
}

public function testSyntaxErrorInQueryRule(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected function tearDown(): void

protected function getRule(): Rule
{
return $this->getRuleFromConfig(SyntaxErrorInQueryFunctionRule::class, __DIR__.'/../config/dba.neon');
return $this->getRuleFromConfig(SyntaxErrorInQueryFunctionRule::class, __DIR__.'/../../config/dba.neon');
}

public function testSyntaxErrorInQueryRule(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected function tearDown(): void

protected function getRule(): Rule
{
return $this->getRuleFromConfig(SyntaxErrorInQueryMethodRule::class, __DIR__.'/../config/dba.neon');
return $this->getRuleFromConfig(SyntaxErrorInQueryMethodRule::class, __DIR__.'/../../config/dba.neon');
}

public function testSyntaxErrorInQueryRule(): void
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
includes:
- ../../config/stubFiles.neon
- ../../config/extensions.neon
- ../../../config/stubFiles.neon
- ../../../config/extensions.neon

services:
-
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.