Skip to content

Commit

Permalink
Enable phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Jun 16, 2023
1 parent 4cd836e commit b50b699
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ config = {
"master",
],
"codestyle": True,
"phpstan": False,
"phpstan": True,
"phan": True,
"phpunit": {
"php74": {
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ test-php-phan: vendor-bin/phan/vendor
.PHONY: test-php-phpstan
test-php-phpstan: ## Run phpstan
test-php-phpstan: vendor-bin/phpstan/vendor
$(PHPSTAN) analyse --memory-limit=4G --configuration=./phpstan.neon --no-progress --level=5 appinfo lib
$(PHPSTAN) analyse --memory-limit=4G --configuration=./phpstan.neon --no-progress --level=5 src

.PHONY: clean-deps
clean-deps:
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
parameters:
bootstrapFiles:
ignoreErrors:
4 changes: 1 addition & 3 deletions src/TarHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ class TarHeader {
private $size;

private $mtime = '';

private $checksum;


private $typeflag;

private $linkname = '';
Expand Down
5 changes: 5 additions & 0 deletions vendor-bin/phpstan/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"phpstan/phpstan": "^1.10"
}
}

0 comments on commit b50b699

Please sign in to comment.