Skip to content

Commit 709ebbb

Browse files
authored
Merge pull request #1 from freshp/feature/changeVisibilityForOverwrites
Feature/change visibility for overwrites
2 parents 4a3f428 + b56ae52 commit 709ebbb

File tree

6 files changed

+411
-649
lines changed

6 files changed

+411
-649
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ before_script:
1212
script:
1313
- ./vendor/bin/phpunit.phar -c ./phpunit.xml --debug --verbose
1414
- ./vendor/bin/phpmd-extension.phar ./src/ text phpmd.xml
15+
- ./vendor/bin/phpstan analyse -l 4 ./src/

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@ Run each command in the project root directory.
2828
```
2929
./vendor/bin/phpmd-extension.phar ./src/ text phpmd.xml
3030
```
31+
32+
### Execute PHPSTAN checks
33+
34+
```
35+
./vendor/bin/phpstan analyse -l 4 src/
36+
```

Tests/Fixtures/EnumFixture.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class EnumFixture extends Enum
1515
/**
1616
* @return string
1717
*/
18-
protected function getDefault() : string
18+
protected function getDefault(): string
1919
{
2020
return self::TEST_DEFAULT;
2121
}

composer.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
}
1010
},
1111
"require": {
12-
"php": ">=7.0"
12+
"php": ">=7.0",
13+
"phpstan/phpstan": "0.4.1"
1314
},
1415
"autoload-dev": {
1516
"psr-4": {
@@ -18,8 +19,7 @@
1819
}
1920
},
2021
"require-dev": {
21-
"tm/tooly-composer-script": "1.2.1",
22-
"mi-schi/php-code-checker": "2.2.10"
22+
"tm/tooly-composer-script": "1.2.1"
2323
},
2424
"scripts": {
2525
"post-install-cmd": "Tooly\\ScriptHandler::installPharTools",
@@ -31,18 +31,6 @@
3131
"url": "https://phar.phpunit.de/phpunit.phar",
3232
"force-replace": true
3333
},
34-
"phpcpd": {
35-
"url": "https://phar.phpunit.de/phpcpd.phar",
36-
"force-replace": true
37-
},
38-
"php_codesniffer": {
39-
"url": "https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar",
40-
"force-replace": true
41-
},
42-
"phpmetrics": {
43-
"url": "https://github.com/phpmetrics/PhpMetrics/raw/master/build/phpmetrics.phar",
44-
"force-replace": true
45-
},
4634
"phpmd-extension": {
4735
"url": "https://github.com/mi-schi/phpmd-extension/releases/download/stable/phpmd-extension.phar",
4836
"force-replace": true

0 commit comments

Comments
 (0)