Skip to content

Commit 7f5fc7e

Browse files
authored
Implement sqlftw/sqlftw sql parser based type narrowing (#505)
1 parent 265f6fd commit 7f5fc7e

37 files changed

+24060
-7830
lines changed

.github/workflows/phpstan.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ jobs:
7676
with:
7777
composer-options: "--prefer-dist --no-progress"
7878

79+
- name: Install sqlftw/sqlftw
80+
run: composer require sqlftw/sqlftw --ignore-platform-req=php+
81+
if: "${{matrix.php-version != '7.3'}}"
82+
7983
- name: Enable phpstan@dev
8084
if: "${{matrix.phpstan-version != ''}}"
8185
run: |
@@ -123,4 +127,8 @@ jobs:
123127
with:
124128
composer-options: "--prefer-dist --no-progress"
125129

130+
- name: Install sqlftw/sqlftw
131+
run: composer require sqlftw/sqlftw --ignore-platform-req=php+
132+
if: "${{matrix.php-version != '7.3'}}"
133+
126134
- run: composer phpstan

.github/workflows/tests-postgres.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ jobs:
5151

5252
- uses: "ramsey/composer-install@v2"
5353
with:
54-
composer-options: "--prefer-dist --no-progress"
54+
composer-options: "--prefer-dist --no-progress"
55+
56+
- name: Install sqlftw/sqlftw
57+
run: composer require sqlftw/sqlftw --ignore-platform-req=php+
58+
if: "${{matrix.php-version != '7.3'}}"
5559

5660
- name: Setup Problem Matchers for PHPUnit
5761
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

.github/workflows/tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ jobs:
9696
# ignore php8.2 requirement error https://github.com/sebastianbergmann/phpunit/issues/5033
9797
composer-options: "--prefer-dist --no-progress --ignore-platform-req=php+"
9898

99+
- name: Install sqlftw/sqlftw
100+
run: composer require sqlftw/sqlftw --ignore-platform-req=php+
101+
if: "${{matrix.php-version != '7.3'}}"
102+
99103
- name: Setup Problem Matchers for PHPUnit
100104
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
101105

@@ -144,6 +148,10 @@ jobs:
144148
# ignore php8.2 requirement error https://github.com/sebastianbergmann/phpunit/issues/5033
145149
composer-options: "--prefer-dist --no-progress --ignore-platform-req=php+"
146150

151+
- name: Install sqlftw/sqlftw
152+
run: composer require sqlftw/sqlftw --ignore-platform-req=php+
153+
if: "${{matrix.php-version != '7.3'}}"
154+
147155
- name: Setup Problem Matchers for PHPUnit
148156
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
149157

0 commit comments

Comments
 (0)