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
4 changes: 4 additions & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,10 @@ jobs:
- script: |
cd e2e/bug13425
timeout 15 ../bashunit -a exit_code "1" "../../bin/phpstan analyze src/ plugins/"
- script: |
cd e2e/bug-14036
composer install
../../bin/phpstan analyze

steps:
- name: "Checkout"
Expand Down
1 change: 1 addition & 0 deletions e2e/bug-14036/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor
14 changes: 14 additions & 0 deletions e2e/bug-14036/bootstrap-types.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

declare(strict_types=1);

namespace Atk4\Data\Bootstrap;

use Doctrine\DBAL\Platforms\SqlitePlatform;

// force SQLitePlatform class load as in DBAL 3.x it is named with a different case
// remove once DBAL 3.x support is dropped
try {
new SqlitePlatform(); // @phpstan-ignore class.notFound
} catch (\Error $e) {
}
32 changes: 32 additions & 0 deletions e2e/bug-14036/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "atk4/data",
"description": "Agile Data - Database access abstraction framework",
"license": "MIT",
"type": "library",
"homepage": "https://github.com/atk4/data",
"require": {
"php": ">=7.4 <8.5",
"doctrine/dbal": "~3.5.1 || ~3.6.0 || ~3.7.0 || ~3.8.0 || ~3.9.0 || ~3.10.0 || ~4.0.0 || ~4.1.0 || ~4.2.0 || ~4.3.0 || ~4.4.0"
},
"require-dev": {
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0"
},
"prefer-stable": true,
"autoload": {
"psr-4": {
"Atk4\\Data\\": "src/"
},
"files": [
"bootstrap-types.php"
]
},
"config": {
"allow-plugins": {
"phpstan/extension-installer": true
},
"sort-packages": true
}
}
Loading
Loading