Skip to content

Commit 6326712

Browse files
author
farhadzand
committed
update github action
1 parent 254d915 commit 6326712

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@ jobs:
3939
uses: shivammathur/setup-php@v2
4040
with:
4141
php-version: ${{ matrix.php }}
42-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, exif, iconv
42+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, exif, iconv, mongodb
4343
coverage: xdebug
4444
ini-values: error_reporting=E_ALL
4545
tools: composer:v2
4646

47+
- name: Verify MongoDB extension
48+
run: php -r "echo 'MongoDB extension loaded: ' . (extension_loaded('mongodb') ? 'Yes' : 'No') . PHP_EOL;"
49+
4750
- name: Setup problem matchers
4851
run: |
4952
echo "::add-matcher::/opt/hostedtoolcache/php.json"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@
5656
},
5757
"minimum-stability": "stable",
5858
"prefer-stable": true
59-
}
59+
}

phpstan.neon

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ parameters:
1414
-
1515
identifier: missingType.iterableValue
1616
-
17-
identifier: missingType.generics
17+
identifier: missingType.generics
18+
# MongoDB related errors (the MongoDB driver uses dynamic methods)
19+
- '#Call to an undefined method Illuminate\\Database\\Connection::collection\(\)#'
20+
- '#Call to an undefined method Illuminate\\Database\\Connection::listCollections\(\)#'
21+
- '#Property iamfarhad\\LaravelAuditLog\\Drivers\\MongoDBDriver::\$databaseName is never read, only written.#'
22+
- '#Construct empty\(\) is not allowed. Use more strict comparison.#'

0 commit comments

Comments
 (0)