Skip to content

Commit c65c961

Browse files
staabmclxmstaab
andauthored
use phpstan 1.3.x for now.. something in 1.4.x broke the build (#113)
Co-authored-by: Markus Staab <[email protected]>
1 parent 909ec00 commit c65c961

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

bootstrap.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
$cacheFile = __DIR__.'/.phpstan-dba.cache';
1818
}
1919

20+
$config = RuntimeConfiguration::create();
21+
$config->errorMode(RuntimeConfiguration::ERROR_MODE_EXCEPTION);
22+
// $config->debugMode(true);
23+
2024
try {
2125
if (false !== getenv('GITHUB_ACTION')) {
2226
$mysqli = @new mysqli('127.0.0.1', 'root', 'root', 'phpstan_dba');
@@ -48,5 +52,5 @@
4852

4953
QueryReflection::setupReflector(
5054
$reflector,
51-
RuntimeConfiguration::create()->errorMode(RuntimeConfiguration::ERROR_MODE_EXCEPTION)
55+
$config
5256
);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"require": {
66
"php": "^8.0",
77
"ext-mysqli": "*",
8-
"phpstan/phpstan": "^1.2"
8+
"phpstan/phpstan": "1.3.*"
99
},
1010
"require-dev": {
1111
"ext-pdo": "*",

0 commit comments

Comments
 (0)