Skip to content

Commit

Permalink
Doc update & code tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi committed Apr 30, 2024
1 parent 2aa722b commit 5da47cd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,10 @@ Because of the way the test-suite is designed, in-memory sqlite does not work.
The sqlite db must be stored in a file. This is already setup in the default pdo config.

The package should work with MS Sqlserver, but the tests will only run with sqlite, mysql & postgres databases.

### Branching

These are the branches in this repository:

- **main:** contains code for the latest major version of this package
- **1.x:** contains code for the **1.x** version of this package
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"rector-clear": "vendor/bin/rector --clear-cache",
"rector": "vendor/bin/rector process src --dry-run -vvv",
"psalm": "vendor/bin/psalm --threads=1",
"qa": "composer test && composer rector-clear && composer rector && composer psalm",
"qa": "composer test && composer rector && composer psalm",
"gen-test-pdo-config": "@php -r \"file_exists('./tests/pdo.php') || copy('./pdo-dist.php', './tests/pdo.php');\""
},
"bin": [
Expand Down
3 changes: 3 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
errorLevel="1"
resolveFromConfigFile="true"
allowStringToStandInForClass="true"
findUnusedCode="true"
findUnusedPsalmSuppress="true"
findUnusedBaselineEntry="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
Expand Down
2 changes: 1 addition & 1 deletion tests/OtherUtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testThatGetThrowableAsStrWorksAsExpected() {
$throwableAssertingLooper = function (\Throwable $e, string $eol, $output): void {

$previous_throwable = $e;
$eol = PHP_EOL;
$eol = ($eol === '') ? PHP_EOL : $eol;

do {
self::assertStringContainsString("Exception / Error Code: {$previous_throwable->getCode()}", $output);
Expand Down

0 comments on commit 5da47cd

Please sign in to comment.