Skip to content

Commit 5c4572e

Browse files
authored
Merge pull request php-curl-class#751 from zachborboa/master
Exclude additional files from git archive
2 parents 78e9135 + e8fdd23 commit 5c4572e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
/www/ export-ignore
77
/.gitattributes export-ignore
88
/.gitignore export-ignore
9+
/TESTING.md export-ignore
910
/TROUBLESHOOTING.md export-ignore
10-
/psalm.xml

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ jobs:
4747
CI_PHP_FUTURE_RELEASE: ${{ matrix.future-release }}
4848

4949
- name: Static analysis
50-
run: "vendor/bin/psalm"
50+
run: 'vendor/bin/psalm --config="tests/psalm.xml"'
5151
if: ${{ !matrix.future-release && matrix.php-version >= 7.1 }}

src/Curl/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function __construct($base_url, $relative_url = null)
1515
$this->relativeUrl = $relative_url;
1616
}
1717

18-
public function __toString()
18+
public function __toString() : string
1919
{
2020
return $this->absolutizeUrl();
2121
}

psalm.xml renamed to tests/psalm.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
88
>
99
<projectFiles>
10-
<directory name="src" />
10+
<directory name="../src" />
1111
<ignoreFiles>
12-
<directory name="vendor" />
12+
<directory name="../vendor" />
1313
</ignoreFiles>
1414
</projectFiles>
1515
<issueHandlers>
1616
<UndefinedClass>
1717
<errorLevel type="suppress">
1818
<referencedClass name="CurlHandle" />
19-
<file name="src/Curl/Curl.php" />
19+
<file name="../src/Curl/Curl.php" />
2020
</errorLevel>
2121
<errorLevel type="suppress">
2222
<referencedClass name="CurlMultiHandle" />
23-
<file name="src/Curl/MultiCurl.php" />
23+
<file name="../src/Curl/MultiCurl.php" />
2424
</errorLevel>
2525
</UndefinedClass>
2626
</issueHandlers>

0 commit comments

Comments
 (0)