Skip to content

Commit 590fc32

Browse files
staabmclxmstaab
andauthored
mark phpstan-dba cache files as generated (#161)
Co-authored-by: Markus Staab <[email protected]>
1 parent 93c3c51 commit 590fc32

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.phpstan-dba.cache linguist-generated=true
2+
.phpunit-phpstan-dba.cache linguist-generated=true

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ This might be usefull if your CI pipeline cannot connect to your development dat
127127

128128
The GitHubActions setup of `phpstan-dba` is [using this technique to replay the reflection information](https://github.com/staabm/phpstan-dba/blob/main/bootstrap.php).
129129

130+
**Note**: In case you commit the generated cache files into your repository, consider [marking them as generated files](https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github), so they don't show up in Pull Requests.
131+
130132
### use `SyntaxErrorInPreparedStatementMethodRule` for your custom classes
131133

132134
Reuse the `SyntaxErrorInPreparedStatementMethodRule` within your PHPStan configuration to detect syntax errors in prepared queries, by registering a service:

0 commit comments

Comments
 (0)