Skip to content

Commit 7ad00f2

Browse files
committed
Stop distributing development files
1 parent 0c610fd commit 7ad00f2

20 files changed

+27
-47
lines changed

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
# https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
22
*.neon linguist-language=YAML
33
*.neon.dist linguist-language=YAML
4+
/.editorconfig export-ignore
5+
/.gitattributes export-ignore
6+
/.github/ export-ignore
7+
/.gitignore export-ignore
8+
/.travis.yml export-ignore
9+
/examples/ export-ignore
10+
phpcs.xml.dist export-ignore
11+
phpstan.neon.dist export-ignore
12+
phpunit.xml.dist export-ignore
13+
/stub-generators/ export-ignore
14+
/tests/ export-ignore

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,9 @@ script:
4242
- "composer test:phpunit -- --verbose"
4343
- "composer test:cs -- -s"
4444
- "composer test:phpstan -- --ansi --no-progress"
45+
- |
46+
EXPECTED="LICENSE,README.md,composer.json"
47+
CURRENT="$(git archive HEAD | tar --list --exclude="src" --exclude="src/*" | paste --serial --delimiters=",")"
48+
echo "CURRENT =${CURRENT}"
49+
echo "EXPECTED=${EXPECTED}"
50+
test "${CURRENT}" = "${EXPECTED}"

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ Please read [PHPStan Config Reference](https://phpstan.org/config-reference).
5353
Just start the analysis: `vendor/bin/phpstan analyze`
5454
then fix an error and `GOTO 10`!
5555

56-
You find futher information in the `example` directory
57-
e.g. [`example/phpstan.neon.dist`](/example/phpstan.neon.dist)
56+
You find futher information in the `examples` directory
57+
e.g. [`examples/phpstan.neon.dist`](/examples/phpstan.neon.dist)
5858

5959
### Usage in WooCommerce webshops
6060

@@ -71,7 +71,9 @@ Please see [WooCommerce Stubs](https://github.com/php-stubs/woocommerce-stubs)
7171

7272
### Usage of an `apply_filters()` docblock
7373

74-
WordPress core -- and the wider WordPress ecosystem -- uses PHPDoc docblocks in a non-standard manner to document the parameters passed to `apply_filters()`. Example:
74+
WordPress core - and the wider WordPress ecosystem - uses PHPDoc docblocks
75+
in a non-standard manner to document the parameters passed to `apply_filters()`.
76+
Example:
7577

7678
```php
7779
/**
@@ -83,9 +85,12 @@ WordPress core -- and the wider WordPress ecosystem -- uses PHPDoc docblocks in
8385
$title = apply_filters( 'list_pages', $title, $page );
8486
```
8587

86-
This extension understands these docblocks when they're present in your code and uses them to instruct PHPStan to treat the return type of the filter as certain, according to the first `@param` tag. In the example above this means PHPStan treats the type of `$title` as `string`.
88+
This extension understands these docblocks when they're present in your code
89+
and uses them to instruct PHPStan to treat the return type of the filter as certain,
90+
according to the first `@param` tag. In the example above this means PHPStan treats the type of `$title` as `string`.
8791

88-
To make the best use of this feature, ensure that the type of the first `@param` tag in each of these such docblocks is accurate and correct.
92+
To make the best use of this feature,
93+
ensure that the type of the first `@param` tag in each of these such docblocks is accurate and correct.
8994

9095
### Make your code testable
9196

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

stub-generators/acf-generate-stubs.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)